Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions TesseractOCR/G8Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,22 @@ typedef NS_ENUM(NSUInteger, G8PageSegmentationMode){
};

/**
* When Tesseract/Cube is initialized we can choose to instantiate/load/run
* only the Tesseract part, only the Cube part or both along with the combiner.
* When Tesseract/LSTM is initialized we can choose to instantiate/load/run
* only the Tesseract part, only the LSTM part or both along with the combiner.
*/
typedef NS_ENUM(NSUInteger, G8OCREngineMode){
/**
* Run Tesseract only - fastest
* Run Tesseract only - fastest (deprecated)
*/
G8OCREngineModeTesseractOnly,
G8OCREngineModeTesseractOnly __attribute__((deprecated)),
/**
* Run Cube only - better accuracy, but slower
* Run LSTM only - better accuracy, but slower
*/
G8OCREngineModeCubeOnly,
G8OCREngineModeLSTMOnly,
/**
* Run both and combine results - best accuracy
* Run both and combine results - best accuracy (deprecated)
*/
G8OCREngineModeTesseractCubeCombined,
G8OCREngineModeTesseractLSTMCombined __attribute__((deprecated)),
// G8OCREngineModeDefault,
};

Expand Down
2 changes: 1 addition & 1 deletion TesseractOCR/G8Tesseract.mm
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ - (instancetype)init {

- (instancetype)initWithLanguage:(NSString*)language
{
return [self initWithLanguage:language configDictionary:nil configFileNames:nil cachesRelatedDataPath:nil engineMode:G8OCREngineModeTesseractOnly];
return [self initWithLanguage:language configDictionary:nil configFileNames:nil cachesRelatedDataPath:nil engineMode:G8OCREngineModeLSTMOnly];
}

- (instancetype)initWithLanguage:(NSString *)language engineMode:(G8OCREngineMode)engineMode
Expand Down
4 changes: 0 additions & 4 deletions TesseractOCRiOS.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ Pod::Spec.new do |s|

s.source = { git: 'https://github.com/gali8/Tesseract-OCR-iOS.git', tag: s.version.to_s }

s.platform = :ios, '10.0'

s.ios.source_files = 'TesseractOCR/*.{h,m,mm}', 'TesseractOCR/ios/include/**/*.h'
s.ios.private_header_files = 'TesseractOCR/ios/include/**/*.h'
s.ios.frameworks = 'UIKit', 'Foundation'

s.ios.deployment_target = '10.0'
s.ios.vendored_library = 'TesseractOCR/ios/lib/*.a'

s.platform = :macos, '10.13'

s.macos.source_files = 'TesseractOCR/*.{h,m,mm}', 'TesseractOCR/macos/include/**/*.h'
s.macos.private_header_files = 'TesseractOCR/macos/include/**/*.h'
s.macos.frameworks = 'AppKit', 'Foundation'
Expand Down