|
|
@ -1583,8 +1583,9 @@ int CPlateLocate::plateLocate(Mat src, vector<Mat>& resultVec, int index)
|
|
|
|
//large the rect for more
|
|
|
|
//large the rect for more
|
|
|
|
if (!verifySizes(mr))
|
|
|
|
if (!verifySizes(mr))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cv::Mat& roi = dst_blue(safeBoundRect);
|
|
|
|
cv::Mat roi = dst_blue(safeBoundRect);
|
|
|
|
roi.setTo(0);
|
|
|
|
roi.setTo(0);
|
|
|
|
|
|
|
|
cv::swap(roi, dst_blue);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1637,8 +1638,9 @@ int CPlateLocate::plateLocate(Mat src, vector<Mat>& resultVec, int index)
|
|
|
|
//large the rect for more
|
|
|
|
//large the rect for more
|
|
|
|
if (!verifySizes(mr))
|
|
|
|
if (!verifySizes(mr))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cv::Mat& roi = dst_yellow(safeBoundRect);
|
|
|
|
cv::Mat roi = dst_yellow(safeBoundRect);
|
|
|
|
roi.setTo(0);
|
|
|
|
roi.setTo(0);
|
|
|
|
|
|
|
|
cv::swap(roi, dst_yellow);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|