mirror of
https://github.com/rendies/People-Counting-in-Real-Time.git
synced 2025-05-14 18:09:29 +07:00
fix: use ffmpeg rtsp
This commit is contained in:
parent
aedcb241dc
commit
62d0e16a89
|
@ -344,8 +344,9 @@ def PeopleCounter():
|
||||||
writer.write(frame)
|
writer.write(frame)
|
||||||
|
|
||||||
# show the output frame
|
# show the output frame
|
||||||
with lock:
|
|
||||||
ffmpeg_process.stdin.write(frame.astype(np.uint8).tobytes())
|
ffmpeg_process.stdin.write(frame.astype(np.uint8).tobytes())
|
||||||
|
# with lock:
|
||||||
# outputFrame = frame.copy()
|
# outputFrame = frame.copy()
|
||||||
# cv2.imshow("Real-Time Monitoring/Analysis Window", frame)
|
# cv2.imshow("Real-Time Monitoring/Analysis Window", frame)
|
||||||
key = cv2.waitKey(1) & 0xFF
|
key = cv2.waitKey(1) & 0xFF
|
||||||
|
|
Loading…
Reference in New Issue
Block a user