mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 18:42:48 +08:00
Moved detectorfactory implementation to its own source
This commit is contained in:
@@ -8,6 +8,7 @@ set(lpr_source_files
|
||||
config.cpp
|
||||
detection/detector.cpp
|
||||
detection/detectorcpu.cpp
|
||||
detection/detectorfactory.cpp
|
||||
licenseplatecandidate.cpp
|
||||
utility.cpp
|
||||
stateidentifier.cpp
|
||||
|
7
src/openalpr/detection/detectorfactory.cpp
Normal file
7
src/openalpr/detection/detectorfactory.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include "detectorfactory.h"
|
||||
|
||||
Detector* createDetector(Config* config)
|
||||
{
|
||||
return new DetectorCPU(config);
|
||||
}
|
||||
|
@@ -21,11 +21,9 @@
|
||||
#define OPENALPR_DETECTORFACTORY_H
|
||||
|
||||
#include "detectorcpu.h"
|
||||
#include "config.h"
|
||||
|
||||
Detector* createDetector(Config* config)
|
||||
{
|
||||
return new DetectorCPU(config);
|
||||
}
|
||||
Detector* createDetector(Config* config);
|
||||
|
||||
#endif /* DETECTORFACTORY_H */
|
||||
#endif /* OPENALPR_DETECTORFACTORY_H */
|
||||
|
||||
|
Reference in New Issue
Block a user