opencv-4.8.1-opencv_test.patch 724 B

12345678910111213141516171819
  1. From: Paul Zander <negril.nx+gentoo@gmail.com>
  2. We don't package quirc, so the misplaced #ifdef breaks compilation.
  3. diff --git a/modules/objdetect/test/test_qrcode.cpp b/modules/objdetect/test/test_qrcode.cpp
  4. index 5e6ec6f..6dc14cc 100644
  5. --- a/modules/objdetect/test/test_qrcode.cpp
  6. +++ b/modules/objdetect/test/test_qrcode.cpp
  7. @@ -374,8 +374,8 @@ TEST_P(Objdetect_QRCode_Multi, regression)
  8. qrcode = QRCodeDetectorAruco();
  9. }
  10. std::vector<Point> corners;
  11. -#ifdef HAVE_QUIRC
  12. std::vector<cv::String> decoded_info;
  13. +#ifdef HAVE_QUIRC
  14. std::vector<Mat> straight_barcode;
  15. EXPECT_TRUE(qrcode.detectAndDecodeMulti(src, decoded_info, corners, straight_barcode));
  16. ASSERT_FALSE(corners.empty());