Re: [tesseract-ocr] Generating a PDF with Tesseract C++API (4.1Version)

2019-10-25 Thread Zdenko Podobny
Try something like this: #include #include #include #include int main() { const char* datapath = "tessdata"; std::string language_ = "deu"; std::string inputFile_ = "input.png"; const char* outputbase = "output"; tesseract::TessBaseAPI *api100 = new

[tesseract-ocr] Generating a PDF with Tesseract C++API (4.1Version)

2019-10-25 Thread Ivica Anic
Hi, I am testing the Tesseract C++ API (4.1 Version). Here is my code: char *datapath = "C:\\Temp\\tessdata-master"; string language_ = "deu"; string inputFile_ = "./input.png"; tesseract::TessBaseAPI *api100 = new tesseract::TessBaseAPI(); if

Re: [tesseract-ocr] Generating a PDF with Tesseract C++

2017-05-22 Thread ShreeDevi Kumar
Look at the examples in https://github.com/tesseract-ocr/docs/blob/master/das_tutorial2016/2ArchitectureAndDataStructures.pdf ShreeDevi भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com On Mon, May 22, 2017 at 7:34 PM, Saliaj Adrian

Re: [tesseract-ocr] Generating a PDF with Tesseract C++

2017-05-22 Thread Saliaj Adrian
Thank you but it still doesn't work... Can someone just tell me what should be add to this code to generate a PDF output ? #include #include int main() { fprintf(stderr, "Heyhey !\n"); char * outText; tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI(); if

Re: [tesseract-ocr] Generating a PDF with Tesseract C++

2017-04-28 Thread Zdenko Podobný
Really? Where did you look? https://github.com/tesseract-ocr/tesseract/blob/master/api/baseapi.h#L165 BTW: It seems you did not not understand that example : setting variable will not help you. Zdenko On Fri, Apr

Re: [tesseract-ocr] Generating a PDF with Tesseract C++

2017-04-28 Thread Saliaj Adrian
So I must set the variable "tessedit_create_pdf" at true, but how ? I do not find the setter. Thanks -- 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

[tesseract-ocr] Generating a PDF with Tesseract C++

2017-04-28 Thread Saliaj Adrian
Hello, I am testing the Tesseract C++ API. Here is my code : #include #include int main() { fprintf(stderr, "Heyhey !\n"); char * outText; tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI(); if (api->Init(NULL, "fra")) { fprintf(stderr, "Could not