mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-08 17:30:58 +08:00
Added constructor argument to functions hidden by preprocessor
This commit is contained in:
@@ -14,7 +14,7 @@ namespace alpr
|
|||||||
else if (config->detector == DETECTOR_LBP_GPU)
|
else if (config->detector == DETECTOR_LBP_GPU)
|
||||||
{
|
{
|
||||||
#ifdef COMPILE_GPU
|
#ifdef COMPILE_GPU
|
||||||
return new DetectorCUDA(config);
|
return new DetectorCUDA(config, prewarp);
|
||||||
#else
|
#else
|
||||||
std::cerr << "Error: GPU detector requested, but GPU extensions are not compiled. " <<
|
std::cerr << "Error: GPU detector requested, but GPU extensions are not compiled. " <<
|
||||||
"Add COMPILE_GPU=1 to the compiler definitions to enable GPU compilation." <<
|
"Add COMPILE_GPU=1 to the compiler definitions to enable GPU compilation." <<
|
||||||
@@ -28,7 +28,7 @@ namespace alpr
|
|||||||
return new DetectorOCL(config, prewarp);
|
return new DetectorOCL(config, prewarp);
|
||||||
#else
|
#else
|
||||||
std::cerr << "Error: OpenCL acceleration requires OpenCV 3.0. " << std::endl;
|
std::cerr << "Error: OpenCL acceleration requires OpenCV 3.0. " << std::endl;
|
||||||
return new DetectorCPU(config);
|
return new DetectorCPU(config, prewarp);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else if (config->detector == DETECTOR_MORPH_CPU)
|
else if (config->detector == DETECTOR_MORPH_CPU)
|
||||||
|
Reference in New Issue
Block a user