Skip to content

Tesseract OCR iOS is a Framework for iOS5+, compiled also for armv7s.

Notifications You must be signed in to change notification settings

guanyuhong/Tesseract-OCR-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tesseract OCR iOS

Tesseract OCR iOS is a static library compiled for iOS5+, compiled also for armv7s.

It's only two files: libTesseract OCR iOS.a Tesseract.h

Usage

Copy libTesseract OCR iOS.a and Tesseract.h under your project
Import UIKit with: #import <UIKit/UIKit.h>
Import libTesseract OCR iOS with: #import <Tesseract OCR iOS/Tesseract.h>
Use Tesseract class like explained here: https://github.com/ldiqual/tesseract-ios

ex. from https://github.com/ldiqual/tesseract-ios

#import <UIKit/UIKit.h>
#import <Tesseract OCR iOS/Tesseract.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 avaliable in the libTesseract OCR iOS static library. [tesseract setVariableValue:@"0123456789" forKey:@"tessedit_char_whitelist"]; [tesseract setImage:[UIImage imageNamed:@"image_sample.jpg"]]; [tesseract recognize]; NSLog(@"%@", [tesseract recognizedText]);

License

Tesseract OCR iOS (this repo) is 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

Thanks to ldiqual for the good wrapper for Tesseract.

About

Tesseract OCR iOS is a Framework for iOS5+, compiled also for armv7s.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published