mid-level image scanner interface. More...
Public Member Functions | |
ImageScanner (zbar_image_scanner_t *scanner=NULL) | |
constructor. More... | |
~ImageScanner () | |
void | enable_cache (bool enable=true) |
enable or disable the inter-image result cache. More... | |
const SymbolSet | get_results () const |
retrieve decode results for last scanned image. More... | |
operator zbar_image_scanner_t * () const | |
cast to C image_scanner object More... | |
ImageScanner & | operator<< (Image &image) |
scan for symbols in provided image. More... | |
void | recycle_image (Image &image) |
remove previous results from scanner and image. More... | |
int | scan (Image &image) |
scan for symbols in provided image. More... | |
int | set_config (zbar_symbol_type_t symbology, zbar_config_t config, int value) |
set config for indicated symbology (0 for all) to specified value. More... | |
int | set_config (std::string cfgstr) |
set config parsed from configuration string. More... | |
void | set_handler (Image::Handler &handler) |
setup result handler callback. More... | |
Private Attributes | |
zbar_image_scanner_t * | _scanner |
mid-level image scanner interface.
reads barcodes from a 2-D Image
|
inline |
constructor.
References _scanner, scanner, and zbar::zbar_image_scanner_create().
|
inline |
References _scanner, and zbar::zbar_image_scanner_destroy().
|
inline |
enable or disable the inter-image result cache.
see zbar_image_scanner_enable_cache()
References _scanner, and zbar::zbar_image_scanner_enable_cache().
Referenced by zbar::QZBarThread::enableVideo().
|
inline |
retrieve decode results for last scanned image.
References _scanner, and zbar::zbar_image_scanner_get_results().
|
inline |
cast to C image_scanner object
References _scanner.
|
inline |
remove previous results from scanner and image.
References _scanner, and zbar::zbar_image_scanner_recycle_image().
Referenced by zbar::QZBarThread::processImage().
|
inline |
scan for symbols in provided image.
References _scanner, and zbar::zbar_scan_image().
Referenced by main(), operator<<(), and zbar::QZBarThread::processImage().
|
inline |
set config for indicated symbology (0 for all) to specified value.
References _scanner, and zbar::zbar_image_scanner_set_config().
Referenced by main().
|
inline |
set config parsed from configuration string.
References _scanner, and zbar::zbar_image_scanner_parse_config().
|
inline |
setup result handler callback.
References _scanner, and zbar::zbar_image_scanner_set_data_handler().
Referenced by zbar::QZBarThread::QZBarThread().
|
private |
Referenced by enable_cache(), get_results(), ImageScanner(), operator zbar_image_scanner_t *(), recycle_image(), scan(), set_config(), set_handler(), and ~ImageScanner().