fix: no resize

This commit is contained in:
rendies 2023-01-18 17:35:48 +07:00
parent 38aca22168
commit 08a9122c3d

View File

@ -126,7 +126,7 @@ def PeopleCounter():
if config.Thread: if config.Thread:
vs = thread.ThreadingClass(config.url) vs = thread.ThreadingClass(config.url)
ffmpeg_process = open_ffmpeg_stream_process(480, 640) ffmpeg_process = open_ffmpeg_stream_process(1080, 1920)
# loop over frames from the video stream # loop over frames from the video stream
while True: while True:
# grab the next frame and handle if we are reading from either # 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 # resize the frame to have a maximum width of 500 pixels (the
# less data we have, the faster we can process it), then convert # less data we have, the faster we can process it), then convert
# the frame from BGR to RGB for dlib # the frame from BGR to RGB for dlib
frame = imutils.resize(frame, width = 640) # frame = imutils.resize(frame, width = 640)
rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
# if the frame dimensions are empty, set them # if the frame dimensions are empty, set them