Skip to content

TemugeB/QR_code_orientation_OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR code orientation using OpenCV

Alt text

Simple demo that uses OpenCV QR detector and photogrammetry functions to determine the location and orientation of QR code in camera view. Explanation of the code is provided as a blog post here: link. In this demo, I've included a short video clip as well as the camera calibration parameters. The camera calibration parameters must be known.

Requirements:
Python 3.8
OpenCV
Intrinsic camera parameters must be known for your camera.

Functionality:
To see the demo on provided video clip, simply call as:

python run_qr.py

If you want to use a webcam, call the function with the camera id. For example, webcam registered to 0:

python run_qr.py 0

It is recommended that you keep your image resolution low (480p). If you want to use high resolution, resize the image to low resolution right before qr.detect() call and then rescale back to your full resolution.

About

Getting QR code orientation using OpenCV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages