From 05d49756195680e41e3b32f80a9dc4c2f8d0dfcc Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Mon, 16 Mar 2020 18:49:16 +0300 Subject: [PATCH] objdetect: fix QRCode tests with disabled QUIRC --- modules/objdetect/test/test_qrcode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/objdetect/test/test_qrcode.cpp b/modules/objdetect/test/test_qrcode.cpp index cda5a02311..79a060db0e 100644 --- a/modules/objdetect/test/test_qrcode.cpp +++ b/modules/objdetect/test/test_qrcode.cpp @@ -284,7 +284,7 @@ TEST_P(Objdetect_QRCode_Close, regression) ASSERT_FALSE(corners.empty()); ASSERT_FALSE(decoded_info.empty()); #else - ASSERT_TRUE(qrcode.detect(src, corners)); + ASSERT_TRUE(qrcode.detect(barcode, corners)); #endif const std::string dataset_config = findDataFile(root + "dataset_config.json"); @@ -349,7 +349,7 @@ TEST_P(Objdetect_QRCode_Monitor, regression) ASSERT_FALSE(corners.empty()); ASSERT_FALSE(decoded_info.empty()); #else - ASSERT_TRUE(qrcode.detect(src, corners)); + ASSERT_TRUE(qrcode.detect(barcode, corners)); #endif const std::string dataset_config = findDataFile(root + "dataset_config.json");