Bar and QR code detector
This project is forked from zbar library, I added few modifications, so webcam can be used as an image reader to detect QR and Bar codes.
- Pure python
- Works with PIL / Pillow images, OpenCV / numpy
ndarrays, and raw bytes
- Decodes locations of barcodes
- No dependencies, other than the zbar library itself
- Tested on Python 2.7, and Python 3.4 to 3.6
Here is a quick look of the final output:
Mac OS X: Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install zbar
sudo apt-get install libzbar0
Install this Python wrapper; use the second form to install dependencies of the command-line scripts:
pip install pyzbar pip install pyzbar[scripts]
Go to see the Jupyter Notebook for more details.
pyzbar is distributed under the MIT license (see
zbar shared library is distributed under the GNU Lesser General Public
License, version 2.1 (see