I'm analysing the ocr-reader sample project: https://github.com/googlesamples/android-vision/tree/master/visionSamples/ocr-reader
The goal would be to replace my custom "text to image" implementation for Android (with OpenCV and Tesseract) with Android Vision.
I could not find any way to apply advanced configuration for the OCR processor. For example, in my application, only a predefined set of symbols is allowed. For that, I'm using the following code in my App:
api.SetVariable("tessedit_char_whitelist", "ABJOKEA1234");
This helps to avoid the confusion between 0 and O for example.
Is there a way to do this with android-vision? I don't see any options while building the TextRecognizer:
TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();
In a general matter, does Google plan to extend the configurability of the library? For example:
- Cropping of the source image
- Providing a custom OCR training file
Or is it supposed to remain a straightforward library, with just common features?
Thanks for your help!