You only live once #10

Closed
siwat wants to merge 40 commits from dev into main
Showing only changes of commit 838028fcb0 - Show all commits

8
app.py
View file

@ -567,6 +567,10 @@ async def detect(websocket: WebSocket):
"modelId": stream["modelId"],
"modelName": stream["modelName"],
"online": True,
# Include all subscription parameters for proper change detection
"rtspUrl": stream.get("rtsp_url"),
"snapshotUrl": stream.get("snapshot_url"),
"snapshotInterval": stream.get("snapshot_interval"),
**{k: v for k, v in get_crop_coords(stream).items() if v is not None}
}
for camera_id, stream in streams.items()
@ -813,6 +817,10 @@ async def detect(websocket: WebSocket):
"modelId": stream["modelId"],
"modelName": stream["modelName"],
"online": True,
# Include all subscription parameters for proper change detection
"rtspUrl": stream.get("rtsp_url"),
"snapshotUrl": stream.get("snapshot_url"),
"snapshotInterval": stream.get("snapshot_interval"),
**{k: v for k, v in get_crop_coords(stream).items() if v is not None}
}
for camera_id, stream in streams.items()