You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
851 B
C++
33 lines
851 B
C++
//
|
|
// Created by Jack Yu on 20/09/2017.
|
|
//
|
|
|
|
#ifndef HYPERPR_PLATEDETECTION_H
|
|
#define HYPERPR_PLATEDETECTION_H
|
|
|
|
#include <PlateInfo.h>
|
|
#include <opencv2/opencv.hpp>
|
|
#include <vector>
|
|
namespace pr {
|
|
class PlateDetection {
|
|
public:
|
|
PlateDetection(std::string filename_cascade);
|
|
PlateDetection();
|
|
void LoadModel(std::string filename_cascade);
|
|
void plateDetectionRough(cv::Mat InputImage,
|
|
std::vector<pr::PlateInfo> &plateInfos,
|
|
int min_w = 36, int max_w = 800);
|
|
// std::vector<pr::PlateInfo> plateDetectionRough(cv::Mat
|
|
// InputImage,int min_w= 60,int max_h = 400);
|
|
|
|
// std::vector<pr::PlateInfo>
|
|
// plateDetectionRoughByMultiScaleEdge(cv::Mat InputImage);
|
|
|
|
private:
|
|
cv::CascadeClassifier cascade;
|
|
};
|
|
|
|
} // namespace pr
|
|
|
|
#endif // HYPERPR_PLATEDETECTION_H
|