Latest 0.2.0
Homepage https://github.com/Srinija/SwiftCamScanner
License MIT
Platforms ios 8.0
Dependencies OpenCV
Frameworks UIKit

Overview

Demo GIF

Requirements

Minimum iOS Version: 8.0

Installation

CocoaPods

SwiftCamScanner is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SwiftCamScanner'

Manual

For manual installation, drag and drop the files in SwiftCamScanner/Classes into your project.

Usage

Storyboard:

To setup the cropping area, add a UIView to your storyboard and assign constraints. Set its class to ‘CropView’ and module to ‘SwiftCamScanner’

ViewController:

import SwiftCamScanner
@IBOutlet weak var cropView: CropView!
 cropView.setUpImage(image: imageName)
  cropView.cropAndTransform{(croppedImage) in
    //Use the cropped Image
  }

Example

An example project is included with this repo. To run the example project, clone the repo, and run pod install from the Example directory.

Author

Srinija Ammapalli

License

SwiftCamScanner is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwiftCamScanner",
    "version": "0.2.0",
    "summary": "A document scanner that uses OpenCV, in Swift",
    "description": "Creates scanner apps that can detect rectangles, crop and transformation selected regions",
    "homepage": "https://github.com/Srinija/SwiftCamScanner",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": "Srinija Ammapalli",
    "source": {
        "git": "https://github.com/Srinija/SwiftCamScanner.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SwiftCamScanner/Classes/**/*",
    "dependencies": {
        "OpenCV": []
    },
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This