|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Name: plate_recognize Header
|
|
|
|
|
// Version: 1.0
|
|
|
|
|
// Date: 2014-09-28
|
|
|
|
|
// Author: liuruoze
|
|
|
|
|
// Copyright: liuruoze
|
|
|
|
|
// Reference: Mastering OpenCV with Practical Computer Vision Projects
|
|
|
|
|
// Reference: CSDN Bloger taotao1233
|
|
|
|
|
// Desciption:
|
|
|
|
|
// Defines CPlateRecognize
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
#ifndef __PLATE_RECOGNIZE_H__
|
|
|
|
|
#define __PLATE_RECOGNIZE_H__
|
|
|
|
|
|
|
|
|
|
#include "easypr/plate_detect.h"
|
|
|
|
|
#include "easypr/chars_recognise.h"
|
|
|
|
|
|
|
|
|
|
/*! \namespace easypr
|
|
|
|
|
Namespace where all the C++ EasyPR functionality resides
|
|
|
|
|
*/
|
|
|
|
|
namespace easypr {
|
|
|
|
|
|
|
|
|
|
class CPlateRecognize : public CPlateDetect, public CCharsRecognise {
|
|
|
|
|
public:
|
|
|
|
|
CPlateRecognize();
|
|
|
|
|
|
|
|
|
|
//! <20><><EFBFBD>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>ʶ<EFBFBD><CAB6>
|
|
|
|
|
int plateRecognize(cv::Mat src, std::vector<std::string>& licenseVec,
|
|
|
|
|
int index = 0);
|
|
|
|
|
|
|
|
|
|
//! <20><><EFBFBD><EFBFBD>ģʽ<C4A3>빤ҵģʽ<C4A3>л<EFBFBD>
|
|
|
|
|
inline void setLifemode(bool param) { CPlateDetect::setPDLifemode(param); }
|
|
|
|
|
|
|
|
|
|
//! <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ
|
|
|
|
|
inline void setDebug(bool param) {
|
|
|
|
|
CPlateDetect::setPDDebug(param);
|
|
|
|
|
CCharsRecognise::setCRDebug(param);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} /* \namespace easypr */
|
|
|
|
|
|
|
|
|
|
#endif /* endif __PLATE_RECOGNITION_H__ */
|