Skip to content

A little QR-Generator and -Decoder, with live capturing function.

License

Notifications You must be signed in to change notification settings

binkertpat/qrgenread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qrgenread

This script is able to generate QR-Codes, read QR-Codes from directory and detect QR-Codes live via Webcam.

The main()-function defines the primary arguments you should pass by console.

if args[1] == "gen":
    generateQR(*args[2:])
elif args[1] == "read":
    readQR(*args[2:])
elif args[1] == "live":
    liveCapturingQR(*args[2:])

The secondary arguments are depended on the called function.

If you want to generate an QR-Code, you are able to set datas, filename, pixelcolor, backgroundcolor and the style (rounded or not). Just the datas-Argument is required. The other ones have defaults or generated filenames from the current timestamp.

python qr.py gen https://github.com/binkertpat/qrgen respository
python qr.py gen https://github.com/binkertpat/qrgen respository black white rounded 

If you want to read QR-Codes there are two ways. The first way is copy & paste the Images in the readQR-directory. All these files are decoded automatic. You are able to call the function with a path, to your own directory.

python qr.py read                              
python qr.py read ./myQRcodes/awesomeCodes   

The last opportunity is decoding QR-Codes live via webcam. Over console, you call:

python qr.py live   

After that, a new window is opening. This window shows the webcam image with the marked detected QR-Code. The decoded QR-Code data will print to the console.

About

A little QR-Generator and -Decoder, with live capturing function.

Resources

License

Stars

Watchers

Forks

Languages