How to init tesseract to work only with digit (Android)

141 views
Skip to first unread message

Ibrahim Baz

unread,
Sep 30, 2018, 2:00:52 AM9/30/18
to tesseract-ocr
I'm using tesseract to recognize digits only and I'm setting the white list variables like I asked here https://github.com/rmtheis/tess-two/issues/253
But I still get characters.


Dibyaranjan Sathua

unread,
Sep 30, 2018, 3:01:17 AM9/30/18
to tesser...@googlegroups.com
I am using the below method to recognise uppercase alphabets and digits.

tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI()

api->SetVariable("tessedit_char_whitelist", "01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ");


I am using tesseract 3.05.

a);

On Sun, Sep 30, 2018 at 11:30 AM Ibrahim Baz <eng.ibr...@gmail.com> wrote:
I'm using tesseract to recognize digits only and I'm setting the white list variables like I asked here https://github.com/rmtheis/tess-two/issues/253
But I still get characters.


--
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 https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/a1c2158a-2a8b-4482-9b29-6d3595053c66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Regards
Dibyaranjan Sathua
+91-9040340870

Ibrahim Baz

unread,
Sep 30, 2018, 8:47:19 AM9/30/18
to tesseract-ocr
Hi I'm using the same method and my inputs only digits, but i still getting character, any Idear?
I'm using arabic language.
Reply all
Reply to author
Forward
0 new messages