mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 06:46:53 +08:00
Update detectormorph.cpp
cosmetic fixes
This commit is contained in:
@@ -152,8 +152,7 @@ namespace alpr {
|
||||
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_inv, thresholds[z], 255, cv::THRESH_BINARY_INV);
|
||||
@@ -179,8 +178,7 @@ namespace alpr {
|
||||
numValidChars++;
|
||||
}
|
||||
|
||||
for (int j = 0; j < numBlobsInv; j++)
|
||||
{
|
||||
for (int j = 0; j < numBlobsInv; j++) {
|
||||
cv::Rect r0 = cv::boundingRect(cv::Mat(plateBlobsInv[j]));
|
||||
if (ValidateCharAspect(r0, idealAspect))
|
||||
numValidChars++;
|
||||
|
Reference in New Issue
Block a user