| websocketController | index /home/bedrock/Desktop/project/AlertWatch/Production/detector/util/websocketController.py |
WebSocket Client for Sending Video and Tensor Data
This module provides a WebSocket client implementation for connecting to a server,
sending video frames, tensors, and additional data. It supports reconnecting on failure.
Classes:
- WebSocketClient: A client for managing WebSocket connections and sending data.
Functions:
- initialize_websocket: Initializes a `WebSocketClient` instance and connects to the server.
Dependencies:
- asyncio: For managing asynchronous WebSocket connections and tasks.
- websockets: For WebSocket communication.
- cv2: For video frame encoding.
- json, base64: For preparing and encoding data to send over WebSocket.
Usage:
Use `initialize_websocket` to set up a WebSocket connection and start sending data.
Author:
Lior Jigalo
License:
MIT
| Modules | ||||||
| ||||||
| Classes | ||||||||||
|
| ||||||||||
| Functions | ||
| ||