1.3
liuruoze 10 years ago
parent 442cc12b31
commit a9dd05b2b9

@ -929,3 +929,31 @@
总图片数:120张, 未识出图片:1张, 定位率:99.1667%
平均字符差距:0.714286个, 完全匹配数:81张, 完全匹配率:68.0672%
总时间:251秒, 平均执行时间:2.09167秒
2015-04-22 19:31:45
总图片数:120张, 未识出图片:1张, 定位率:99.1667%
平均字符差距:0.714286个, 完全匹配数:81张, 完全匹配率:68.0672%
总时间:297秒, 平均执行时间:2.475秒
2015-04-22 19:39:03
总图片数:120张, 未识出图片:1张, 定位率:99.1667%
平均字符差距:0.714286个, 完全匹配数:81张, 完全匹配率:68.0672%
总时间:278秒, 平均执行时间:2.31667秒
2015-04-22 19:44:42
总图片数:120张, 未识出图片:2张, 定位率:98.3333%
平均字符差距:0.652542个, 完全匹配数:81张, 完全匹配率:68.6441%
总时间:235秒, 平均执行时间:1.95833秒
2015-04-22 19:52:15
总图片数:120张, 未识出图片:3张, 定位率:97.5%
平均字符差距:0.675214个, 完全匹配数:78张, 完全匹配率:66.6667%
总时间:249秒, 平均执行时间:2.075秒
2015-04-22 19:58:39
总图片数:120张, 未识出图片:2张, 定位率:98.3333%
平均字符差距:0.652542个, 完全匹配数:81张, 完全匹配率:68.6441%
总时间:256秒, 平均执行时间:2.13333秒
2015-04-22 20:04:26
总图片数:120张, 未识出图片:1张, 定位率:99.1667%
平均字符差距:0.714286个, 完全匹配数:81张, 完全匹配率:68.0672%
总时间:287秒, 平均执行时间:2.39167秒
2015-04-22 20:16:34
总图片数:120张, 未识出图片:2张, 定位率:98.3333%
平均字符差距:0.652542个, 完全匹配数:81张, 完全匹配率:68.6441%
总时间:259秒, 平均执行时间:2.15833秒

@ -95,33 +95,29 @@ int CPlateJudge::plateJudge(const vector<CPlate>& inVec,
for (int j = 0; j < num; j++)
{
CPlate inPlate = inVec[j];
//Mat inMat = inPlate.getPlateMat();
Mat inMat = inPlate.getPlateMat();
//int response = -1;
//plateJudge(inMat, response);
//if (response == 1)
// resultVec.push_back(inPlate);
//else
//{
// int w = inMat.cols;
// int h = inMat.rows;
// //ÔÙÈ¡Öм䲿·ÖÅжÏÒ»´Î
// Mat tmpmat = inMat(Rect(w*0.05,h*0.1,w*0.9,h*0.8));
// Mat tmpDes = inMat.clone();
// resize(tmpmat,tmpDes,Size(inMat.size()));
//
// plateJudge(tmpDes, response);
// if (response == 1)
// resultVec.push_back(inPlate);
//}
int response = -1;
plateJudge(inMat, response);
resultVec.push_back(inPlate);
if (response == 1)
resultVec.push_back(inPlate);
else
{
int w = inMat.cols;
int h = inMat.rows;
//再取中间部分判断一次
Mat tmpmat = inMat(Rect(w*0.05,h*0.1,w*0.9,h*0.8));
Mat tmpDes = inMat.clone();
resize(tmpmat,tmpDes,Size(inMat.size()));
plateJudge(tmpDes, response);
if (response == 1)
resultVec.push_back(inPlate);
}
//resultVec.push_back(inPlate);
}
return 0;
}

Loading…
Cancel
Save