Center the text in the box counter

This commit is contained in:
proitlab committed 2026-07-02 20:57:43 +07:00
1 parent 7fff9482f4
commit 434125eeef
1 file changed
+2 -2
+2 -2
View File
@@ -756,10 +756,10 @@ def draw_hero_count(img, line_x, h, count, pulse_remaining=0):
pad = 14
tx, ty = line_x - tw // 2, h // 3 + th // 2
overlay_rect(
img, tx - pad, ty - th - pad, tx + tw + pad, ty + pad // 2, C_PANEL, alpha=0.78
img, tx - pad, ty - th - pad, tx + tw + pad, ty + pad, C_PANEL, alpha=0.78
)
cv2.rectangle(
img, (tx - pad, ty - th - pad), (tx + tw + pad, ty + pad // 2), C_LINE_CORE, 2
img, (tx - pad, ty - th - pad), (tx + tw + pad, ty + pad), C_LINE_CORE, 2
)
cv2.putText(img, text, (tx, ty), font, font_scale, C_GREEN, thickness, cv2.LINE_AA)