opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

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

Open xfc1939 opened this issue 1 year ago • 1 comments

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.

xfc1939 avatar Oct 24 '24 12:10 xfc1939

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

asmorkalov avatar Nov 05 '24 08:11 asmorkalov