SBSDKUIGenericDocumentRecognizerBehaviorConfiguration

@interface SBSDKUIGenericDocumentRecognizerBehaviorConfiguration : NSObject

Configuration for the behavior of the generic document recognizer.

  • Whether the torch light is toggled on or off.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isFlashEnabled) BOOL flashEnabled;

    Swift

    var isFlashEnabled: Bool { get set }
  • The recognizable document type.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) SBSDKUIDocumentType *documentType;

    Swift

    var documentType: SBSDKUIDocumentType { get set }
  • The accepted minimal sharpness score. Images with a score less than that will be rejected with blurry status.

    0 - any image will be accepted. 80 - a good compromise; the recommended setting. 100 - only very sharp images will be accepted.

    The default value is 80.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat sharpnessAcceptanceFactor;

    Swift

    var sharpnessAcceptanceFactor: CGFloat { get set }