0

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?

Community
  • 1
  • 1
Anand Gautam
  • 2,541
  • 3
  • 34
  • 70

1 Answers1

0

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

Community
  • 1
  • 1
Rajesh
  • 10,318
  • 16
  • 44
  • 64
  • Thanks a lot for your response @iDev, using ABBYY I got the accurate text from my captured image. Can you please suggest me whether I can get separate each text with respect to name, address, email, phone number etc using this? – Anand Gautam Jun 09 '16 at 09:08
  • `http://cloud.ocrsdk.com/processBusinessCard` with this api you will get separate values that you expect – Rajesh Jun 09 '16 at 09:19
  • this is proper have a look at this http://ocrsdk.com/documentation/apireference/processBusinessCard/ – Rajesh Jun 09 '16 at 09:31
  • Thanks again for your time..! – Anand Gautam Jun 09 '16 at 09:37