ZBARCAM(1) | ZBar Barcode Reader | ZBARCAM(1) |
NAME¶
zbarcam - scan and decode bar codes from a video deviceSYNOPSIS¶
zbarcam [-qv] [--quiet] [--nodisplay] [--xml] [--verbose[=n]] [--prescale=WxH] [-S[ symbology.]config[=value]] [--set [symbology.]config[=value]] [device]
zbarcam {-h | --help | --version}
DESCRIPTION¶
zbarcam scans a video4linux video source (eg, a webcam) for bar codes and prints any decoded data to the standard output. The video stream is also displayed to the screen.device is the path to the video4linux (version 1 or 2) character device special file (major number 81 and minor number 0 thru 63). It defaults to /dev/video0
The underlying library currently supports EAN-13 (including UPC and ISBN subsets), EAN-8, Code 128, Code 39, and Interleaved 2 of 5 symbologies. The specific type of each detected symbol is printed with the decoded data.
OPTIONS¶
This program follows the usual GNU command line syntax. Single letter options may be bundled, long options start with two dashes (`-´).-h, --help
--version
-v, --verbose[=n]
-S[symbology.]config[=value], --set [symbology.]config[=value]
enable
disable
emit-check
add-check
ascii
position
min-length=n, max-length=n
x-density=n, y-density=n
-q, --quiet
--nodisplay
--xml
--raw
--prescale=WxH
EXAMPLES¶
Scan for barcodes using the second video device and pipe the resulting data through a script that searches for each code in a database and does something useful with them:zbarcam /dev/video1 | upcrpc.py
The upcrpc.py example script included in the examples/ subdirectory of the distribution will make an XMLRPC call to a popular internet UPC database and print the product description if found.
Scan for barcodes using the default video device and stream results to stdout in XML format, also disable recognition of Interleaved 2 of 5 codes to prevent confusion with other symbologies or background noise:
zbarcam --xml -Si25.disable
Scan only for Code 39, without using the preview window - maybe for a fixed installation. To enable only Code 39, first all symbologies are disabled, then Code 39 is re-enabled:
zbarcam --nodisplay -Sdisable -Scode39.enable
SEE ALSO¶
zbarimg(1)BUGS¶
See http://sf.net/tracker/?group_id=189236&atid=928515AUTHOR¶
Jeff Brown <spadix@users.sourceforge.net>COPYRIGHT¶
Copyright © 2007-2009 Jeff BrownAll Rights Reserved
2009-10-23 | zbar-0.10 |