Fixed benchmark program to use setDebug rather than debugOff

This commit is contained in:
Matt Hill
2015-07-08 08:16:08 -04:00
parent d78006d403
commit 5b5fc12cb9
2 changed files with 4 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ int main( int argc, const char** argv )
if (benchmarkName.compare("segocr") == 0)
{
Config* config = new Config(country);
config->debugOff();
config->setDebug(false);
config->skipDetection = true;
AlprImpl alpr(country);
@@ -160,10 +160,10 @@ int main( int argc, const char** argv )
timespec endTime;
Config config(country);
config.debugOff();
config.setDebug(false);
AlprImpl alpr(country);
alpr.config->debugOff();
alpr.config->setDebug(false);
alpr.setDetectRegion(true);
Detector* plateDetector = createDetector(&config);

View File

@@ -18,7 +18,7 @@ void EndToEndTest::runTest(string country, vector<std::string> files)
AlprImpl alpr(country);
alpr.config->debugOff();
alpr.config->setDebug(false);
alpr.setDetectRegion(false);
vector<EndToEndBenchmarkResult> benchmarkResults;