forked from gali8/Tesseract-OCR-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tesseract.h
executable file
·43 lines (32 loc) · 1.15 KB
/
Tesseract.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// Tesseract.h
// Tesseract
//
// Created by Loïs Di Qual on 24/09/12.
// Copyright (c) 2012 Loïs Di Qual.
// Under MIT License. See 'LICENCE' for more informations.
//
#import <UIKit/UIKit.h>
@class Tesseract;
@protocol TesseractDelegate <NSObject>
@optional
- (BOOL)shouldCancelImageRecognitionForTesseract:(Tesseract*)tesseract;
@end
@interface Tesseract : NSObject
+ (NSString *)version;
@property (nonatomic, strong) NSString* language;
@property (nonatomic, strong) UIImage *image;
@property (nonatomic, assign) CGRect rect;
@property (nonatomic, readonly) short progress; // from 0 to 100
@property (nonatomic, readonly) NSString *recognizedText;
@property (nonatomic, weak) id<TesseractDelegate> delegate;
///
/// @warning deprecated method!
/// @deprecated - (id)initWithDataPath:(NSString *)dataPath language:(NSString *)language is deprecated. Please use - (id)initWithLanguage:(NSString*)language;
///
- (id)initWithDataPath:(NSString *)dataPath language:(NSString *)language DEPRECATED_ATTRIBUTE;
- (id)initWithLanguage:(NSString*)language;
- (void)setVariableValue:(NSString *)value forKey:(NSString *)key;
- (BOOL)recognize;
- (void)clear;
@end