high-level self-contained image processor. More...
Public Member Functions | |
Processor (bool threaded=true, const char *video_device="", bool enable_display=true) | |
constructor. More... | |
~Processor () | |
void | force_format (unsigned long input_format, unsigned long output_format) |
force specific input and output formats for debug/testing. More... | |
void | force_format (std::string &input_format, std::string &output_format) |
force specific input and output formats for debug/testing. More... | |
const SymbolSet | get_results () const |
retrieve decode results for last scanned image. More... | |
void | init (const char *video_device="", bool enable_display=true) |
opens a video input device and/or prepares to display output. More... | |
bool | is_visible () |
retrieve the current state of the ouput window. More... | |
operator zbar_processor_t * () | |
cast to C processor object. More... | |
Processor & | operator<< (Image &image) |
process the provided image for barcodes. More... | |
void | process_image (Image &image) |
process the provided image for barcodes. More... | |
void | process_one (int timeout=FOREVER) |
process from the video stream until a result is available. More... | |
void | request_interface (int version) |
request a preferred driver interface version for debug/testing. More... | |
void | request_iomode (int iomode) |
request a preferred I/O mode for debug/testing. More... | |
void | request_size (int width, int height) |
request a preferred size for the video image from the device. More... | |
void | set_active (bool active=true) |
control the processor in free running video mode. 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... | |
void | set_visible (bool visible=true) |
show or hide the display window owned by the library. More... | |
int | user_wait (int timeout=FOREVER) |
wait for input to the display window from the user. More... | |
Static Public Attributes | |
static const int | FOREVER |
value to pass for no timeout. More... | |
Private Attributes | |
zbar_processor_t * | _processor |
high-level self-contained image processor.
processes video and images for barcodes, optionally displaying images to a library owned output window
|
inline |
constructor.
References _processor, init(), test_pygtk::video_device, and zbar::zbar_processor_create().
|
inline |
References _processor, and zbar::zbar_processor_destroy().
|
inline |
force specific input and output formats for debug/testing.
see zbar_processor_force_format()
References _processor, zbar::throw_exception(), and zbar::zbar_processor_force_format().
|
inline |
force specific input and output formats for debug/testing.
see zbar_processor_force_format()
References _processor, zbar::throw_exception(), and zbar::zbar_processor_force_format().
|
inline |
retrieve decode results for last scanned image.
References _processor, and zbar::zbar_processor_get_results().
|
inline |
opens a video input device and/or prepares to display output.
References _processor, zbar::throw_exception(), test_pygtk::video_device, and zbar::zbar_processor_init().
Referenced by Processor().
|
inline |
retrieve the current state of the ouput window.
see zbar_processor_is_visible()
References _processor, zbar::throw_exception(), and zbar::zbar_processor_is_visible().
|
inline |
cast to C processor object.
References _processor.
process the provided image for barcodes.
References process_image().
process the provided image for barcodes.
References _processor, zbar::throw_exception(), and zbar::zbar_process_image().
Referenced by operator<<().
process from the video stream until a result is available.
References _processor, zbar::throw_exception(), and zbar::zbar_process_one().
|
inline |
request a preferred driver interface version for debug/testing.
see zbar_processor_request_interface()
References _processor, and zbar::zbar_processor_request_interface().
|
inline |
request a preferred I/O mode for debug/testing.
see zbar_processor_request_iomode()
References _processor, zbar::throw_exception(), and zbar::zbar_processor_request_iomode().
|
inline |
request a preferred size for the video image from the device.
see zbar_processor_request_size()
References _processor, and zbar::zbar_processor_request_size().
|
inline |
control the processor in free running video mode.
see zbar_processor_set_active()
References _processor, zbar::throw_exception(), and zbar::zbar_processor_set_active().
Referenced by main().
|
inline |
set config for indicated symbology (0 for all) to specified value.
References _processor, and zbar::zbar_processor_set_config().
|
inline |
set config parsed from configuration string.
References _processor, and zbar::zbar_processor_parse_config().
|
inline |
setup result handler callback.
see zbar_processor_set_data_handler()
References _processor, and zbar::zbar_processor_set_data_handler().
|
inline |
show or hide the display window owned by the library.
see zbar_processor_set_visible()
References _processor, zbar::throw_exception(), read_one::visible, and zbar::zbar_processor_set_visible().
Referenced by main().
|
inline |
wait for input to the display window from the user.
see zbar_processor_user_wait()
References _processor, zbar::throw_exception(), and zbar::zbar_processor_user_wait().
Referenced by main().
|
private |
|
static |
value to pass for no timeout.