mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 12:46:55 +08:00
Added CUDA GPU support to detector
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user