vendor: OpenCV 5.0.0 snapshot at 40738fb16ceddb5fb3fea747585f7ce6abb0605b
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// This file is part of OpenCV project.
|
||||
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
||||
// of this distribution and at http://opencv.org/license.html.
|
||||
|
||||
#include "perf_precomp.hpp"
|
||||
|
||||
namespace opencv_test
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
||||
using namespace std;
|
||||
using namespace cv::mcc;
|
||||
|
||||
PERF_TEST(CV_mcc_perf, detect) {
|
||||
string path = cvtest::findDataFile("cv/mcc/mcc_ccm_test.jpg");
|
||||
Mat img = imread(path, IMREAD_COLOR);
|
||||
Ptr<CCheckerDetector> detector = CCheckerDetector::create();
|
||||
detector->setColorChartType(MCC24);
|
||||
|
||||
// detect MCC24 board
|
||||
TEST_CYCLE() {
|
||||
ASSERT_TRUE(detector->process(img, 1));
|
||||
}
|
||||
SANITY_CHECK_NOTHING();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace opencv_test
|
||||
Reference in New Issue
Block a user