swi

SwiftCamScanner

A pod written in swift that lets you scan and crop documents. It uses edge detection and perspective transformation with OpenCV.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

83

Maintenance

Last Commit

4yrs ago

Contributors

2

Package

Dependencies

1

License

MIT

Categories

Readme

SwiftCamScanner

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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100