opencv_contrib
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
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.
Looks like wechat pipeline expect continuous matrix as input somewhere. Please provide complete reproducer to highlight it.