zbar::ImageScanner Class Reference

mid-level image scanner interface. More...

List of all members.

Public Member Functions

 ImageScanner (zbar_image_scanner_t *scanner=NULL)
 constructor.
 operator zbar_image_scanner_t * () const
 cast to C image_scanner object
void set_handler (Image::Handler &handler)
 setup result handler callback.
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.
int set_config (std::string cfgstr)
 set config parsed from configuration string.
void enable_cache (bool enable=true)
 enable or disable the inter-image result cache.
void recycle_image (Image &image)
 remove previous results from scanner and image.
const SymbolSet get_results () const
 retrieve decode results for last scanned image.
int scan (Image &image)
 scan for symbols in provided image.
ImageScanneroperator<< (Image &image)
 scan for symbols in provided image.


Detailed Description

mid-level image scanner interface.

reads barcodes from a 2-D Image


Member Function Documentation

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

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

void zbar::ImageScanner::enable_cache ( bool  enable = true  )  [inline]

enable or disable the inter-image result cache.

see zbar_image_scanner_enable_cache()

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

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

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

scan for symbols in provided image.

see zbar_scan_image()

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

scan for symbols in provided image.

see zbar_scan_image()


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

SourceForge.net Logo
spadix@users.sourceforge.net

Copyright 2008-2010 (c) Jeff Brown

This documentation is part of the ZBar Barcode Reader; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.