Update detectormorph.cpp

cosmetic fixes
This commit is contained in:
Frederico Lopes
2015-03-18 22:14:16 -03:00
parent 64b6642b3a
commit 473c4a5879

View File

@@ -152,8 +152,7 @@ namespace alpr {
waitKey(0); waitKey(0);
} }
for (int z = 0; z < num_thresholds; z++) for (int z = 0; z < num_thresholds; z++) {
{
cv::threshold(img_crop, img_crop_th, thresholds[z], 255, cv::THRESH_BINARY); cv::threshold(img_crop, img_crop_th, thresholds[z], 255, cv::THRESH_BINARY);
cv::threshold(img_crop, img_crop_th_inv, thresholds[z], 255, cv::THRESH_BINARY_INV); cv::threshold(img_crop, img_crop_th_inv, thresholds[z], 255, cv::THRESH_BINARY_INV);
@@ -179,8 +178,7 @@ namespace alpr {
numValidChars++; numValidChars++;
} }
for (int j = 0; j < numBlobsInv; j++) for (int j = 0; j < numBlobsInv; j++) {
{
cv::Rect r0 = cv::boundingRect(cv::Mat(plateBlobsInv[j])); cv::Rect r0 = cv::boundingRect(cv::Mat(plateBlobsInv[j]));
if (ValidateCharAspect(r0, idealAspect)) if (ValidateCharAspect(r0, idealAspect))
numValidChars++; numValidChars++;