rmtheis / android-ocr

Experimental optical character recognition app
Apache License 2.0
2.23k stars 894 forks source link

How to set up overtime #61

Closed UC10D closed 7 years ago

UC10D commented 7 years ago

How to set up overtime when it begin to distinguish

rmtheis commented 7 years ago

What do you mean by "overtime"?

UC10D commented 7 years ago

I have a pic with many text. When i use "textResult = baseApi.getUTF8Text()" It will take 30 seconds or more。 I want to set up overtime,if it over and return false。

rmtheis commented 7 years ago

Ah, a timeout. You can try setting a timer yourself and using stop. You'll also need update to tess-two 6.2.0, and use getHOCRText in place of getUTF8Text. It may or may not work well depending on what your images look like.