From ba8915c88c13cb8b910d765b7153397e5e8d5d91 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Tue, 30 Jan 2024 18:18:52 +0300 Subject: [PATCH] Build warning fix for Charuco tests. --- modules/objdetect/test/test_charucodetection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/objdetect/test/test_charucodetection.cpp b/modules/objdetect/test/test_charucodetection.cpp index 20a7036b40..47166fa78e 100644 --- a/modules/objdetect/test/test_charucodetection.cpp +++ b/modules/objdetect/test/test_charucodetection.cpp @@ -814,7 +814,7 @@ TEST(CharucoBoardGenerate, issue_24806) Point2f chessCorner(pixInSquare*(p.x/squareLength), pixInSquare*(p.y/squareLength)); Mat winCorner = chessboardZoneImg(Rect(Point(cvRound(chessCorner.x) - 1, cvRound(chessCorner.y) - 1), Size(2, 2))); - bool eq = (cv::countNonZero(goldCorner1 != winCorner) == 0) | (cv::countNonZero(goldCorner2 != winCorner) == 0); + bool eq = (cv::countNonZero(goldCorner1 != winCorner) == 0) || (cv::countNonZero(goldCorner2 != winCorner) == 0); ASSERT_TRUE(eq); } // TODO: fix aruco generateImage and add test aruco corners for generated image