fix: use ffmpeg rtsp

This commit is contained in:
rendies 2023-01-18 16:48:48 +07:00
parent aedcb241dc
commit 62d0e16a89

View File

@ -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