Masking characters from canny filter before doing the hough transform to detect plate edges.

This should reduce the noise a bit and get rid of spurious edges detected in the middle of the plate
This commit is contained in:
Matt Hill
2014-03-25 21:48:17 -05:00
parent 1a0b51d72f
commit 0a41923da7
3 changed files with 15 additions and 9 deletions

View File

@@ -57,8 +57,8 @@ void LicensePlateCandidate::recognize()
PlateLines plateLines(config);
//Mat boogedy = charRegion.getPlateMask();
plateLines.processImage(charRegion.getPlateMask(), 1.15);
plateLines.processImage(plate_bgr_cleaned, 0.9);
plateLines.processImage(charRegion.getPlateMask(), &charRegion, 1.10);
plateLines.processImage(plate_bgr_cleaned, &charRegion, 0.9);
PlateCorners cornerFinder(plate_bgr, &plateLines, &charRegion, config);
vector<Point> smallPlateCorners = cornerFinder.findPlateCorners();