qr code logo qr code: read

1 2 3 4

To read QR codes we'll need another dependency.

%pip install opencv-python==

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)