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/core/plate_recognize.h

45 lines
1.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

//////////////////////////////////////////////////////////////////////////
// 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 EASYPR_CORE_PLATERECOGNIZE_H_
#define EASYPR_CORE_PLATERECOGNIZE_H_
#include "easypr/core/plate_detect.h"
#include "easypr/core/chars_recognise.h"
/*! \namespace easypr
Namespace where all the C++ EasyPR functionality resides
*/
namespace easypr {
class CPlateRecognize : public CPlateDetect, public CCharsRecognise {
public:
CPlateRecognize();
//! 车牌检测与字符识别
int plateRecognize(Mat src, std::vector<CPlate> &licenseVec);
int plateRecognize(Mat src, std::vector<std::string> &licenseVec);
int plateRecognizeAsText(Mat src, std::vector<CPlate> &licenseVec);
int plateRecognizeAsTextNM(Mat src, std::vector<CPlate> &licenseVec);
//! 生活模å¼<C3A5>与工业模å¼<C3A5>切æ<E280A1>
inline void setLifemode(bool param) { CPlateDetect::setPDLifemode(param); }
//! 是å<C2AF>¦å¼€å<E282AC>¯è°ƒè¯•æ¨¡å¼
inline void setDebug(bool param) { CPlateDetect::setPDDebug(param); }
};
} /* \namespace easypr */
#endif // EASYPR_CORE_PLATERECOGNIZE_H_