Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qrcode detector not in cv2
#1
I am just following the instructions here, trying to learn how this works.

I am now trying to read a qr code I made.

this shows no errors:

Quote:# read the QRCODE image
img1 = cv2.imread("myQR_blue.png")

But this does not work:

Quote:# initialize the cv2 QRCode detector
detector = cv2.QRCodeDetector() # whoops, doesn't work!

I get this in Idle:

Quote:>>> detector = cv2.QRCodeDetector()
Traceback (most recent call last):
File "<pyshell#20>", line 1, in <module>
detector = cv2.QRCodeDetector()
AttributeError: module 'cv2' has no attribute 'QRCodeDetector'

The webpage says it was updated September 2020.

I installed cv2 from Ubuntu: sudo apt-get install python3-opencv

How do I get the detector?
Reply


Messages In This Thread
qrcode detector not in cv2 - by Pedroski55 - Sep-15-2020, 10:51 PM
RE: qrcode detector not in cv2 - by bowlofred - Sep-15-2020, 11:19 PM
RE: qrcode detector not in cv2 - by Pedroski55 - Sep-16-2020, 03:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Prime number detector Mark17 5 821 Nov-27-2023, 12:53 PM
Last Post: deanhystad
  problem in using pyqrcode module to create QRcode akbarza 9 2,016 Aug-23-2023, 04:17 PM
Last Post: snippsat
  Face detector project? korenron 2 2,125 Mar-24-2021, 03:43 PM
Last Post: korenron
  can't read QRcode in large file simoneek 0 1,518 Sep-16-2020, 08:52 AM
Last Post: simoneek
  Smoke detector + send email Brandon99 4 3,981 Sep-12-2018, 11:18 PM
Last Post: Brandon99
  Vowels and Consonants detector OmarSinno 5 9,793 Sep-21-2017, 02:27 PM
Last Post: buran

Forum Jump:

User Panel Messages

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