I am creating an iPhone application in Objective C. I am trying to recognise the text from an image (taken from camera). For this, I use in my app Tesseract OCR Library. Its working fine for some of the text but not getting accurate results from the captured image. Also have the latest tessdata file from Google code.
I added tesseract library from this link.
Below is my image that I tried to recognise :
My code is as follows:
G8Tesseract *tesseract = [[G8Tesseract alloc] initWithLanguage:@"eng+fra" engineMode:G8OCREngineModeTesseractCubeCombined];
[tesseract setVariableValue:@"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:;,.!-()#&÷" forKey:@"tessedit_char_whitelist"];
tesseract.pageSegmentationMode = G8PageSegmentationModeAuto;
tesseract.maximumRecognitionTime = 60.0;
tesseract.image = [selectedImage g8_blackAndWhite];
[tesseract recognize];
NSLog(@"%@", [tesseract recognizedText]);
But I am getting results like this :
BAZAAR
mm; l Savees l smmamm l mm; l Accessories
commemw Street ' _ . «mm. me o snwapnagay
www minabazaav.cum
I already go through from this links:
- How do I get accurate text using Tesseract OCR in iOS?
- Why Tesseract OCR library (iOS) cannot recognize text at all?
- http://www.scriptscoop2.com/t/42247286510f/c-3.5-why-i-am-not-able-to-recognize-text-in-image-using-tesseract.html.
Do any one else experience the same problem?