learnopencv icon indicating copy to clipboard operation
learnopencv copied to clipboard

AttributeError: module 'cv2.cv2' has no attribute 'QRCodeDetector'

Open dpkrobomad opened this issue 5 years ago • 4 comments

Open CV version : 4.1.1.26

dpkrobomad avatar Aug 11 '20 17:08 dpkrobomad

Can you provide more context, please? What is your environment looking like? C++ or Python? Do you have OpenCV as well as opencv_contrib installed/built? Which file do you see the problem in?

brmarkus avatar Aug 12 '20 04:08 brmarkus

hi ,

i run that comparison of zbar and opencv in python. and there is a line creating object of QRCodeDetector . There I am getting this error . In mac os it is running fine. and when I am running it on raspberry pi , I am getting this error . Regards , Deepak Radhakrishnan IoT | Robotics | AI | Aeromodelling | Electrophysiology www.deepakradhakrishnan.in | 7012899400

On Wed, 12 Aug 2020 at 10:21, brmarkus [email protected] wrote:

Can you provide more context, please? What is your environment looking like? C++ or Python? Do you have OpenCV as well as opencv_contrib installed/built? Which file do you see the problem in?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/spmallick/learnopencv/issues/469#issuecomment-672571332, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESGEWBNQVFXT7RXS53NXFLSAINVBANCNFSM4P3JL7QA .

dpkrobomad avatar Aug 12 '20 08:08 dpkrobomad

QRCodeDetector is available in OpenCV since version 4.0 in master branch and 3.4.4 in 3.4 branch, including Python bindings. Documentation: https://docs.opencv.org/4.4.0/de/dc3/classcv_1_1QRCodeDetector.html. Please check OpenCV verison you use with cv.getBuildInformation() call.

asmorkalov avatar Aug 18 '20 07:08 asmorkalov

Thank You so much. Are there any libraries that read QR code faster than this? My application is to scan a QR code printed in a Mask. But it takes a lot of time to read that and also I have to keep it near to the camera. Regards , Deepak Radhakrishnan IoT | Robotics | AI | Aeromodelling | Electrophysiology www.deepakradhakrishnan.in | 7012899400

On Tue, 18 Aug 2020 at 13:09, Alexander Smorkalov [email protected] wrote:

QRCodeDetector is available in OpenCV since version 4.0 in master branch and 3.4.4 in 3.4 branch, including Python bindings. Documentation: https://docs.opencv.org/4.4.0/de/dc3/classcv_1_1QRCodeDetector.html. Please check OpenCV verison you use with cv.getBuildInformation() call.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/spmallick/learnopencv/issues/469#issuecomment-675313552, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESGEWDJPCEYQ6L5B2UOYBLSBIV4PANCNFSM4P3JL7QA .

dpkrobomad avatar Aug 18 '20 08:08 dpkrobomad