0
votes

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 :

enter image description here

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:

Do any one else experience the same problem?

1

1 Answers

0
votes

For my case Tesseract Library was not accurate most of the time. instead Abby was kind of ok. but abby is not offline

Abby Stackoverflow Channel