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 <[email protected]> wrote:

> 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 <tesseract/baseapi.h>
> #include <leptonica/allheaders.h>
>
> int main()
> {
>     fprintf(stderr, "Heyhey !\n");
>     char * outText;
>
>     tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI();
>
>     if (api->Init(NULL, "fra")) {
>         fprintf(stderr, "Could not initialize tesseract.\n");
>         exit(1);
>     }
>
>     Pix * image = pixRead("/path/test.tif");
>     api->SetImage(image);
>
>     outText = api->GetUTF8Text();
>     printf("OCR output:\n%s", outText);
>
>     api->End();
>     delete [] outText;
>     pixDestroy(&image);
>
>     return 0;
> }
>
>
>
> Thanks a lot
>
> --
> 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].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/tesseract-ocr.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/tesseract-ocr/9110d5a3-71f4-4f50-ab24-5bfc5164c50e%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/9110d5a3-71f4-4f50-ab24-5bfc5164c50e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduWANsdmNxykUG%3D7dpJDTUOaaFe78sNi43X%3D%3D9LmHfxeHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to