diff --git a/src/misc_utilities/benchmarks/benchmark.cpp b/src/misc_utilities/benchmarks/benchmark.cpp index 0130e30..04ab4a7 100644 --- a/src/misc_utilities/benchmarks/benchmark.cpp +++ b/src/misc_utilities/benchmarks/benchmark.cpp @@ -134,7 +134,8 @@ int main( int argc, const char** argv ) else if (benchmarkName.compare("detection") == 0) { Config config(country); - Detector* plateDetector = createDetector(&config); + PreWarp prewarp(&config); + Detector* plateDetector = createDetector(&config, &prewarp); for (int i = 0; i< files.size(); i++) { @@ -166,7 +167,8 @@ int main( int argc, const char** argv ) alpr.config->setDebug(false); alpr.setDetectRegion(true); - Detector* plateDetector = createDetector(&config); + PreWarp prewarp(&config); + Detector* plateDetector = createDetector(&config, &prewarp); OCR ocr(&config); vector endToEndTimes; diff --git a/src/misc_utilities/benchmarks/endtoendtest.h b/src/misc_utilities/benchmarks/endtoendtest.h index 284df20..4f7d936 100644 --- a/src/misc_utilities/benchmarks/endtoendtest.h +++ b/src/misc_utilities/benchmarks/endtoendtest.h @@ -4,6 +4,8 @@ #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" +#include "detection/detector_types.h" +#include "prewarp.h" #include "alpr_impl.h" #include "benchmark_utils.h" diff --git a/src/openalpr/detection/detector_types.h b/src/openalpr/detection/detector_types.h index a278d0a..0873959 100644 --- a/src/openalpr/detection/detector_types.h +++ b/src/openalpr/detection/detector_types.h @@ -20,12 +20,15 @@ #ifndef OPENALPR_DETECTOR_TYPES_H #define OPENALPR_DETECTOR_TYPES_H - +namespace alpr +{ + struct PlateRegion { cv::Rect rect; std::vector children; }; - + +} #endif /* OPENALPR_DETECTOR_TYPES_H */