Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Plugin Capabilities

Answered

Comments

6 comments

  • Anton Babinov
    • Network Optix team

    Hello Ali,

    You can check our support article regarding general capabilities of plugins -https://support.networkoptix.com/hc/en-us/articles/360023747714-1-Integration-Capabilities-What-to-Expect

    Is there a way to implement actions like create bookmark/text overlay from the plugin inside?

    Yes, but it wouldn't be "from inside the plugin". Plugin can create objects and analytics events and send metadata to mediaserver.  Mediaserver's rules engine can process analytics event and execute actions like create bookmark or create text overlay. Here is a simple example to illustrate what i mean:

    1. Plugin process frames from mediaserver.

    2. At some point license plate is detected and plugin can generate analytic event "licence plate detected"

    3. In the event/camera rules tab you can setup rules to show text overlay.

    I want to ask a question about plugin capabilities.  Above the link there is a sample integration. In the video the bookmarks are created for the selling items, I wonder that; is it possible to create bookmarks from the plugin.

    I can't say for sure, but I don't think that plugin is used for this integration. Plugins can help you when you need to analyse video frames to generate metadata. If you already have the data, like orders from selling terminal, you don't need to video analyse, so all you need is to push metadata to mediaserver. You can do this by creating generic events via server API. 

     

    0
  • Ali Ergin Hacimahmutoglu

    Hi Anton,

    Actually, I was expecting an answer like you have written, 
    "2. At some point license plate is detected and plugin can generate analytic event "license plate detected"

    this is a partial integration with analytic plugin. I know we can create an event with event metadata and combine it with the rules actions. I want to ask a question in here;

    Is there a way to carry text information from event metadata's caption or description, to rules actions. In that way plugin will be very useful for us.

    Thanks for help,

     

         

    0
  • Andrey Terentyev
    • Network Optix team

    Hi Ali,

    One more possible solution in addition to explained by Anton.

    You can use the /ec2/bookmarks/add Server API function for making bookmarks when an order from a selling terminal is being registered.

    0
  • Tony Luce

    Hi Ali Ergin Hacimahmutoglu -

    One thing to consider: Users may not want analytics to automatically create bookmarks.

    The key benefit of an integration done with the Metadata SDK is that it brings in actionable metadata which can be used to create custom rules for cameras utilizing the plugin with the Analytics Event event to tie to a full list of actions, including "Create Bookmark".

    Hopefully that makes sense. I think you're asking some great questions.

    0
  • Anton Babinov
    • Network Optix team

    Is there a way to carry text information from event metadata's caption or description, to rules actions. In that way plugin will be very useful for us.

    Yes, caption and description from analytics events  are passed to text overlay action. Check my example bellow.

    For testing purpose I use our sample stub analytics plugin with enabled "Generate events" option:

    I've configured event rule like this:

    Now i can see caption and description from my events as test overlay on the video.

     

    You can also check this thread https://support.networkoptix.com/hc/en-us/community/posts/1500000322582-How-to-use-dynamic-fields-with-Do-HTTP-Request- . It shows how to use event's metadata in Do HTTP request action.

    Same logic can be used for Generic events. If you'll create event rule like this:

    You can pass parameters from external services via API without use of a plugin. You can use /api/createEvent API method to create Generic event.

    /api/createEvent?description=TESTDESC&caption=PLATE%20AAA24&metadata={"cameraRefs":["<cameraID>"]}

    It will be displayed like this:

     

     

    0
  • Ali Ergin Hacimahmutoglu

    Hi Anton, 

    In your sample,  when we choose  Analytic Event type:  'Object in the area'  event. It automatically passes the description and caption content to the desired action text (textoverlay/bookmark). This is a very useful integration for us. 

    Thanks for your help, 

      

    0

Please sign in to leave a comment.