opencv_contrib
opencv_contrib copied to clipboard
detectAndDecode() in WeChatQRCode not detected QR codes on large images (4032x3024)
detectAndDecode in WeChatQRCode not detected QR codes on large images (4032x3024)
- OpenCV => 4.6.0 Python
- Operating System / Platform => Win10/Ubuntu ubuntu 20.04
Detailed description
script:
import cv2 as cv
import numpy as np
print(cv.__version__)
detector = cv.wechat_qrcode_WeChatQRCode("detect.prototxt", "detect.caffemodel", "sr.prototxt", "sr.caffemodel")
image = cv.imread("image001.jpg", cv.IMREAD_IGNORE_ORIENTATION)
res1, res2 = detector.detectAndDecode(image)
print(res1, res2)
result:
4.6.0
() ()
image001.jpg:

image from https://boofcv.org/notwiki/regression/fiducial/qrcodes_v3.zip
Issue submission checklist
- [x] I report the issue, it's not a question
- [x] I checked the problem with documentation, FAQ, open issues,
- [x] I updated to the latest OpenCV version and the issue is still there
- [x] There is reproducer code and related data files: videos, images, onnx, etc