Merge pull request #120 from ortho/platemask-err

Fix: Variable PlateMask::hasPlateMask always false
This commit is contained in:
Matthew Hill
2015-05-19 08:14:36 -04:00

View File

@@ -176,13 +176,12 @@ namespace alpr
hasPlateMask = true;
this->plateMask = mask;
}
hasPlateMask = false;
Mat fullMask = Mat::zeros(pipeline_data->thresholds[0].size(), CV_8U);
bitwise_not(fullMask, fullMask);
this->plateMask = fullMask;
} else {
hasPlateMask = false;
Mat fullMask = Mat::zeros(pipeline_data->thresholds[0].size(), CV_8U);
bitwise_not(fullMask, fullMask);
this->plateMask = fullMask;
}
}
}
}