Eliminate false positives

The routine was incorrectly returning too many garbage rects.
This commit is contained in:
Frederico Lopes
2015-03-25 13:07:36 -03:00
parent 8941ff8da5
commit 69a8282580

View File

@@ -137,6 +137,7 @@ const int num_thresholds = 7;
int numValidChars = 0; int numValidChars = 0;
Mat rotated; Mat rotated;
for (int i = 0; i < rects.size(); i++) { for (int i = 0; i < rects.size(); i++) {
numValidChars = 0;
RotatedRect PlateRect = rects[i]; RotatedRect PlateRect = rects[i];
Size rect_size = PlateRect.size; Size rect_size = PlateRect.size;