Fix: Variable hasPlateMask always false

It seems like error. Are you forget 'else' statement?
This commit is contained in:
Anatoliy Bulukin
2015-05-19 13:36:37 +03:00
parent 2c742b0335
commit 4320e32469

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;
}
}
}
}