a little change

1.3
liuruoze 10 years ago
parent 6f9b8c2ab1
commit a66f01f788

@ -925,3 +925,7 @@
总图片数:120张, 未识出图片:1张, 定位率:99.1667%
平均字符差距:0.714286个, 完全匹配数:81张, 完全匹配率:68.0672%
总时间:243秒, 平均执行时间:2.025秒
2015-04-22 17:39:09
总图片数:120张, 未识出图片:1张, 定位率:99.1667%
平均字符差距:0.714286个, 完全匹配数:81张, 完全匹配率:68.0672%
总时间:251秒, 平均执行时间:2.09167秒

@ -108,6 +108,7 @@ int CPlateDetect::plateDetectDeep(Mat src, vector<CPlate>& resultVec, bool showD
CPlate plate = all_result_Plates[i];
resultVec.push_back(plate);
}
return 0;
}

@ -275,18 +275,19 @@ int test_plate_detect()
Mat src = imread("image/plate_detect.jpg");
vector<Mat> resultVec;
vector<CPlate> resultVec;
CPlateDetect pd;
pd.setPDLifemode(true);
int result = pd.plateDetect(src, resultVec);
int result = pd.plateDetectDeep(src, resultVec);
if (result == 0)
{
int num = resultVec.size();
for (int j = 0; j < num; j++)
{
Mat resultMat = resultVec[j];
imshow("plate_detect", resultMat);
CPlate resultMat = resultVec[j];
imshow("plate_detect", resultMat.getPlateMat());
waitKey(0);
}
destroyWindow("plate_detect");

Loading…
Cancel
Save