Tim M 57b5cefde5 Updated all `.md` files to contain newest image %!s(int64=2) %!d(string=hai) anos
..
CMakeLists.txt 929e3d6bcc Specify OpenCV_DIR in cmake command %!s(int64=6) %!d(string=hai) anos
README.md 57b5cefde5 Updated all `.md` files to contain newest image %!s(int64=2) %!d(string=hai) anos
qrCodeOpencv.cpp 427bc2b0d1 Direct call to constructor removed. %!s(int64=6) %!d(string=hai) anos
qrCodeOpencv.py e887c7e111 added README and CMakeLists.txt and some bug fixes %!s(int64=6) %!d(string=hai) anos
qrcode-learnopencv.jpg e887c7e111 added README and CMakeLists.txt and some bug fixes %!s(int64=6) %!d(string=hai) anos
zbar-opencv-comparison.py e887c7e111 added README and CMakeLists.txt and some bug fixes %!s(int64=6) %!d(string=hai) anos

README.md

OpenCV QR Code Scanner ( C++ and Python )

This repository contains the code for OpenCV QR Code Scanner ( C++ and Python ) blog post.

download

This code requires OpenCV 3.4.4 or above or later.

For C++

How to compile the code

Specify the OpenCV_DIR in CMake option

cmake -D OpenCV_DIR=<path to opencv install directory>/lib/cmake/opencv4/ .
make

OR First Specify the OpenCV_DIR in CMakeLists.txt file. Then,

cmake .
make

How to Run the code

C++

./qrCodeOpencv <filename>

Python

python qrCodeOpencv.py <filename>

Note : If you dont give any filename, it will use the default image provided.

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.