Tesseract OCR iOS is a Framework for iOS5+, also for armv7s.
It will help you to use OCR in a iOS project. Easy and fast.
Add the framework "TesseractOCR.framework" (you can drag&drop it) from the Products folder in this repo, to your XCode Project under your project
If you are masochist :) you can generate your TesseractOCR.framework building the TesseractOCRAggregate target.
Finally go to your project, click on the project and in the Build Settings tab add -lstdc++
to all the "Other Linker Flags" keys.
Import the header in your classes writing #import <TesseractOCR/TesseractOCR.h>
Now you can use Tesseract class like explained here: https://github.com/ldiqual/tesseract-ios
ex. from https://github.com/ldiqual/tesseract-ios but using the "TesseractOCR.framework"
#import <TesseractOCR/TesseractOCR.h>
Tesseract* tesseract = [[Tesseract alloc] initWithDataPath:@"tessdata" language:@"grc"];
//language are used for recognition. Ex: grc. Tesseract will search for a grc.traineddata file in the dataPath directory.
//grc.traineddata is already available in the TesseractOCR.framework.
[tesseract setVariableValue:@"0123456789" forKey:@"tessedit_char_whitelist"];
[tesseract setImage:[UIImage imageNamed:@"image_sample.jpg"]];
[tesseract recognize];
NSLog(@"%@", [tesseract recognizedText]);
Set Tesseract variable key to value. See http://www.sk-spell.sk.cx/tesseract-ocr-en-variables for a complete (but not up-to-date) list.
For instance, use tessedit_char_whitelist to restrict characters to a specific set.
Tesseract OCR iOS use UIKit, Foundation and CoreFoundation. They are already included in standard iOS Projects.
Tesseract OCR iOS and TesseractOCR.framework are under MIT License.
Tesseract-ios, powered by ldiqual https://github.com/ldiqual/tesseract-ios, is under MIT License.
Tesseract, powered by Google http://code.google.com/p/tesseract-ocr/, is under Apache License.
Thanks to ldiqual for the good wrapper for Tesseract.
Daniele Galiotto www.g8production.com