MBBarcodeRecognizer
@interface MBBarcodeRecognizer : MBRecognizer <NSCopying>
MBBarcodeRecognizer is used for scanning most of 1D barcode formats, and 2D format such as Aztec, DataMatrix and QR code
-
Undocumented
Declaration
Objective-C
MB_INIT
Swift
init()
-
Barcode recognizer results
Declaration
Objective-C
@property (readonly, strong, nonatomic) MBBarcodeRecognizerResult *_Nonnull result;
Swift
var result: MBBarcodeRecognizerResult { get }
-
Set this to YES to scan Aztec 2D barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanAztecCode;
Swift
var scanAztecCode: Bool { get set }
-
Set this to YES to scan Code 128 1D barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanCode128;
Swift
var scanCode128: Bool { get set }
-
Set this to YES to scan Code 39 1D barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanCode39;
Swift
var scanCode39: Bool { get set }
-
Set this to YES to scan DataMatrix 2D barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanDataMatrix;
Swift
var scanDataMatrix: Bool { get set }
-
Set this to YES to scan EAN 13 barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanEan13;
Swift
var scanEan13: Bool { get set }
-
Set this to YES to scan EAN8 barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanEan8;
Swift
var scanEan8: Bool { get set }
-
Set this to YES to scan ITF barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanItf;
Swift
var scanItf: Bool { get set }
-
Set this to YES to scan QR barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanQrCode;
Swift
var scanQrCode: Bool { get set }
-
Set this to YES to scan UPCA barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanUpca;
Swift
var scanUpca: Bool { get set }
-
Set this to YES to scan UPCE barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanUpce;
Swift
var scanUpce: Bool { get set }
-
Set this to YES to scan Pdf417 barcodes
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanPdf417;
Swift
var scanPdf417: Bool { get set }
-
Set this to YES to allow slower, but better image processing.
Default: YES
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL slowerThoroughScan;
Swift
var slowerThoroughScan: Bool { get set }
-
Allow enabling the autodetection of image scale when scanning barcodes. If set to true, prior reading barcode, image scale will be corrected. This enabled correct reading of barcodes on high resolution images but slows down the recognition process.
NOTE: This setting is applied only for Code39 and Code128 barcode scanning.
- Default: YES
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL autoScaleDetection;
Swift
var autoScaleDetection: Bool { get set }
-
Enable reading code39 barcode contents as extended data. For more information about code39 extended data (a.k.a. full ASCII mode), see https://en.wikipedia.org/wiki/Code_39#Full_ASCII_Code_39
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL readCode39AsExtendedData;
Swift
var readCode39AsExtendedData: Bool { get set }
-
Set this to YES to allow scanning barcodes with inverted intensities (i.e. white barcodes on black background)
NOTE: this options doubles the frame processing time
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanInverse;
Swift
var scanInverse: Bool { get set }
-
Set this to YES to scan even barcode not compliant with standards For example, malformed PDF417 barcodes which were incorrectly encoded
Use only if necessary because it slows down the recognition process
Default: YES
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL scanUncertain;
Swift
var scanUncertain: Bool { get set }
-
Set this to YES to scan barcodes which don’t have quiet zone (white area) around it
Use only if necessary because it slows down the recognition process
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL nullQuietZoneAllowed;
Swift
var nullQuietZoneAllowed: Bool { get set }