QR Code Detector with Webcam (Python / OpenCV / Pyzbar)

This project is forked from zbar library, I added some modifications, so webcam can be used as an image reader to detect QR and Barcodes.

code128_1

* Pure python
* Works with PIL / Pillow images, OpenCV / Numpy, Matplotlib 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:

Capture

You could download and clone the project from my Github:Webcam_QR_Detector.

There are two Jupyter-Notebooks will help you go through all the details:

  1. [Lab_01_QR_Bar_Code_Detector_Basic];
  2. [Lab_02_QR_Bar_Code_Detector_Webcam].

Support the Author

Help the author to create more useful and interesting articles.

A$1.00

-END-

Author: Caihao (Chris) Cui

Digital Scientist & Advisory: Translating the modern machine learning, deep learning, and computer vision techniques into engineering and bringing ideas to life to design a better future.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s