how to developed ocr application with textual image

71 Views Asked by At

i have scan(OCR) one image the out put is not correct using Tesseract library.if any one have idea please share with me. i have write code below

Tesseract* tesseract = [[Tesseract alloc] initWithDataPath:@"tessdata" language:@"eng"];
//[tesseract setVariableValue:@"0123456789" forKey:@"tessedit_char_whitelist"];
[tesseract setImage:[UIImage imageNamed:@"business_card_beauty_salon.jpg"]];
[tesseract recognize];

NSLog(@"%@", [tesseract recognizedText]);

OUTPUT is worng SmMh St my. 90210 v < 3f» ‘ »' \ . ,, \ *9 Q/ J Q )@ l JaneAnderson Beauty Salon tel: 905 555 5555

1

There are 1 best solutions below

3
On BEST ANSWER

Tesseract is the Open source library . So I dont thing it is much accurate . OCR libraries gives better results for images with resolution more than 150px . Also it would be nice if you give Black and white image . If you are more interested in accuracy then you have to find some paid libraries .