rotatedmat morph

1.3
liuruoze 10 years ago
parent 343d559936
commit af2501d77d

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

@ -761,3 +761,15 @@
总图片数:120张, 未识出图片:7张, 定位率:94.1667%
平均字符差距:2.0177个, 完全匹配数:26张, 完全匹配率:23.0089%
总时间:85秒, 平均执行时间:0.708333秒
2015-03-27 09:55:57
总图片数:6张, 未识出图片:1张, 定位率:83.3333%
平均字符差距:2.4个, 完全匹配数:0张, 完全匹配率:0%
总时间:2秒, 平均执行时间:0.333333秒
2015-03-27 09:56:54
总图片数:6张, 未识出图片:1张, 定位率:83.3333%
平均字符差距:2.4个, 完全匹配数:0张, 完全匹配率:0%
总时间:17秒, 平均执行时间:2.83333秒
2015-03-27 09:57:26
总图片数:10张, 未识出图片:4张, 定位率:60%
平均字符差距:2.83333个, 完全匹配数:0张, 完全匹配率:0%
总时间:12秒, 平均执行时间:1.2秒

@ -414,6 +414,9 @@ int CPlateLocate::deskew(const Mat& src, const Mat& src_b, vector<RotatedRect>&
Mat bound_mat = src(safeBoundRect);
Mat bound_mat_b = src_b(safeBoundRect);
/*Mat element = getStructuringElement(MORPH_ELLIPSE, Size(20, 20));
morphologyEx(bound_mat_b, bound_mat_b, MORPH_CLOSE, element);*/
Point2f roi_ref_center = roi_rect.center - safeBoundRect.tl();
Mat deskew_mat;

@ -18,7 +18,7 @@ int acurayTest(const string& test_path) {
pr.LoadANN("model/ann.xml");
pr.LoadSVM("model/svm.xml");
pr.setLifemode(true);
pr.setDebug(false);
pr.setDebug(true);
// 设置要处理的一张图片中最多有多少车牌
pr.setMaxPlates(4);

Loading…
Cancel
Save