mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 18:42:48 +08:00
filterByOuterMask: Re-initialize mask for every contour to get a correct calculation
This commit is contained in:
@@ -549,6 +549,7 @@ namespace alpr
|
|||||||
|
|
||||||
totalChars++;
|
totalChars++;
|
||||||
|
|
||||||
|
tempFullContour = Mat::zeros(plateMask.size(), CV_8U);
|
||||||
drawContours(tempFullContour, textContours.contours, i, Scalar(255,255,255), CV_FILLED, 8, textContours.hierarchy);
|
drawContours(tempFullContour, textContours.contours, i, Scalar(255,255,255), CV_FILLED, 8, textContours.hierarchy);
|
||||||
bitwise_and(tempFullContour, plateMask, tempMaskedContour);
|
bitwise_and(tempFullContour, plateMask, tempMaskedContour);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user