Skip to content

A real-time QR Code scanning program using webcam and Python 3

Notifications You must be signed in to change notification settings

meticulousCraftman/QR-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR-Code

A real-time QR Code scanning program using webcam and Python 3

Dependencies

There are 3 dependencies for this project:

  1. ZBar
  2. pyzbar
  3. OpenCV
  4. imutils

Before installing anything I would prefer you to make virtual env using your favourite tool like conda, pipenv etc.

Installing Zbar

Installing ZBar for Ubuntu can be accomplished with the following command:

foo@bar:~$ sudo apt-get install libzbar0

Installing pyzbar

You can simply use pip to install pyzbar

foo@bar:~$ pip install pyzbar

Installing OpenCV

Here is a step by tutorial showing you how to install OpenCV 3 on Python 3. Just follow the tutorial.

Installing imutils

Only after installing OpenCV install imutils as it depends on it.

foo@bar:~$ pip install imutils

Running the application

Check whether you webcam is accessible by running the webcam.py program.

foo@bar:~$ python webcam.py

Run the program by using python

foo@bar:~$ python custom_qr.py

Results,

No QR Code. Webcam window

QR Code Scanning

Reference

You can find a complete tutorial on this here.

About

A real-time QR Code scanning program using webcam and Python 3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages