You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
784 B
31 lines
784 B
#include "test_precomp.hpp" |
|
|
|
namespace cvtest |
|
{ |
|
|
|
using namespace std; |
|
using namespace std::tr1; |
|
using namespace testing; |
|
using namespace cv; |
|
using namespace cv::dnn; |
|
|
|
static std::string getOpenCVExtraDir() |
|
{ |
|
return cvtest::TS::ptr()->get_data_path(); |
|
} |
|
|
|
TEST(ReadCaffePrototxt_gtsrb, Accuracy) |
|
{ |
|
Ptr<Importer> importer = createCaffeImporter(getOpenCVExtraDir() + "/dnn/gtsrb.prototxt", ""); |
|
Ptr<NetConfiguration> config = NetConfiguration::create(); |
|
importer->populateNetConfiguration(config); |
|
} |
|
|
|
TEST(ReadCaffePrototxt_GoogleNet, Accuracy) |
|
{ |
|
Ptr<Importer> importer = createCaffeImporter(getOpenCVExtraDir() + "/dnn/googlenet_deploy.prototxt", ""); |
|
Ptr<NetConfiguration> config = NetConfiguration::create(); |
|
importer->populateNetConfiguration(config); |
|
} |
|
|
|
} |