简体   繁体   English

在xcode中将tesseract库添加到c ++项目

[英]adding tesseract library to c++ project in xcode

I'm playing with C++ and tesseract library in mac os. 我正在Mac OS中使用C ++和tesseract库。 I installed tesseract library with brew install tesseract . brew install tesseract 安装了tesseract库

$ tesseract --version
tesseract 3.04.00
 leptonica-1.72
  libjpeg 8d : libpng 1.6.20 : libtiff 4.0.6 : zlib 1.2.5

I have tesseract installed in following path, 我在以下路径中安装了tesseract,

$ ll /usr/local/Cellar/tesseract/3.04.00/
total 72
-rw-r--r--  1 prayagupd  admin   440 Jul 11  2015 AUTHORS
-rw-r--r--  1 prayagupd  admin  1007 Jul 11  2015 COPYING
-rw-r--r--  1 prayagupd  admin  9773 Jul 11  2015 ChangeLog
-rw-r--r--  1 prayagupd  admin   332 Apr  6 19:44 INSTALL_RECEIPT.json
-rw-r--r--  1 prayagupd  admin    45 Jul 11  2015 NEWS
-rw-r--r--  1 prayagupd  admin  6326 Apr  6 19:44 README
drwxr-xr-x  3 prayagupd  admin   102 Aug 21  2015 bin
drwxr-xr-x  3 prayagupd  admin   102 Aug 21  2015 include
drwxr-xr-x  6 prayagupd  admin   204 Aug 21  2015 lib
drwxr-xr-x  4 prayagupd  admin   136 Aug 21  2015 share

What I want next is add tesseract lib to a C++ project (which I created with xcode). 接下来我想要将tesseract lib添加到C ++项目(我使用xcode创建)中。 My assumption was tesseract is available to any c++ project once installed, but I can't see imports in my c++ project. 我的假设是,一旦安装,tesseract就可用于任何c ++项目,但是我的c ++项目中看不到导入。 It can't find the file baseapi.h . 找不到文件baseapi.h

c ++-tesseract

I am following example from here - API examples 我从这里跟随示例-API示例

I feel like I still need to tesseract lib to c++ project in xcode, but don't know how. 我觉得我仍然需要tesseract lib到xcode中的c ++项目,但是不知道如何。

添加tesseract

Did you try looking under "$ ll /usr/local/Cellar/tesseract/3.04.00/api/" ? 您是否尝试查看“ $ ll /usr/local/Cellar/tesseract/3.04.00/api/”下的内容? At least, it is where I found it on my tesseract folder. 至少在我的tesseract文件夹中可以找到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM