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

fix to prevent QR code decoding from throwing on degenerate source points

This commit is contained in:
Muhammed Jaseem Pallikkal
2025-09-28 01:59:20 +05:30
committed by Muhammed Pallikkal
parent edfa999b93
commit 5d54e90fa4
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -470,7 +470,7 @@ TEST(Objdetect_QRCode_basic, not_found_qrcode)
QRCodeDetector qrcode;
EXPECT_FALSE(qrcode.detect(zero_image, corners));
corners = std::vector<Point>(4);
EXPECT_ANY_THROW(qrcode.decode(zero_image, corners, straight_barcode));
EXPECT_NO_THROW(qrcode.decode(zero_image, corners, straight_barcode));
}
TEST(Objdetect_QRCode_detect, detect_regression_21287)