SwiftOCR
SwiftOCR copied to clipboard
How to install this library?
I am having massive problems installing this. Here's what I did. I have Xcode 7.3.1. I git cloned the repo onto my Mac, then went into example/iOS/SwiftOCR Camera, double clicked on the xcodeproj file. GPUImageFramework shows a CodeSign error: code signing is required for product type Framework in iOS 9.3 SwiftOCR throws 25 errors in SwiftOCRTraining.swift, mostly syntax errors like "consecutive declarations on a line must be separated by a ;" but also "No such module GPUImage"
How can I fix this?
I also saw those syntax errors running Xcode 7 - I upgraded to Xcode 8 and they went away. I think the underlying issue is the project needs to compile with Swift 3, and Xcode 7 is using Swift 2.
I don't know about CodeSign because I'm only using the mac version, but I think you can change the signing stuff under the project's build settings (click on the .xcodeproj file in the sidebar and then 'build settings' is one of the tabs in that view).
I would just incorporate it using CocoaPods.
- "pod init" (in your project directory)
- Add this to your podfile:
pod 'GPUImage', :git => 'https://github.com/BradLarson/GPUImage.git' pod 'SwiftOCR', :git => 'https://github.com/garnele007/SwiftOCR.git'
- Save and run "pod install"
When you install using cocoapods, how do you replace the OCR neural network? Just Show In Finder
and replace the existing OCR-Network
file? Wouldn't it then be overwritten anytime you update pods?