Skip to content

Commit

Permalink
add int plateLocate(Mat, std::vector<CPlate>&, int = 0);
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangXinNan committed Jul 22, 2016
1 parent 4bfa48f commit b57a269
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,5 +1,7 @@
.idea/
_build/
bin/
.vscode/
resources/image/tmp/
*.lib
*.suo
Expand Down Expand Up @@ -38,4 +40,5 @@ _ReSharper*/
*.obj
*.cache
*.log
.DS_Store
[Bb]in
Binary file removed bin/demo_darwin_amd64
Binary file not shown.
Binary file removed bin/demo_linux_amd64
Binary file not shown.
2 changes: 1 addition & 1 deletion include/easypr/core/plate_locate.h
Expand Up @@ -63,7 +63,7 @@ class CPlateLocate {
int img_index = 0, bool showDebug = false);

int plateLocate(Mat, std::vector<Mat>&, int = 0);
int plateLocate(Mat, std::vector<RotatedRect>&, int = 0);
int plateLocate(Mat, std::vector<CPlate>&, int = 0);

bool verifySizes(RotatedRect mr);

Expand Down
5 changes: 2 additions & 3 deletions src/core/plate_locate.cpp
Expand Up @@ -1048,16 +1048,15 @@ int CPlateLocate::plateLocate(Mat src, vector<Mat> &resultVec, int index) {
return 0;
}

int CPlateLocate::plateLocate(Mat src, vector<RotatedRect> &resultVec, int index) {
int CPlateLocate::plateLocate(Mat src, vector<CPlate> &resultVec, int index) {
vector<CPlate> all_result_Plates;

plateColorLocate(src, all_result_Plates, index);
plateSobelLocate(src, all_result_Plates, index);
plateMserLocate(src, all_result_Plates, index);

for (size_t i = 0; i < all_result_Plates.size(); i++) {
CPlate plate = all_result_Plates[i];
resultVec.push_back(plate.getPlatePos());
resultVec.push_back(all_result_Plates[i]);
}

return 0;
Expand Down

0 comments on commit b57a269

Please sign in to comment.