Skip to content

Commit 5ae1fb3

Browse files
committed
fix
1 parent 9d34ee8 commit 5ae1fb3

File tree

1 file changed

+4
-2
lines changed
  • src/arduino/app_bricks/hand_gesture_detection

1 file changed

+4
-2
lines changed

src/arduino/app_bricks/hand_gesture_detection/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,18 @@ def __init__(self, camera: BaseCamera | None = None):
5151
if not self._host:
5252
raise RuntimeError("Host address could not be resolved. Please check your configuration.")
5353

54-
self._ws_send_url = f"ws://{self._host}:5050"
55-
self._ws_recv_url = f"ws://{self._host}:5051"
54+
self._ws_send_url = f"ws://{self._host}:5000"
55+
self._ws_recv_url = f"ws://{self._host}:5001"
5656

5757
def start(self):
5858
"""Start the capture thread and asyncio event loop."""
5959
self._running = True
60+
self.camera.start()
6061

6162
def stop(self):
6263
"""Stop all tracking and close connections."""
6364
self._running = False
65+
self.camera.stop()
6466

6567
def on_gesture(self, gesture: str, callback: Callable[[dict], None], hand: Literal["left", "right", "both"] = "both"):
6668
"""

0 commit comments

Comments
 (0)