upgraded media video streaming

This commit is contained in:
Saifeddine ALOUI 2023-12-16 19:45:34 +01:00
parent dd713c24cd
commit 2815296592

View File

@ -247,7 +247,7 @@ class WebcamImageSender:
_, buffer = cv2.imencode('.jpg', frame) _, buffer = cv2.imencode('.jpg', frame)
image_base64 = base64.b64encode(buffer) image_base64 = base64.b64encode(buffer)
self.socketio.emit("image", image_base64.decode('utf-8')) self.socketio.emit("video_stream_image", image_base64.decode('utf-8'))
cap.release() cap.release()
except: except: