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;