Added option to reuse detectors across configs

This commit is contained in:
Matt Hill
2015-10-09 17:46:48 -04:00
parent 6362c66920
commit d4a625b635
11 changed files with 24 additions and 1644 deletions

View File

@@ -33,7 +33,7 @@ namespace alpr
if( this->cuda_cascade.load( config->getCascadeRuntimeDir() + config->country + ".xml" ) )
if( this->cuda_cascade.load( get_detector_file() ) )
{
this->loaded = true;
printf("--(!)Loaded CUDA classifier\n");
@@ -41,7 +41,7 @@ namespace alpr
else
{
this->loaded = false;
printf("--(!)Error loading CUDA classifier\n");
printf("--(!)Error loading CPU classifier %s\n", get_detector_file().c_str());
}
}