Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Srinija/SwiftCamScanner
A pod written in swift that lets you scan and crop documents. It uses edge detection and perspective transformation with OpenCV.
https://github.com/Srinija/SwiftCamScanner
camscanner cocoapods documentscanner swift
Last synced: 20 days ago
JSON representation
A pod written in swift that lets you scan and crop documents. It uses edge detection and perspective transformation with OpenCV.
- Host: GitHub
- URL: https://github.com/Srinija/SwiftCamScanner
- Owner: Srinija
- License: mit
- Created: 2017-06-10T17:35:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-08T14:28:52.000Z (over 2 years ago)
- Last Synced: 2024-11-15T00:06:52.098Z (27 days ago)
- Topics: camscanner, cocoapods, documentscanner, swift
- Language: Swift
- Homepage:
- Size: 9.3 MB
- Stars: 104
- Watchers: 6
- Forks: 31
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - SwiftCamScanner - A pod written in swift that lets you scan and crop documents. It uses edge detection and perspective transformation with OpenCV. (OOM-Leaks-Crash / Graphs Processing And Rendering)
- awesome - SwiftCamScanner - A pod written in swift that lets you scan and crop documents. It uses edge detection and perspective transformation with OpenCV. (OOM-Leaks-Crash / Graphs Processing And Rendering)
README
# SwiftCamScanner
## Overview
# ![Demo GIF](https://github.com/Srinija/SwiftCamScanner/blob/master/demo.gif)## Requirements
Minimum iOS Version: 8.0## Installation
### CocoaPods
SwiftCamScanner is available through [CocoaPods](http://cocoapods.org). 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'# ![](https://github.com/Srinija/SwiftCamScanner/blob/master/IbSnapshot.png)
#### ViewController:
```swift
import SwiftCamScanner
```
```swift
@IBOutlet weak var cropView: CropView!
```
```swift
cropView.setUpImage(image: imageName)
```
```swift
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.