Skip to content

QR code image recognition error exception: "Error locator degree does not match number of roots" #253

@xiadehong

Description

@xiadehong

I have an image here that has been failing to decode and improve decoding error correction. You can try it now. What's the problem? Scanning the code on your phone works, but decoding this image has failed. The code and image are as follows:
QZXing decoder;
//Can only recognize QR codes
decoder.setDecoder(QZXing::DecoderFormat_QR_CODE);
decoder.setTryHarder(true);
decoder.setSourceFilterType(QZXing::SourceFilter_ImageNormal);
decoder.setTryHarderBehaviour(QZXing::TryHarderBehaviour_ThoroughScanning | QZXing::TryHarderBehaviour_Rotate);
QString Data = decoder.decodeImage(img);
After going through several stages, the errors are as follows:
Decoding phase 1: failed
Decoding phase 2, thorought scan: failed
Decoding phase 2, rotate: failed
Decoding failed: "This luminance source does not support rotation."
Error: Could not decode QR code.
20250113093747

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions