Sending Bounding Boxes via API
AnsweredIs there a way to send bounding boxes in the payload for api/createEvent?
-
Hello,
What are OS and VMS versions you are using?
I'm afraid I don't understand your question.
Technically, you could send any textual information, including a json stringified object, in any of the field available in the generic event. In the description field, for example. But what would be your final objective for doing that?
-
NX Cloud, 4.2.0.32840
We provide object detection by streaming video from NX to our cloud servers and then sending back alarms into NX. Our payload is as follows:
{server_address}/api/createEvent?caption={object_name}×tamp={date}&source={camera_name}&description={object_name}&metadata={{"cameraRefs":["{camera_uid}"]}}
I've attached an image of the event on WAVE. In this example, we're triggering an alarm for gun detection. Is there anyway to get a bounding box to display around the gun? We have the bounding box coordinates in our backend that could be added to the payload. -
Hello,
Is there anyway to get a bounding box to display around the gun? We have the bounding box coordinates in our backend that could be added to the payload.
There is no way to do that via the API. However, you could try to implement the following pipeline.
1. Develop an analytics plugin. It will listen on a network socket.
2. Configure an event. When: Generic Event, Action: Do HTTPS request, sending data to the plugin listening on a socket.
3. Trigger an event with /api/createEvent and pass bounding box coordinates in the "description field", for example.
4. Your plugin receives coordinates and transforms to the Server specific data structure and passed to the Server.
5. The Server send coordinates to the Client application, which in turns displays a frame with the given coordinates.
-
Hi Andrey Terentyev, I don't understand step 2 in your answer. How to configure an event like you described? Where to do it?
-
When is it expected to be released? (Metadata API 5.1)
Please sign in to leave a comment.
Comments
8 comments