Skip to main content

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

NameTypeDescription
streamUrlstringthe 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

NameTypeDescription
prompt_valuesobjecta map of confidence levels for each object description when the detection occurred
alerting_promptstringthe object description whose alert threshold was exceeded to generate the detection
alert_timestringthe time (UTC) of the last detection
imagestringthe video frame from the time of the detection. The image is encoded as a base64 string.