From 38aca22168a0faac167d47150651de1ccb78ca58 Mon Sep 17 00:00:00 2001 From: rendies Date: Wed, 18 Jan 2023 17:32:51 +0700 Subject: [PATCH] fix: set width --- RunCounting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RunCounting.py b/RunCounting.py index 6b5cc40..de5050d 100644 --- a/RunCounting.py +++ b/RunCounting.py @@ -126,7 +126,7 @@ def PeopleCounter(): if config.Thread: vs = thread.ThreadingClass(config.url) - ffmpeg_process = open_ffmpeg_stream_process(1080, 1920) + ffmpeg_process = open_ffmpeg_stream_process(480, 640) # loop over frames from the video stream while True: # grab the next frame and handle if we are reading from either @@ -142,7 +142,7 @@ def PeopleCounter(): # resize the frame to have a maximum width of 500 pixels (the # less data we have, the faster we can process it), then convert # the frame from BGR to RGB for dlib - frame = imutils.resize(frame, width = 500) + frame = imutils.resize(frame, width = 640) rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) # if the frame dimensions are empty, set them