mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 22:22:50 +08:00
Merge pull request #120 from ortho/platemask-err
Fix: Variable PlateMask::hasPlateMask always false
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