qr code: read
QR codes are a convenient method of sending links in a world where everyone has a mobile camera. In this series of videos we'll show you how you can work with them from python.
To read QR codes we'll need another dependency.
%pip install opencv-python==126.96.36.199
Given this dependency you can retreive the code from a QR code via;
import cv2 import matplotlib.pylab as plt # read the QRCODE image img = cv2.imread("qrcode.png") detector = cv2.QRCodeDetector() data, bbox, straight_qrcode = detector.detectAndDecode(img)
Feedback? See an issue? Something unclear? Feel free to mention it here.
If you want to be kept up to date, consider signing up for the newsletter.