Added CUDA GPU support to detector

This commit is contained in:
Matt Hill
2015-03-08 10:25:30 -04:00
parent e4880f57f1
commit 6033e35775
7 changed files with 218 additions and 2 deletions

View File

@@ -2,10 +2,18 @@
namespace alpr
{
Detector* createDetector(Config* config)
{
if (config->gpu_mode == 0)
{
// CPU mode
return new DetectorCPU(config);
}
else if (config->gpu_mode == 1)
{
return new DetectorCUDA(config);
}
}
}
}