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