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. | |
ImageScanner & | operator<< (Image &image) |
scan for symbols in provided image. |
reads barcodes from a 2-D Image
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.
int zbar::ImageScanner::set_config | ( | std::string | cfgstr | ) | [inline] |
void zbar::ImageScanner::enable_cache | ( | bool | enable = true |
) | [inline] |
enable or disable the inter-image result cache.
void zbar::ImageScanner::recycle_image | ( | Image & | image | ) | [inline] |
remove previous results from scanner and image.
const SymbolSet zbar::ImageScanner::get_results | ( | ) | const [inline] |
retrieve decode results for last scanned image.
int zbar::ImageScanner::scan | ( | Image & | image | ) | [inline] |
scan for symbols in provided image.
ImageScanner& zbar::ImageScanner::operator<< | ( | Image & | image | ) | [inline] |
scan for symbols in provided image.
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.