mirror of
https://github.com/rendies/People-Counting-in-Real-Time.git
synced 2025-05-14 18:09:29 +07:00
fix: set width
This commit is contained in:
parent
1c65521d25
commit
38aca22168
|
@ -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(1080, 1920)
|
ffmpeg_process = open_ffmpeg_stream_process(480, 640)
|
||||||
# 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 = 500)
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user