diff --git a/Server/WebsocketServer/main.py b/Server/WebsocketServer/main.py index ed3a07b..cc50886 100644 --- a/Server/WebsocketServer/main.py +++ b/Server/WebsocketServer/main.py @@ -2,6 +2,7 @@ import websockets import asyncio import numpy as np from ultralytics import YOLO +import time import cv2 classNames = ["person", "bicycle", "car", "motorbike", "aeroplane", "bus", "train", "truck", "boat", @@ -28,6 +29,7 @@ async def handle_connection(websocket, path): # frame = cv2.imdecode(nparr, cv2.IMREAD_COLOR) frame = cv2.cvtColor(nparr, cv2.COLOR_BGR2RGB) + cv2.imshow("from_remote", frame) # Perform object detection results = model.track(frame, persist=True) @@ -73,6 +75,8 @@ async def handle_connection(websocket, path): ret = lines.encode('utf-8') + cv2.waitKey(80) + await websocket.send(ret) except websockets.exceptions.ConnectionClosed: diff --git a/joystick-controller-client b/joystick-controller-client index 66acd46..a3d8a6f 160000 --- a/joystick-controller-client +++ b/joystick-controller-client @@ -1 +1 @@ -Subproject commit 66acd4698fcc997099ebc1ddc6f8e5ddd0e3579c +Subproject commit a3d8a6fd064c0a194dc0815e7f19c900937921d9