diff --git a/RunCounting.py b/RunCounting.py index ef64f85..b165afe 100644 --- a/RunCounting.py +++ b/RunCounting.py @@ -15,6 +15,7 @@ from flask import Flask from flask import jsonify from flask_cors import CORS, cross_origin import subprocess +import ffmpeg t0 = time.time() @@ -345,6 +346,7 @@ def PeopleCounter(): # show the output frame # with lock: ffmpeg_process.stdin.write(frame.astype(np.uint8).tobytes()) + ffmpeg_process.communicate() # outputFrame = frame.copy() # cv2.imshow("Real-Time Monitoring/Analysis Window", frame)