2

I am developing an Android OCR.

Using tess-two in the Android made ​​the OCR.

I have downloaded the 'traineddata' file. And it has succeeded in output in English . But I want to output a number.

In the Internet gave me inform the sentence 'tesseract image.tif outputbase nobatch digits' and it has advised me to insert the generated files.

But I did not understand what I'm saying . Please tell me the easiest way.

2
  • But I did not understand what I'm saying - interesting problem) Commented Jul 29, 2016 at 6:48
  • haha... I can not speak English well , so I am using a translator . >> I don't understand. Commented Jul 29, 2016 at 7:01

1 Answer 1

4

You will need to set tessedit_char_whitelist variable, as follows:

baseApi.SetVariable("tessedit_char_whitelist", "0123456789"); 

See Android OCR detecting digits only using popular tessercat fork tess-two or extracting numbers from Bitmap in android using tess-two library.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you very much for your kindness!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.