Skip to content

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

Description

@xfc1939

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions