people_counter/utils/zones.py
2025-08-02 03:25:54 +02:00

13 lines
319 B
Python

import cv2
def draw_count_line_horizontal(frame, y):
color = (0, 255, 255)
thickness = 2
cv2.line(frame, (0, y), (frame.shape[1], y), color, thickness)
def draw_count_line_vertical(frame, x):
color = (0, 255, 255)
thickness = 2
cv2.line(frame, (x, 0), (x, frame.shape[0]), color, thickness)