You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 toqimage.bytesPerLine()
. If they are equal, the wechat_qrcode works correctly; otherwise, it fails.The text was updated successfully, but these errors were encountered: