再做摄像头扫描识别文字时,如果自己动手配置,可以通过cocoapods进行集成;
pod 'TesseractOCRiOS', '~> 4.0.0'
真机运行报错:
ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:
找到tesseractOCRiOS的framework 将bit code 设置为NO;