I am working on iPhone application.Here I need to get text from the images, after googling I found Tesseract can do that.Its working fine but not getting accurate results.I used this and processed the image but still not getting good results.
Tesseract* tesseract = [[Tesseract alloc] initWithDataPath:@"tessdata" language:@"eng"];
UIImage *selectedImage=[UIImage imageNamed:@"download.jpg"];
[tesseract setImage:selectedImage];
ImageWrapper *greyScale=Image::createImage(selectedImage, selectedImage.size.width+100, selectedImage.size.height+100);
ImageWrapper *edges = greyScale.image->autoLocalThreshold();
[tesseract setImage:edges.image->toUIImage()];
[tesseract recognize];
NSLog(@"%@", [tesseract recognizedText]);
I used below image for testing.But I am getting results like .-|llIAT&T JG H109 PM ED
' '» "rr ~ ‘
ma» mania-J ‘E,
‘M, 4 ., -_
\ ~ \ Download Image 53.0 KB \
_11.04 PM
| Hey | am in buenos aires right
‘now. Check out this mm phfllu 111:5 PM
|' lam in Budapest on WiF. n is \
maePMu 001d here. ;
l 1 .
, ‘
l, .
11.05 PM u, .——; _
| Nice picture. Let me send you
an audio nuke. _11 08PM
How to solve the above issue.If any one worked on it please guide me.Thanks in advance.