Python Forum
can't read QRcode in large file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can't read QRcode in large file
#1
Hello,

I want to read the position of 4QRcode. When I use the picture"QRcode2.png" I find 2 QRcode (result : OK). But when I print this same QRcode and scan the sheet (file : capture1.jpg) I read only 1 QRcode on the 4.

Here the file :
https://we.tl/t-3Yv0sZRzmI

Here the code :
import cv2
import matplotlib.pyplot as plt    
import math
import numpy as np

image = cv2.imread("png.png")
#image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

qrCodeDetector = cv2.QRCodeDetector()
points = qrCodeDetector.detectMulti(image)
#decodedText, points, _ = qrCodeDetector.detectAndDecode(image)
QRnumero = 0
print("point")
print(points)
Do you have any idea ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why it does not print(file.read()) Rejaul84 1 235 Jul-01-2021, 10:37 PM
Last Post: bowlofred
  Read and write active Excel file euras 4 359 Jun-29-2021, 11:16 PM
Last Post: Pedroski55
  [Solved] Trying to read specific lines from a file Laplace12 7 507 Jun-21-2021, 11:15 AM
Last Post: Laplace12
  [Solved] Using readlines to read data file and sum columns Laplace12 4 303 Jun-16-2021, 12:46 PM
Last Post: Laplace12
  Read file, reformat and write new file bryanmartin113 1 337 Jun-08-2021, 09:27 PM
Last Post: Larz60+
  Read/Write binary file deanhystad 3 726 Feb-01-2021, 10:29 AM
Last Post: Larz60+
  how to change the range of read CSV file every time python file runs greenpine 6 750 Dec-08-2020, 10:11 PM
Last Post: greenpine
  How to read CSV file one row at the time in a range and some delay in between greenpine 2 1,037 Nov-20-2020, 02:26 PM
Last Post: greenpine
  qrcode detector not in cv2 Pedroski55 2 997 Sep-16-2020, 03:22 AM
Last Post: Pedroski55
  Binary File Read Aussie 6 1,922 Sep-03-2020, 03:57 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020