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.
EasyPR/include/easypr/plate_recognize.h

45 lines
1.2 KiB

//////////////////////////////////////////////////////////////////////////
// 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 "plate_detect.h"
#include "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);
//! <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(int param) {
CPlateDetect::setPDDebug(param);
CCharsRecognise::setCRDebug(param);
}
};
} /* \namespace easypr */
#endif /* endif __PLATE_RECOGNITION_H__ */