import cv2, sys
img = cv2.imread(r"C:\laragon\www\fse-secrets\_e2e_qr.png")
if img is None:
    print("NO IMAGE"); sys.exit(1)
det = cv2.QRCodeDetector()
data, pts, _ = det.detectAndDecode(img)
print("pixels=%dx%d" % (img.shape[1], img.shape[0]))
print("decoded=" + repr(data))
