Fixed: debug status should be bool type, for performance.

1.3
Micooz 10 years ago
parent cac83f0986
commit 09f51c5f7c

@ -42,10 +42,10 @@ class CPlateDetect {
inline void setPDLifemode(bool param) { m_plateLocate->setLifemode(param); }
//! 是否开启调试模式
inline void setPDDebug(int param) { m_plateLocate->setDebug(param); }
inline void setPDDebug(bool param) { m_plateLocate->setDebug(param); }
//! 获取调试模式状态
inline int getPDDebug() { return m_plateLocate->getDebug(); }
inline bool getPDDebug() { return m_plateLocate->getDebug(); }
//! 设置与读取变量
inline void setGaussianBlurSize(int param) {

@ -114,10 +114,10 @@ class CPlateLocate {
inline void setJudgeAngle(int param) { m_angle = param; }
//! 是否开启调试模式
inline void setDebug(int param) { m_debug = param; }
inline void setDebug(bool param) { m_debug = param; }
//! 获取调试模式状态
inline int getDebug() { return m_debug; }
inline bool getDebug() { return m_debug; }
//! PlateLocate所用常量
static const int DEFAULT_GAUSSIANBLUR_SIZE = 5;
@ -162,7 +162,7 @@ class CPlateLocate {
int m_angle;
//! 是否开启调试模式0关闭非0开启
int m_debug;
bool m_debug;
};
} /*! \namespace easypr*/

@ -32,7 +32,7 @@ class CPlateRecognize : public CPlateDetect, public CCharsRecognise {
inline void setLifemode(bool param) { CPlateDetect::setPDLifemode(param); }
//! 是否开启调试模式
inline void setDebug(int param) {
inline void setDebug(bool param) {
CPlateDetect::setPDDebug(param);
CCharsRecognise::setCRDebug(param);
}

@ -52,7 +52,7 @@ int CPlateJudge::plateJudge(const Mat& inMat, int& result) {
p.convertTo(p, CV_32FC1);
float response = svm.predict(p);
result = response;
result = (int)response;
return 0;
}

Loading…
Cancel
Save