mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 06:56:49 +08:00
Eliminate false positives
The routine was incorrectly returning too many garbage rects.
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user