26 lines
668 B
C++
26 lines
668 B
C++
#pragma once
|
|
|
|
#include <opencv2/core/core.hpp>
|
|
#include <opencv2/highgui/highgui.hpp>
|
|
#include <opencv2/imgproc/imgproc.hpp>
|
|
#include <iostream>
|
|
#include "GetPlateColor.h"
|
|
// #include "CropLicensePlate.h"
|
|
#include "CharacterDetection.h"
|
|
#include "CropLP.h"
|
|
|
|
class LicensePlateRecognizer {
|
|
private:
|
|
// CropPlate cropPlate;
|
|
CropLP cropLP;
|
|
CharacterDetector characterDetector;
|
|
|
|
public:
|
|
LicensePlateRecognizer();
|
|
static LicensePlateRecognizer &getInst()
|
|
{
|
|
static LicensePlateRecognizer instance;
|
|
return instance;
|
|
};
|
|
PlateDetail recognition(cv::Mat frame, std::string mode);
|
|
}; |