1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Added QR_Code data flip support, flip and retry after first EEC failure

Added regression test for the flipped images
This commit is contained in:
Genci Berisha
2023-02-18 23:17:47 +01:00
parent c4226f0457
commit a1b4aa5e88
4 changed files with 55 additions and 0 deletions
+6
View File
@@ -2732,6 +2732,12 @@ bool QRDecode::decodingProcess()
quirc_data qr_code_data;
quirc_decode_error_t errorCode = quirc_decode(&qr_code, &qr_code_data);
if(errorCode == QUIRC_ERROR_DATA_ECC){
quirc_flip(&qr_code);
errorCode = quirc_decode(&qr_code, &qr_code_data);
}
if (errorCode != 0) { return false; }
for (int i = 0; i < qr_code_data.payload_len; i++)