mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 01:36:51 +08:00
Merge pull request #106 from Kees-V/master
filterByOuterMask: Re-initialize mask for every contour to get a correct...
This commit is contained in:
@@ -549,7 +549,8 @@ namespace alpr
|
||||
|
||||
totalChars++;
|
||||
|
||||
drawContours(tempFullContour, textContours.contours, i, Scalar(255,255,255), CV_FILLED, 8, textContours.hierarchy);
|
||||
tempFullContour = Mat::zeros(plateMask.size(), CV_8U);
|
||||
drawContours(tempFullContour, textContours.contours, i, Scalar(255,255,255), CV_FILLED, 8, textContours.hierarchy);
|
||||
bitwise_and(tempFullContour, plateMask, tempMaskedContour);
|
||||
|
||||
float beforeMaskWhiteness = mean(tempFullContour)[0];
|
||||
|
Reference in New Issue
Block a user