Inherits from: | NSObject |
---|
This is a low-level interface for programmatically scanning images without a user interface. If you want to scan images manually selected by the user (from the photo library or using the camera), you may prefer to use a ZBarReaderController instead.
This class is a wrapper around a zbar_image_scanner_t C object (q.v.)
- BOOL enableCache¶
Enable the inter-frame consistency cache. Set to YES for scanning video or NO for scanning images.
- ZBarSymbolSet results¶
Decoded symbols resulting from the last scan.
- - (void) parseConfig:(NSString*)config
Apply scanner/decoder configuration parsed from a string.
Config : A configuration setting of the form: symbology.config[=value].
- - (void) setSymbology:(zbar_symbol_type_t)symbology config:(zbar_config_t)config to:(int)value
Apply generic scanner/decoder configuration.
Symbology : The symbology to effect, or 0 for all. Config : The configuration setting to adjust. Value : The value to set for the specific configuration/symbology.
- - (NSInteger) scanImage:(ZBarImage*)image
Scan an image for barcodes using the current configuration. The image must be in Y800 format (8-bpp graysale).
Image : The ZBarImage to scan. Returns : The number of barcode symbols decoded in the image.