Tesseract 文字识别 运用于ios7 xcode5 任意工程

 tesseract 解决方法 

 

最近想做一个简单的手写识别,返现一个hwlib的挺好用,结果要10k的正版授权,果断不用了。搜索了一下发现了这个,结果很多都是以前的版本的,而且貌似对工程的配置也有问题,摸索了很久,就快要绝望的时候在github上找到了这位大牛编译的framework版本,很好用https://github.com/ldiqual/tesseract-ios。只要按照上面的步骤,就ok!


 Add the framework "TesseractOCR.framework" (you can drag&drop it) from the Products folder in this repo, to your XCode Project under the frameworks folder.

 

 If you are masochist :) you can generate your TesseractOCR.framework building the TesseractOCRAggregate target.

 

 If you are using iOS7 or greater, link libstdc++.6.0.9.dylib library (Your target => General => Linked Frameworks and Libraries => + => libstdc++.6.0.9)

 

 Go to your project, click on the project and in the Build Settings tab add -lstdc++ to all the "Other Linker Flags" keys.

 

 Go to your project settings, and ensure that C++ Standard Library => Compiler Default. (thanks tohttps://github.com/trein)

 

 Import the tessdata folder under the root of your project. It contains the "tessdata" files. You can add more tessdata files copyng them here.

 

 Import the header in your classes writing #import <TesseractOCR/TesseractOCR.h>



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值