MBDetectorRecognizer
@interface MBDetectorRecognizer : MBTemplatingRecognizer <NSCopying>
Recognizer for scanning generic documents using custom MBDetector.
-
Undocumented
Declaration
Objective-C
MB_INIT_UNAVAILABLE
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithQuadWithSizeDetector:(MBQuadWithSizeDetector *)detector NS_DESIGNATED_INITIALIZER;
Swift
init(quadWithSizeDetector detector: MBQuadWithSizeDetector)
-
Detector recognizer results
Declaration
Objective-C
@property (readonly, strong, nonatomic) MBDetectorRecognizerResult *_Nonnull result;
Swift
var result: MBDetectorRecognizerResult { 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 MBDocumentDetector). 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 (assign, readwrite, 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 (readonly, strong, nonatomic) MBQuadWithSizeDetector *_Nonnull detector;
Swift
var detector: MBQuadWithSizeDetector { get }