API configuration between Python Post-Processor and Nx Meta

In Progress

Comments

1 comment

  • Avatar
    Ichiro

    Hi Fandra Andito,

    It seems there may be a few misunderstandings regarding the plugin subsystem, integrations, and data flow in Nx Meta. I’d like to clarify these points for you:

    1. Interacting with the Nx Meta Interface:

    To display or interact with any specific application, it is necessary to send or push the required data to the application. Currently, your Python script is running independently and only receiving data from other sources— it is not interacting with Nx Meta or its components. As a result, you won’t see anything on the Nx Meta interface from your current implementation.

    If your goal is to interact with the desktop client and create new entries in the event rules, it is mandatory to use the MetaSDK to develop a plugin. The Python script, being an external interface or webpage, does not interact directly with the Nx Media Server. That being said, unfortunately, your current implementation cannot fulfill this request.

    2. Displaying ROI (Region of Interest) in Nx Meta Interface:

    To display an ROI defined in app.py on the Nx Meta camera feed, you must use the MetaSDK to relay your Python script’s configuration to the Nx Witness Media Server. The ROI implementation must be done using MetaSDK in C++, and you can refer to the sample code in the STUB/ROI example.

    Note that the Nx Witness ROI can only be applied to device-level video sources (e.g., cameras, RTSP streams) and cannot be displayed on web interfaces. This limitation is inherent to the platform.

    3. Displaying Data on a Web Page When a Vehicle Enters the ROI:

    If you want to display data (e.g., detection or event details) on a webpage when a vehicle enters the ROI, you’ll need to:

    Create Analytics ROI: Use the MetaSDK to define the ROI (refer to STUB/ROI) and redirect the coordinates from Nx to your webpage. This would involve sending the data externally via HTTP requests within the plugin code.

    Enable Event Rules Integration: Create the manifest and configure the necessary settings to generate and create the analytics events. Refer to the STUB/Events and the sample plugin for guidance.

    These functionalities must be implemented using MetaSDK in C++, which may involve a higher development cost. A step-by-step guide on creating analytics events from scratch is available in the public knowledge base.

    4. Available Tools and Resources:

    While we understand this may not be the most convenient solution, it is currently the best option available. Starting from Nx v6.1.0, a set of Analytics APIs is included in the MetaSDK to simplify such tasks. If you are willing to try the beta version, it is available on the Developer’s Portal.

    We strongly recommend reviewing the MetaSDK documentation in the knowledge base before beginning development. These resources provide an essential understanding of the plugin subsystem, including common design concepts, data formats, and configurations.

    0
    Comment actions Permalink

Please sign in to leave a comment.