Can't use char_blacklist and char_whitelist

91 views
Skip to first unread message

antake

unread,
May 26, 2014, 2:35:57 AM5/26/14
to tesser...@googlegroups.com
Hello!

I'm trying to use variables tessedit_char_black_list and tessedit_char_whitelist. 
I write:
tesseract::TessBaseAPI *rusengOCR = new tesseract::TessBaseAPI();

rusengOCR
->SetVariable("tessedit_char_whitelist", "0123456789");

But this does not work! Tesseract still recognizes everything! Black list doesn't work either.

Could you please help me?

antake

unread,
May 26, 2014, 7:23:32 AM5/26/14
to tesser...@googlegroups.com
The problem is solved. I wrote those strings before the Init function of TessBaseApi.

zdenko podobny

unread,
May 26, 2014, 7:56:21 AM5/26/14
to tesser...@googlegroups.com
post full test case.

Zdenko


--
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-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/c0edd4d7-c441-4ccc-b259-fe6aeae2457d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages