remove zones box coloring

This commit is contained in:
Alberto-Audrix committed 2026-07-24 16:37:01 +07:00
1 parent 7721c84406
commit a4f7d4d794
1 file changed
-3
-3
View File
@@ -179,7 +179,6 @@ COUNT_PULSE_FRAMES = 15
C_ZONE_LEFT = (80, 220, 100) # green — left feeder
C_ZONE_RIGHT = (0, 165, 255) # orange — right feeder
C_ZONE_FILL_ALPHA = 0.18
SKELETON = [(0, 1), (4, 3), (1, 2), (3, 2), (2, 6), (2, 5), (2, 7), (7, 8)]
SK_COLORS = [
@@ -1037,8 +1036,6 @@ def draw_pill(img, text, x, y, bg, fg=C_TEXT, font_scale=0.45, pad_x=6, pad_y=4)
def draw_elegant_zone(img, zone, pulse_remaining=0, label="ZONE", color=C_ZONE_LEFT):
x1, y1, x2, y2 = zone
strength = pulse_remaining / max(ZONE_PULSE_FRAMES, 1)
fill_alpha = C_ZONE_FILL_ALPHA + 0.12 * strength
overlay_rect(img, x1, y1, x2, y2, color, alpha=fill_alpha)
thickness = 2 + int(2 * strength)
cv2.rectangle(img, (x1, y1), (x2, y2), color, thickness, cv2.LINE_AA)
# Corner ticks