ZBar Bar Code Reader Library  version 0.10
zbar::ImageScanner Class Reference

mid-level image scanner interface. More...

Collaboration diagram for zbar::ImageScanner:

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...
 
ImageScanneroperator<< (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
 

Detailed Description

mid-level image scanner interface.

reads barcodes from a 2-D Image

Constructor & Destructor Documentation

zbar::ImageScanner::ImageScanner ( zbar_image_scanner_t scanner = NULL)
inline

constructor.

References _scanner, scanner, and zbar::zbar_image_scanner_create().

Here is the call graph for this function:

zbar::ImageScanner::~ImageScanner ( )
inline

References _scanner, and zbar::zbar_image_scanner_destroy().

Here is the call graph for this function:

Member Function Documentation

void zbar::ImageScanner::enable_cache ( bool  enable = true)
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().

Here is the call graph for this function:

Here is the caller graph for this function:

const SymbolSet zbar::ImageScanner::get_results ( ) const
inline

retrieve decode results for last scanned image.

See also
zbar_image_scanner_get_results()
Since
0.10

References _scanner, and zbar::zbar_image_scanner_get_results().

Here is the call graph for this function:

zbar::ImageScanner::operator zbar_image_scanner_t * ( ) const
inline

cast to C image_scanner object

References _scanner.

ImageScanner& zbar::ImageScanner::operator<< ( Image image)
inline

scan for symbols in provided image.

see zbar_scan_image()

References scan().

Here is the call graph for this function:

void zbar::ImageScanner::recycle_image ( Image image)
inline

remove previous results from scanner and image.

See also
zbar_image_scanner_recycle_image()
Since
0.10

References _scanner, and zbar::zbar_image_scanner_recycle_image().

Referenced by zbar::QZBarThread::processImage().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar::ImageScanner::scan ( Image image)
inline

scan for symbols in provided image.

see zbar_scan_image()

References _scanner, and zbar::zbar_scan_image().

Referenced by main(), operator<<(), and zbar::QZBarThread::processImage().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar::ImageScanner::set_config ( zbar_symbol_type_t  symbology,
zbar_config_t  config,
int  value 
)
inline

set config for indicated symbology (0 for all) to specified value.

See also
zbar_image_scanner_set_config()
Since
0.4

References _scanner, and zbar::zbar_image_scanner_set_config().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar::ImageScanner::set_config ( std::string  cfgstr)
inline

set config parsed from configuration string.

See also
zbar_image_scanner_parse_config()
Since
0.4

References _scanner, and zbar::zbar_image_scanner_parse_config().

Here is the call graph for this function:

void zbar::ImageScanner::set_handler ( Image::Handler handler)
inline

setup result handler callback.

References _scanner, and zbar::zbar_image_scanner_set_data_handler().

Referenced by zbar::QZBarThread::QZBarThread().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation


The documentation for this class was generated from the following file: