From 69a8282580984f6714eec09af0c6c4108dbf16ab Mon Sep 17 00:00:00 2001 From: Frederico Lopes Date: Wed, 25 Mar 2015 13:07:36 -0300 Subject: [PATCH] Eliminate false positives The routine was incorrectly returning too many garbage rects. --- src/openalpr/detection/detectormorph.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openalpr/detection/detectormorph.cpp b/src/openalpr/detection/detectormorph.cpp index 0d6e81e..cf6a2dc 100644 --- a/src/openalpr/detection/detectormorph.cpp +++ b/src/openalpr/detection/detectormorph.cpp @@ -137,6 +137,7 @@ const int num_thresholds = 7; int numValidChars = 0; Mat rotated; for (int i = 0; i < rects.size(); i++) { + numValidChars = 0; RotatedRect PlateRect = rects[i]; Size rect_size = PlateRect.size;