Merge branch 'dev' into dev-pond
This commit is contained in:
commit
c4ab4d6cde
1 changed files with 8 additions and 0 deletions
8
app.py
8
app.py
|
@ -681,6 +681,10 @@ async def detect(websocket: WebSocket):
|
||||||
"modelId": stream["modelId"],
|
"modelId": stream["modelId"],
|
||||||
"modelName": stream["modelName"],
|
"modelName": stream["modelName"],
|
||||||
"online": True,
|
"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}
|
**{k: v for k, v in get_crop_coords(stream).items() if v is not None}
|
||||||
}
|
}
|
||||||
for camera_id, stream in streams.items()
|
for camera_id, stream in streams.items()
|
||||||
|
@ -927,6 +931,10 @@ async def detect(websocket: WebSocket):
|
||||||
"modelId": stream["modelId"],
|
"modelId": stream["modelId"],
|
||||||
"modelName": stream["modelName"],
|
"modelName": stream["modelName"],
|
||||||
"online": True,
|
"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}
|
**{k: v for k, v in get_crop_coords(stream).items() if v is not None}
|
||||||
}
|
}
|
||||||
for camera_id, stream in streams.items()
|
for camera_id, stream in streams.items()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue