rmtheis / tess-two

Fork of Tesseract Tools for Android
Apache License 2.0
3.76k stars 1.38k forks source link

In versions higher than 5.4.1 TessBaseAPI.ProgressNotifier never called #262

Closed air-hedgehog closed 5 years ago

air-hedgehog commented 5 years ago

Summary: After updating gradle dependency version higher than 5.4.1 the ProgressNotifier is triggered no more.

tessBaseApi = TessBaseAPI(TessBaseAPI.ProgressNotifier { progressValues -> //this part isn't called on current version activity.showProgress("${activity.getString(R.string.recognising)} ${progressValues.percent}%") })

Steps to reproduce the issue:

  1. Add any photo
  2. Start recognizing process

Expected result: percentage progress shown

Actual result: UI changes isn't triggered by ProgressNotifier

Tess-two version: 6.0.0+

Android version: 7.0

Phone/device model: Xiaomi Redmi NOTE 4

Phone/device architecture: aarch64

Link to project: Github project MediOCR

rmtheis commented 5 years ago

See this note. You need to use getHOCRText here instead of getUTF8Text.