mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 15:26:53 +08:00
Fix: Variable hasPlateMask always false
It seems like error. Are you forget 'else' statement?
This commit is contained in:
@@ -176,13 +176,12 @@ namespace alpr
|
|||||||
|
|
||||||
hasPlateMask = true;
|
hasPlateMask = true;
|
||||||
this->plateMask = mask;
|
this->plateMask = mask;
|
||||||
}
|
} else {
|
||||||
|
|
||||||
hasPlateMask = false;
|
hasPlateMask = false;
|
||||||
Mat fullMask = Mat::zeros(pipeline_data->thresholds[0].size(), CV_8U);
|
Mat fullMask = Mat::zeros(pipeline_data->thresholds[0].size(), CV_8U);
|
||||||
bitwise_not(fullMask, fullMask);
|
bitwise_not(fullMask, fullMask);
|
||||||
|
|
||||||
this->plateMask = fullMask;
|
this->plateMask = fullMask;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user