推荐另外一个Vision框架项目:https://github.com/TheLittleBoy/TextDetection-VIN4
iOS使用飞桨OCR文字识别,实现离线扫描VIN码,免费,并且效果极佳,速度贼快,非EasyEdge版本!
飞桨官网:https://www.paddlepaddle.org.cn
官网OCR demo:https://ai.baidu.com/easyedge/app/openSource
此项目需要自行下载较大的类库:
opencv2.framework 放在PaddleOCR目录下,大小308M,下载地址:https://paddlelite-demo.bj.bcebos.com/libs/ios/opencv3.framework.tar.gz
libpaddle_api_light_bundled.a 放在PaddleOCR/lib目录下,大小12.5M,下载地址:https://paddlelite-demo.bj.bcebos.com/libs/ios/paddle_lite_libs_v2_6_0.tar.gz
请耐心下载!
此项目打包之后大小仅为22M。
效果图: