I'm using Google's play-services-vision
to perform Optical Character Recognition (OCR) using the TextRecognizer
class on the Android platform.
In the interest of performance, I would like to limit the range of characters possible for recognition to the expected range of my application. I don't know how to go about informing the TextRecognizer
of this.
Currently, I am using a very basic implementation:
TextRecognizer t = new TextRecognizer.Builder(getActivity()).build();
I'm hoping for functionality reminiscent of the following, where the TextRecognizer
would only be capable of returning characters in the range of 01234abc
:
t.setCharacterRange("01234abc");
If it is at all possible to define this whitelist, does anyone have any knowledge as to whether special characters can be configured for detection too?