Created
May 27, 2022 14:50
-
-
Save Kyu/02af98bafc071606ce46726796b3d14b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
import pyzbar.pyzbar as pyzbar | |
img_file = "qr.png" | |
image = cv2.imread(img_file) | |
decodedObjects = pyzbar.decode(image) | |
for obj in decodedObjects: | |
print("Type:", obj.type) | |
print("Data: ", obj.data, "\n") | |
cv2.imshow("QR Scanner", image) | |
cv2.waitKey(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment