mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 18:22:48 +08:00
Tweaked the line height to be slightly smaller
This commit is contained in:
@@ -73,6 +73,9 @@ void TextLine::initialize(std::vector<cv::Point> textArea, std::vector<cv::Point
|
|||||||
Point acrossFromMidpoint = topLine.closestPointOnSegmentTo(midpoint);
|
Point acrossFromMidpoint = topLine.closestPointOnSegmentTo(midpoint);
|
||||||
this->lineHeight = distanceBetweenPoints(midpoint, acrossFromMidpoint);
|
this->lineHeight = distanceBetweenPoints(midpoint, acrossFromMidpoint);
|
||||||
|
|
||||||
|
// Subtract a pixel since the height is a little overestimated by the bounding box
|
||||||
|
this->lineHeight = this->lineHeight - 1;
|
||||||
|
|
||||||
this->angle = (topLine.angle + bottomLine.angle) / 2;
|
this->angle = (topLine.angle + bottomLine.angle) / 2;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user