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.
61 lines
1.4 KiB
61 lines
1.4 KiB
10 years ago
|
//////////////////////////////////////////////////////////////////////////
|
||
|
// Name: plate Header
|
||
|
// Version: 1.0
|
||
|
// Date: 2015-03-12
|
||
|
// Author: liuruoze
|
||
|
// Copyright: liuruoze
|
||
10 years ago
|
// Desciption:
|
||
|
// An abstract class for car plate.
|
||
10 years ago
|
//////////////////////////////////////////////////////////////////////////
|
||
9 years ago
|
#ifndef EASYPR_CORE_PLATE_H_
|
||
|
#define EASYPR_CORE_PLATE_H_
|
||
10 years ago
|
#include "core_func.h"
|
||
10 years ago
|
|
||
10 years ago
|
/*! \namespace easypr
|
||
|
Namespace where all the C++ EasyPR functionality resides
|
||
|
*/
|
||
10 years ago
|
namespace easypr {
|
||
|
|
||
10 years ago
|
class CPlate {
|
||
|
public:
|
||
|
bool bColored;
|
||
10 years ago
|
|
||
9 years ago
|
//! 构造函数
|
||
|
|
||
10 years ago
|
CPlate();
|
||
10 years ago
|
|
||
9 years ago
|
//! 设置与读取变量
|
||
|
|
||
10 years ago
|
inline void setPlateMat(Mat param) { m_plateMat = param; }
|
||
|
inline Mat getPlateMat() const { return m_plateMat; }
|
||
10 years ago
|
|
||
10 years ago
|
inline void setPlatePos(RotatedRect param) { m_platePos = param; }
|
||
|
inline RotatedRect getPlatePos() const { return m_platePos; }
|
||
10 years ago
|
|
||
10 years ago
|
inline void setPlateStr(String param) { m_plateStr = param; }
|
||
|
inline String getPlateStr() const { return m_plateStr; }
|
||
10 years ago
|
|
||
10 years ago
|
inline void setPlateLocateType(LocateType param) { m_locateType = param; }
|
||
|
inline LocateType getPlateLocateType() const { return m_locateType; }
|
||
10 years ago
|
|
||
|
private:
|
||
9 years ago
|
//! 车牌的图块
|
||
|
|
||
10 years ago
|
Mat m_plateMat;
|
||
10 years ago
|
|
||
9 years ago
|
//! 车牌在原图的位置
|
||
|
|
||
10 years ago
|
RotatedRect m_platePos;
|
||
10 years ago
|
|
||
9 years ago
|
//! 车牌字符串
|
||
|
|
||
10 years ago
|
String m_plateStr;
|
||
|
|
||
9 years ago
|
//! 车牌定位的方法
|
||
|
|
||
10 years ago
|
LocateType m_locateType;
|
||
10 years ago
|
};
|
||
|
|
||
10 years ago
|
} /*! \namespace easypr*/
|
||
10 years ago
|
|
||
9 years ago
|
#endif // EASYPR_CORE_PLATE_H_
|