mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 14:07:39 +08:00
Fixed segfault in debug mode caused by previous commit
This commit is contained in:
@@ -49,7 +49,7 @@ CharacterSegmenter::CharacterSegmenter(Mat img, bool invertedColors, Config* con
|
|||||||
displayImage(config, "CharacterSegmenter Thresholds", drawImageDashboard(charAnalysis->thresholds, CV_8U, 3));
|
displayImage(config, "CharacterSegmenter Thresholds", drawImageDashboard(charAnalysis->thresholds, CV_8U, 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->config->debugCharSegmenter)
|
if (this->config->debugCharSegmenter && charAnalysis->linePolygon.size() > 0)
|
||||||
{
|
{
|
||||||
Mat img_contours(charAnalysis->bestThreshold.size(), CV_8U);
|
Mat img_contours(charAnalysis->bestThreshold.size(), CV_8U);
|
||||||
charAnalysis->bestThreshold.copyTo(img_contours);
|
charAnalysis->bestThreshold.copyTo(img_contours);
|
||||||
|
Reference in New Issue
Block a user