2/16/2023 0 Comments Qr code reader image![]() Gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)ĭecode the QR image using pyzbar: from pyzbar.pyzbar import decode Read the image and convert to Grayscale: img = cv2.imread('QR-code.png') You may use the following stages for reading and decoding the QR code: I am using Python 3.6 and Windows 10, and there are no errors. I don't know the reason for the error messages. N:John you can see, the information is readable. #qrData = Qr_img_to_text(image_file_name) Img2 = cv2.resize(img, (img.shape*2, img.shape*2), interpolation=cv2.INTER_LANCZOS4) # Resize by x2 using LANCZOS4 interpolation method.įrom pyaadhaar.utils import Qr_img_to_text, isSecureQr Img = cv2.imread(image_file_name, cv2.IMREAD_GRAYSCALE) # Read image as grayscale. Reading, resizing and saving as a new image: import cv2 Resizing the input by a factor of 2 allows reading the QR code:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |