Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The WeChat_QRCode module fails to decode the QR code image when the number of rows in the Mat does not equal the step size #3816

Open
xfc1939 opened this issue Oct 24, 2024 · 1 comment

Comments

@xfc1939
Copy link

xfc1939 commented Oct 24, 2024

I copied the raw image data from QImage (Qt Framework) to Mat with the code below:
Mat img(qimage.height(), qimage.width(), CV_8UC1, reinterpret_cast<void*>(qimage.bits()), qimage.bytesPerLine())

Due to byte alignment, qimage.width() may not be equal to qimage.bytesPerLine(). If they are equal, the wechat_qrcode works correctly; otherwise, it fails.

@asmorkalov
Copy link
Contributor

Looks like wechat pipeline expect continuous matrix as input somewhere. Please provide complete reproducer to highlight it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants