Split up the plate mask code into its own class

This commit is contained in:
Matt Hill
2014-10-09 20:46:26 -04:00
parent f190fb3984
commit add77f6b0c
8 changed files with 267 additions and 168 deletions

View File

@@ -56,7 +56,9 @@ void LicensePlateCandidate::recognize()
{
PlateLines plateLines(config);
plateLines.processImage(pipeline_data->plate_mask, &charRegion, 1.10);
if (pipeline_data->hasPlateBorder)
plateLines.processImage(pipeline_data->plateBorderMask, &charRegion, 1.10);
plateLines.processImage(pipeline_data->crop_gray, &charRegion, 0.9);
PlateCorners cornerFinder(pipeline_data->crop_gray, &plateLines, &charRegion, config);