Closed TheLastGimbus closed 2 years ago
Try-catch will be added. If possible, please upload an error image as well.
Thanks! By the way, again - I would be happy to contribute to this plugin because I will use it a lot - I know Java and Kotlin good enough - if there is something I can help with, let me know!
When do you plan to add "Live OCR" (as you named it) in Android?
(In addition to what I wrote in #4 ) When scanning multiple images, I get this:
W/TessBaseAPI(27912): TessBaseAPI was not terminated using recycle()
But it doesn't crash anything :monocle_face: it would be nice to have more control over tesseract's lifecycle in general :ok_hand:
I will want to scan stuff on 2 threads simontanuesly - for now, it works nice :ok_hand: - please implement "Live OCR" with this in mind if you may :pray:
Thanks again!
Converting from Android to CameraImage -> Bytes throws an error. I couldn't find a solution. https://github.com/khjde1207/tesseract_ocr/blob/b32202837723ffe572fa7905a43ddbd5706af5ef/example/lib/camera_view.dart#L737
https://github.com/adaptech-cz/Tesseract4Android/issues/22
I used the latest version of Tesseract4Android because of this error. The end function is gone in the latest version. calling the stop function. this seems to be the problem
I found the image! It was 0 bytes empty file :joy: I added if
in my code to skip those...
Hi there!
I'm recently testing this lib on large number of images - I was scanning about 1k of them, and this error kept ocuring on one of them:
Sadly, I didn't collect the image itself to see what's wrong, but that's not very important - this completley crashes the app, giving you no way to handle it
Can we just
try-catch
any Java exceptions (at least inrun
):https://github.com/khjde1207/tesseract_ocr/blob/668a1a7dcb42a444c9578309d3768fa7b781693b/android/src/main/java/io/paratoner/flutter_tesseract_ocr/FlutterTesseractOcrPlugin.java#L91-L101
...and pass them to Dart?