suppress the debug output info of Tesseract c++ API

1,160 views
Skip to first unread message

Derry Pei

unread,
Sep 2, 2014, 11:01:38 AM9/2/14
to tesser...@googlegroups.com
Hi all,

I am currently building my own application with Tesseract C++ API in Windows 7, and when i called recognition function:

char * text = api.GetUTF8Text();

I got the following output in the command line window:

Too many unichars in ambiguity on line XXXX

Is there any way i can turn off the debug info output?

I know i can turn it off if i'm using it in command line, 


but how can i do this in my application when calling the API?  like api.setVaribles()


Thanks!

Quan Nguyen

unread,
Sep 2, 2014, 11:49:07 PM9/2/14
to tesser...@googlegroups.com
Try api.setVariable("debug_file", "tesseract.log");

Derry Pei

unread,
Sep 3, 2014, 8:34:39 AM9/3/14
to tesser...@googlegroups.com
Thanks, Quan

I tried that, and it doesn't seem to work. I still got that output.

I googled the "debug_file" option you mentioned and it said " file to send tprintf output to ".
But i don't know why it doesn't work the way it is supposed to here.

Quan Nguyen

unread,
Sep 3, 2014, 11:31:23 PM9/3/14
to tesser...@googlegroups.com
Did you call it after init?
Reply all
Reply to author
Forward
0 new messages