Fix basic_label offset

This commit is contained in:
LinasKo 2024-09-26 12:27:07 +03:00
parent db0d965e8d
commit 4a95aaa2c4
1 changed files with 1 additions and 2 deletions

View File

@ -270,7 +270,6 @@ class LineZoneAnnotator:
"""
line_start = line_counter.vector.start.as_xy_int_tuple()
line_end = line_counter.vector.end.as_xy_int_tuple()
line_center_point = line_counter.vector.center
cv2.line(
frame,
line_start,
@ -311,7 +310,7 @@ class LineZoneAnnotator:
if line_angle_degrees == 0 or not self.text_orient_to_line:
self._draw_basic_label(
frame=frame,
line_center=line_center_point,
line_center=line_counter.vector.center,
text=text,
is_in_count=is_in_count,
)