Wer can i find tessbaeapi.h??
On Thursday, March 29, 2012 8:22:55 PM UTC+5:30, Gustavo Souto wrote:
>
> Hi everyone, I need you help...
>
> I want to create a program in C++ with Tesseract, but when I try to
> compile the source code some errors appear. I don't know well how to link
> the libs to the source code, but I did do like this:
> ------------------------------------ CODE
> ---------------------------------------------------------------
>
> #include <baseapi.h>
> #include <allheaders.h>
> #include <iostream>
> #include <opencv/cv.h>
> #include <opencv/highgui.h>
>
> using namespace std;
>
> int main() {
>
> tesseract::TessBaseAPI tess;
>
> tess.Init(NULL, "eng", tesseract::OEM_DEFAULT);
> cv::Mat image = cv::imread("/home/souto3/Pictures/num.tif");
> tess.SetImage((uchar*)image.data, image.size().width,
> image.size().height, image.channels(), image.step1());
> tess.Recognize(0);
> const char* out = tess.GetUTF8Text();
>
> cout << out;
>
> return 0;
> }
> ------------------------------ END CODE -------------------
>
> -------------------- ERROR --------------------------------
> /tmp/ccAUGhHc.o: In function `main':
> main.cpp:(.text+0x1b): undefined reference to
> `tesseract::TessBaseAPI::TessBaseAPI()'
> main.cpp:(.text+0x75): undefined reference to
> `cv::imread(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&, int)'
> main.cpp:(.text+0x101): undefined reference to
> `tesseract::TessBaseAPI::SetImage(unsigned char const*, int, int, int, int)'
> main.cpp:(.text+0x115): undefined reference to
> `tesseract::TessBaseAPI::Recognize(ETEXT_DESC*)'
> main.cpp:(.text+0x124): undefined reference to
> `tesseract::TessBaseAPI::GetUTF8Text()'
> main.cpp:(.text+0x15c): undefined reference to
> `tesseract::TessBaseAPI::~TessBaseAPI()'
> main.cpp:(.text+0x1c8): undefined reference to
> `tesseract::TessBaseAPI::~TessBaseAPI()'
> /tmp/ccAUGhHc.o: In function `tesseract::TessBaseAPI::Init(char const*, char
> const*, tesseract::OcrEngineMode)':
> main.cpp:(.text._ZN9tesseract11TessBaseAPI4InitEPKcS2_NS_13OcrEngineModeE[tesseract::TessBaseAPI::Init(char
> const*, char const*, tesseract::OcrEngineMode)]+0x4f): undefined reference
> to `tesseract::TessBaseAPI::Init(char const*, char const*,
> tesseract::OcrEngineMode, char**, int, GenericVector<STRING> const*,
> GenericVector<STRING> const*, bool)'
> /tmp/ccAUGhHc.o: In function `cv::Mat::release()':
> main.cpp:(.text._ZN2cv3Mat7releaseEv[cv::Mat::release()]+0x4b): undefined
> reference to `cv::fastFree(void*)'
> ------------------------ END ERROR
> ----------------------------------------------------------------------
>
>
>
--
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en
---
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.