718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
90 lines
2.5 KiB
C++
90 lines
2.5 KiB
C++
// 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 "test_precomp.hpp"
|
|
|
|
namespace opencv_test { namespace {
|
|
const string FEATURES2D_DIR = "features2d";
|
|
const string IMAGE_FILENAME = "tsukuba.png";
|
|
const string DETECTOR_DIR = FEATURES2D_DIR + "/feature_detectors";
|
|
}} // namespace
|
|
|
|
#include "test_detectors_regression.impl.hpp"
|
|
|
|
namespace opencv_test { namespace {
|
|
|
|
/****************************************************************************************\
|
|
* Tests registrations *
|
|
\****************************************************************************************/
|
|
|
|
TEST( Features2d_Detector_SIFT, regression )
|
|
{
|
|
CV_FeatureDetectorTest test( "detector-sift", SIFT::create() );
|
|
test.safe_run();
|
|
}
|
|
|
|
TEST( Features2d_Detector_BRISK, regression )
|
|
{
|
|
CV_FeatureDetectorTest test( "detector-brisk", BRISK::create() );
|
|
test.safe_run();
|
|
}
|
|
|
|
TEST( Features2d_Detector_FAST, regression )
|
|
{
|
|
CV_FeatureDetectorTest test( "detector-fast", FastFeatureDetector::create() );
|
|
test.safe_run();
|
|
}
|
|
|
|
TEST( Features2d_Detector_AGAST, regression )
|
|
{
|
|
CV_FeatureDetectorTest test( "detector-agast", AgastFeatureDetector::create() );
|
|
test.safe_run();
|
|
}
|
|
|
|
TEST( Features2d_Detector_GFTT, regression )
|
|
{
|
|
CV_FeatureDetectorTest test( "detector-gftt", GFTTDetector::create() );
|
|
test.safe_run();
|
|
}
|
|
|
|
TEST( Features2d_Detector_Harris, regression )
|
|
{
|
|
Ptr<GFTTDetector> gftt = GFTTDetector::create();
|
|
gftt->setHarrisDetector(true);
|
|
CV_FeatureDetectorTest test( "detector-harris", gftt);
|
|
test.safe_run();
|
|
}
|
|
|
|
TEST( Features2d_Detector_MSER, DISABLED_regression )
|
|
{
|
|
CV_FeatureDetectorTest test( "detector-mser", MSER::create() );
|
|
test.safe_run();
|
|
}
|
|
|
|
TEST( Features2d_Detector_ORB, regression )
|
|
{
|
|
CV_FeatureDetectorTest test( "detector-orb", ORB::create() );
|
|
test.safe_run();
|
|
}
|
|
|
|
TEST( Features2d_Detector_KAZE, regression )
|
|
{
|
|
CV_FeatureDetectorTest test( "detector-kaze", KAZE::create() );
|
|
test.safe_run();
|
|
}
|
|
|
|
TEST( Features2d_Detector_AKAZE, regression )
|
|
{
|
|
CV_FeatureDetectorTest test( "detector-akaze", AKAZE::create() );
|
|
test.safe_run();
|
|
}
|
|
|
|
TEST( Features2d_Detector_AKAZE_DESCRIPTOR_KAZE, regression )
|
|
{
|
|
CV_FeatureDetectorTest test( "detector-akaze-with-kaze-desc", AKAZE::create(AKAZE::DESCRIPTOR_KAZE) );
|
|
test.safe_run();
|
|
}
|
|
|
|
}} // namespace
|