Skip to content

Commit

Permalink
rotatedmat morph
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruoze committed Mar 27, 2015
1 parent 343d559 commit af2501d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
Binary file removed image/native_test/京P8BK60.jpg
Binary file not shown.
Binary file added image/native_test/川A019W2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions run_accuracy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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��
3 changes: 3 additions & 0 deletions src/core/plate_locate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/test/accuracy_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit af2501d

Please sign in to comment.