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。
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.
How to set up overtime when it begin to distinguish