GSKScanFlowOCRConfiguration

Objective-C

@interface GSKScanFlowOCRConfiguration : NSObject

Swift

class GSKScanFlowOCRConfiguration : NSObject

The configuration for text recognition

  • 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 }
  • The formats in which the OCR result is made available in the ScanFlow result

    Default is everything.

    Declaration

    Objective-C

    @property (nonatomic) GSKScanFlowOCROutputFormats outputFormats;

    Swift

    var outputFormats: GSKScanFlowOCROutputFormats { get set }