mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 01:52:45 +08:00
Fixed benchmark utilities to operate with updated detection interface
This commit is contained in:
@@ -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<double> endToEndTimes;
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -20,6 +20,8 @@
|
||||
#ifndef OPENALPR_DETECTOR_TYPES_H
|
||||
#define OPENALPR_DETECTOR_TYPES_H
|
||||
|
||||
namespace alpr
|
||||
{
|
||||
|
||||
struct PlateRegion
|
||||
{
|
||||
@@ -27,5 +29,6 @@
|
||||
std::vector<PlateRegion> children;
|
||||
};
|
||||
|
||||
}
|
||||
#endif /* OPENALPR_DETECTOR_TYPES_H */
|
||||
|
||||
|
Reference in New Issue
Block a user