khjde1207 / tesseract_ocr

Tesseract OCR for flutter
BSD 3-Clause "New" or "Revised" License
62 stars 31 forks source link

Fixing Calling multiple async calls crashing bug #24

Closed ManeraKai closed 2 years ago

ManeraKai commented 2 years ago

When you try to call another .extractText without waiting for the first one to finish. The app will crash and give you an address error. The invoke method is async in Flutter, why should it be async too in Java too? (new Thread()) Without making a new Thread, I'm able to call .extractText multiple times.

khjde1207 commented 2 years ago

thanks