mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 12:56:49 +08:00
Fix weird boolean conditions
This commit is contained in:
@@ -651,7 +651,7 @@ vector< bool > CharacterAnalysis::filterContourHoles(vector< vector< Point > > c
|
||||
|
||||
int parentIndex = hierarchy[i][3];
|
||||
|
||||
if (parentIndex >= 0 && goodIndices[parentIndex] == true)
|
||||
if (parentIndex >= 0 && goodIndices[parentIndex])
|
||||
{
|
||||
// this contour is a child of an already identified contour. REMOVE it
|
||||
if (this->config->debugCharAnalysis)
|
||||
|
Reference in New Issue
Block a user