GSKOCRConfiguration

Objective-C

@interface GSKOCRConfiguration : NSObject

Swift

class GSKOCRConfiguration : NSObject

The configuration for an OCR operation

  • The path to the trained data folder (and not file).

    The folder must contain trained data files.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nonnull trainedDataPath;

    Swift

    var trainedDataPath: String { get set }
  • The language to process OCR with.

    The corresponding trained data files must be present in the folder specified by trainedDataPath.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSString *> *_Nonnull languageCodes;

    Swift

    var languageCodes: [String] { get set }