You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
590 B
34 lines
590 B
#ifndef __PLATE_JUDGE_H__
|
|
#define __PLATE_JUDGE_H__
|
|
|
|
#include "easypr/core/plate.h"
|
|
#include "easypr/core/feature.h"
|
|
#include "easypr/core/core_func.h"
|
|
|
|
namespace easypr {
|
|
|
|
class PlateJudge {
|
|
public:
|
|
static PlateJudge* instance();
|
|
|
|
//! 对多幅车牌进行SVM判断
|
|
int plateJudge(const std::vector<CPlate>&, std::vector<CPlate>&);
|
|
|
|
//! 车牌判断
|
|
int plateJudge(const std::vector<Mat>&, std::vector<Mat>&);
|
|
|
|
//! 车牌判断(一副图像)
|
|
int plateJudge(const Mat& inMat, int& result);
|
|
|
|
private:
|
|
PlateJudge();
|
|
|
|
static PlateJudge* instance_;
|
|
|
|
cv::Ptr<ml::SVM> svm_;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif |