zoukankan      html  css  js  c++  java
  • 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>

  • 相关阅读:
    c++中的stack实现
    非虚函数是静态绑定
    函数返回const,以便控制访问
    析构函数为虚函数
    c++中初始化列表顺序和声明顺序一致
    define的误用
    模板就是让编译器帮你写代码
    mysql代码中设置变量
    拼接index
    python import vs from import
  • 原文地址:https://www.cnblogs.com/kw-ios/p/3479979.html
Copyright © 2011-2022 走看看