Tesseract trained data for only digits.

10,907 views
Skip to first unread message

Sarath Soman

unread,
May 8, 2014, 3:58:51 AM5/8/14
to tesser...@googlegroups.com
Does anyone can provide a trained data for recognize only the numbers in an image ??

Nick White

unread,
May 8, 2014, 10:59:37 AM5/8/14
to tesser...@googlegroups.com
Hi Sarath,

On Thu, May 08, 2014 at 12:58:51AM -0700, Sarath Soman wrote:
> Does anyone can provide a trained data for recognize only the numbers in an
> image ??

That's answered in the FAQ:
https://code.google.com/p/tesseract-ocr/wiki/FAQ#How_do_I_recognize_only_digits?

Nick

Sarath Soman

unread,
May 22, 2014, 4:53:40 AM5/22/14
to tesser...@googlegroups.com

Thanks for the reply, Nick :)

But am doing project on android. I need the trained data file for only recognize digits. Also little knowledge about this.

Nick White

unread,
May 22, 2014, 11:46:01 AM5/22/14
to tesser...@googlegroups.com
The SetVariable function mentioned in the FAQ is what you want to
call, to set the tessedit_char_whitelist variable. I'm guessing
you're using one of the Tesseract java wrappers, so you'll have to
find out what the function is called and how to call it, but that
should be straightforward.

Best of luck,

Nick

youcef bou

unread,
Jun 4, 2019, 11:05:31 PM6/4/19
to tesseract-ocr
Any solution ? same problem

René Hansen

unread,
Jun 5, 2019, 4:43:57 AM6/5/19
to tesser...@googlegroups.com
The default traineddata works fine for numbers. If you whitelist only digits, that's all you're going to get back:

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


/René

--
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/e2132a10-ba58-48f7-857c-21805004e17a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Never fear, Linux is here.
Reply all
Reply to author
Forward
0 new messages