I created a basic app for recognizing text using the Tesseract API from Google and integrated it with my camera app. It works fine but the only problem is the accuracy, as sometimes the text is recognized as a random set of characters and I guess the accuracy is about 50 percent.
Further, when it tries to scan more than four words in an image, the app crashes.
String ocrText = baseApi.getUTF8Text();
baseApi.end();
where baseApi
is the object of the Tesseract API class.
Do I need to use a different data structure to save the recognized text or is there some other reason why more than four words don't get recognized?