FastAPI YOLO WebSocket + Re-ID

WebSocket: /ws

Send JSON:

{
  "image": "base64_encoded_jpeg_or_png",
  "owner_id": "user_123",
  "tracked_objects": [
    {"track_id": 1, "bbox": {"x": 0.1, "y": 0.2, "width": 0.3, "height": 0.4}}
  ]
}

Receive JSON:

{
  "boxes": [
    {
      "track_id": 1,
      "x": 0.1, "y": 0.2, "width": 0.3, "height": 0.4,
      "label": "laptop",
      "is_new": false,
      "is_saved_asset": true,
      "asset": {"id": "asset_001", "name": "MacBook", "confidence": "high"}
    }
  ],
  "next_track_id": 2
}