From 62d0e16a8981d052a336d27bbffbfd852933526c Mon Sep 17 00:00:00 2001 From: rendies Date: Wed, 18 Jan 2023 16:48:48 +0700 Subject: [PATCH] fix: use ffmpeg rtsp --- RunCounting.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RunCounting.py b/RunCounting.py index bb55f1f..5a6df5e 100644 --- a/RunCounting.py +++ b/RunCounting.py @@ -344,8 +344,9 @@ def PeopleCounter(): writer.write(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() # cv2.imshow("Real-Time Monitoring/Analysis Window", frame) key = cv2.waitKey(1) & 0xFF