ZBar is an open source software suite for reading bar codes from various sources, such as video streams, image files and raw intensity sensors. It supports many popular symbologies (types of bar codes) including EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
This repository is forked from the ZBar python wrapper download at PyPI, and only contains the python wrapper for the C library. For the full C library source, installation directions, etc., check out the ZBar homepage.
Patches imagescanner.c
to fix crashing (segmentation fault 11) issues with import zbar
on OS X.
Patch taken from http://launchpadlibrarian.net/134768014/zbar_0.10+doc-7build3_0.10+doc-8.diff.gz.
Patches processor.c
to make it possible to set pre-scale value for the camera in Python, as with --prescale
arguments when execute 'zbarcam'.
I set pre-scale to a relatively low resolution to make zbarcam process faster on Raspiberry Pi. See the example.