Comments

8 comments

  • Avatar
    Andrey Terentyev

    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?

    0
    Comment actions Permalink
  • Avatar
    Eli Katz

    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}&timestamp={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.

     

     

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    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.

    0
    Comment actions Permalink
  • Avatar
    Nguyen The Manh

    Hi Andrey Terentyev, I don't understand step 2 in your answer. How to configure an event like you described? Where to do it?

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hello,

    To configure and a rule, open the Nx Client application and connect to your server.

    Right click on a camera, choose "Camera Rules..."

    In the "Event Rules" window, click the "Add" button.

    See the attached screenshot.

     

    0
    Comment actions Permalink
  • Avatar
    Tagir Gadelshin

    Hi!

    We don't have an API for sending bounding boxes. But we're working on it, and we call it Metadata API. It's coming in the version after the next one (after 5.1)


     

    0
    Comment actions Permalink
  • Avatar
    SungNam Bae

    Hi Tagir

    I would like to know more about the "Metadata API" you mentioned.

    Is there any information released to the developers?

    0
    Comment actions Permalink
  • Avatar
    Irakli Lomidze

    Tagir Gadelshin 

    When is it expected to be released? (Metadata API 5.1)

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.