Perf tests: method ::perf::TestBase::getDataPath made public static; added base CUDA detection into run.py script
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
cvtest::TS::ptr()->init("gpu");
|
||||
//cvtest::TS::ptr()->init("gpu");
|
||||
Regression::Init("gpu");
|
||||
TestBase::Init(argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
|
@@ -5,7 +5,7 @@ using namespace cv::gpu;
|
||||
|
||||
Mat readImage(const string& fileName, int flags)
|
||||
{
|
||||
return imread(string(cvtest::TS::ptr()->get_data_path()) + fileName, flags);
|
||||
return imread(::perf::TestBase::getDataPath(fileName), flags);
|
||||
}
|
||||
|
||||
bool supportFeature(const DeviceInfo& info, FeatureSet feature)
|
||||
|
Reference in New Issue
Block a user