diff --git a/src/openalpr/CMakeLists.txt b/src/openalpr/CMakeLists.txt index 4415789..e22a016 100644 --- a/src/openalpr/CMakeLists.txt +++ b/src/openalpr/CMakeLists.txt @@ -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 diff --git a/src/openalpr/detection/detectorfactory.cpp b/src/openalpr/detection/detectorfactory.cpp new file mode 100644 index 0000000..f52aa89 --- /dev/null +++ b/src/openalpr/detection/detectorfactory.cpp @@ -0,0 +1,7 @@ +#include "detectorfactory.h" + +Detector* createDetector(Config* config) +{ + return new DetectorCPU(config); +} + diff --git a/src/openalpr/detection/detectorfactory.h b/src/openalpr/detection/detectorfactory.h index a5ce4a6..eb63ff8 100644 --- a/src/openalpr/detection/detectorfactory.h +++ b/src/openalpr/detection/detectorfactory.h @@ -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 */