SBSDKUITextDataScannerBehaviorConfiguration
@interface SBSDKUITextDataScannerBehaviorConfiguration : NSObject
Configuration for the behavior of text line recognizer.
-
The data scanner recognition step.
Declaration
Objective-C
@property (nonatomic, strong) SBSDKUITextDataScannerStep *recognitionStep;
Swift
var recognitionStep: SBSDKUITextDataScannerStep! { get set }
-
Whether flash is toggled on or off.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isFlashEnabled) BOOL flashEnabled;
Swift
var isFlashEnabled: Bool { get set }
-
Whether the word boxes should be shown.
Declaration
Objective-C
@property (nonatomic) BOOL wordBoxHighlightEnabled;
Swift
var wordBoxHighlightEnabled: Bool { get set }
-
The maximum number of accumulated video frames before the current recognition result is returned.
Declaration
Objective-C
@property (nonatomic) NSUInteger maximumNumberOfAccumulatedFrames;
Swift
var maximumNumberOfAccumulatedFrames: UInt { get set }
-
Maximum image side length (height or width) for OCR processing. If the initial image has longer side - it will be downscaled to the limit. Setting to
0
means no limit. Default is 0. Using this parameter might be useful for slower devices or to reduce processing load.Declaration
Objective-C
@property (nonatomic) NSUInteger ocrResolutionLimit;
Swift
var ocrResolutionLimit: UInt { get set }
-
The minimum equal results in accumulated video frames to count as valid.
Declaration
Objective-C
@property (nonatomic) NSUInteger minimumNumberOfRequiredFramesWithEqualRecognitionResult;
Swift
var minimumNumberOfRequiredFramesWithEqualRecognitionResult: UInt { get set }