MBIDetectorRecognizer


@interface MBIDetectorRecognizer : MBITemplatingRecognizer <NSCopying>

Recognizer for scanning generic documents using custom MBIDetector.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    MB_INIT_UNAVAILABLE
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithQuadWithSizeDetector:(MBIQuadWithSizeDetector *)detector NS_DESIGNATED_INITIALIZER;

    Swift

    init(quadWithSizeDetector detector: MBIQuadWithSizeDetector)
  • Detector recognizer results

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) MBIDetectorRecognizerResult *_Nonnull result;

    Swift

    var result: MBIDetectorRecognizerResult { get }
  • Set this to true to enable recognition of document also in upside down direction. This is useful if detector being used cannot determine correct orientation of detected document (for example MBIDocumentDetector). Keep in mind that enabling this feature will make recognition two times slower and possibly less accurate. By default, this is turned off.

    Default: NO

    Declaration

    Objective-C

    @property (nonatomic) BOOL allowFlipped;

    Swift

    var allowFlipped: Bool { get set }
  • Returns the detector that will be used for performing the document detection during recognition

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) MBIQuadWithSizeDetector *_Nonnull detector;

    Swift

    var detector: MBIQuadWithSizeDetector { get }