Skip to content

Commit

Permalink
added static method to retreive tesseract version
Browse files Browse the repository at this point in the history
  • Loading branch information
sobakasu committed Dec 6, 2012
1 parent 94823e3 commit 6dd5727
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Tesseract.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
NSMutableDictionary* _variables;
}

+ (NSString *)version;

- (id)initWithDataPath:(NSString *)dataPath language:(NSString *)language;
- (void)setVariableValue:(NSString *)value forKey:(NSString *)key;
- (void)setImage:(UIImage *)image;
Expand Down
4 changes: 4 additions & 0 deletions Classes/Tesseract.mm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ @interface Tesseract () {

@implementation Tesseract

+ (NSString *)version {
return [NSString stringWithFormat:@"%s", tesseract::TessBaseAPI::Version()];
}

- (id)initWithDataPath:(NSString *)dataPath language:(NSString *)language {
self = [super init];
if (self) {
Expand Down

0 comments on commit 6dd5727

Please sign in to comment.