To run the example project, clone the repo, and run pod install
from the Example directory first.
This framework uses TesseractOCRiOS for text recognition of machine readable codes. To use DocumentsOCR, add tessdata/eng.traineddata to your app repository.
DocumentsOCR is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DocumentsOCR"
- Create scanner instance with your UIViewController instance reference, which implemets DocumentScannerDelegate protocol
scanner = DocumentScanner(containerVC: self, withDelegate: self)
- Scanner instance can show view controller with camera and border
scanner.showCameraViewController()
- After take shoot button pressed, these delegate methods called:
func willBeginScan(withImage image: UIImage)
then if image was recognized successfull:
func didFinishScan(withInfo info: PassportInfo)
if some error happened
func didFailed(error: NSError)
Michael, mmbabaev@gmail.com
DocumentsOCR is available under the MIT license. See the LICENSE file for more info.
- documentation
- small screenshots
- fix minor UI defects in example
- code refactoring
- pod string for all versions (without using ~> version")
- check visa document recognitions
- unit tests for camera shoots
- take many pictures when "take shoot" button pressed, then choose best image for recognition
TST