How to Read QR Code using OpenCV in Python
In this post, I will show you how to read QR Code using OpenCV in Python.

In the previous article we learned to create a QR Code,
So in this article we will try to read it using the help of OpenCV.
Steps
- Install OpenCV
pip install opencv-python- Import OpenCV
import cv2
from cv2 import *- Read Image (your QC Code)
img = cv2.imread("qrcode5.png")- Detect QR Code
detect =cv2.QRCodeDetector()
val, pts, st_code = detect.detectAndDecode(img)- Show result
print(val)Become a Member
I hope you like the article, I would highly recommend signing up for Medium Membership.
Your membership fee directly supports me and other writers you read. You’ll also get full access to every story on Medium.





