Use horizontal line
This commit is contained in:
parent
050cca539e
commit
4135e7ea99
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ import threading
|
||||||
import time
|
import time
|
||||||
from ultralytics import YOLO
|
from ultralytics import YOLO
|
||||||
from utils.counter import Counter
|
from utils.counter import Counter
|
||||||
from utils.zones import draw_count_line_vertical
|
from utils.zones import draw_count_line_horizontal, draw_count_line_vertical
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
from metrics import get_metrics
|
from metrics import get_metrics
|
||||||
|
|
@ -22,7 +22,7 @@ latest_frames = {}
|
||||||
|
|
||||||
def process_stream(stream_id, url):
|
def process_stream(stream_id, url):
|
||||||
print(f"PROCESS STREAM {stream_id} from {url}")
|
print(f"PROCESS STREAM {stream_id} from {url}")
|
||||||
line_orientation = "vertical"
|
line_orientation = "horizontal"
|
||||||
counter = Counter(stream_id, line_orientation, metrics)
|
counter = Counter(stream_id, line_orientation, metrics)
|
||||||
cap = cv2.VideoCapture(url)
|
cap = cv2.VideoCapture(url)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue