mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 21:26:49 +08:00
Merge pull request #282 from SunAriesCN/patch-2
Update Characteranalysis::filterByOuterMask( )
This commit is contained in:
@@ -591,10 +591,11 @@ namespace alpr
|
||||
continue;
|
||||
|
||||
totalChars++;
|
||||
|
||||
tempFullContour = Mat::zeros(plateMask.size(), CV_8U);
|
||||
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);
|
||||
|
||||
textContours.goodIndices[i] = false;
|
||||
|
||||
float beforeMaskWhiteness = mean(tempFullContour)[0];
|
||||
float afterMaskWhiteness = mean(tempMaskedContour)[0];
|
||||
|
Reference in New Issue
Block a user