get_last_detection_info
This method gets information about the last detection for the specified stream.
Method: POST
Endpoint: /get_last_detection_info
Body
{
"stream_url": "rtsp://192.168.1.54/live0"
}
Body Attribute Descriptions
Name | Type | Description |
---|---|---|
streamUrl | string | the RTSP URL for the stream from which to get the last detection information. This URL must exactly match the URL provided to the add_stream endpoint |
Response
{
"image": "<base64 encoded image string>",
"prompt_values": {
"vehicle": 92,
"landscape": 94
},
"alerting_prompt": "vehicle",
"alert_time": "2024-07-13 23:34:36"
}
Response Attribute Descriptions
Name | Type | Description |
---|---|---|
prompt_values | object | a map of confidence levels for each object description when the detection occurred |
alerting_prompt | string | the object description whose alert threshold was exceeded to generate the detection |
alert_time | string | the time (UTC) of the last detection |
image | string | the video frame from the time of the detection. The image is encoded as a base64 string. |