get_last_detection_info
Get the most recent detection payload for a stream.
- Method:
POST - Path:
/get_last_detection_info
Request Body
{
"stream_url": "rtsp://camera/live"
}
| Field | Type | Description |
|---|---|---|
stream_url | string | RTSP URL for the stream to query. |
Success Response
{
"success": true,
"message": null,
"data": {
"detections": [],
"image": "<base64 image>"
}
}
| Field | Type | Description |
|---|---|---|
data.detections | Detection[] | Most recent detection events for the stream. |
data.image | string | Base64-encoded image associated with the most recent detection. |