How to send dynamic message from plugin to NX meta and show it as overlay message on screen?
In ProgressCurrently I am trying the NX plugin and I followed the example to do object detection (https://github.com/networkoptix/nx_open_integrations/tree/master/cpp/vms_server_plugins/opencv_object_detection_analytics_plugin).. It works well and can detect person objects ..
After tried, instead of showing the labels on detected object, I wish to add some logic and reply dynamic message from plugin, can I know how to do it in this NX plugin ?
For example, instead of showing two bounding boxes with labels of [Person], is it possible for plugin send the dynamic message "No warning. Two people are wearing helmets." and NX Meta shows it as overlay message on camera screen ?
My NX Meta information as follows:
Desktop Client version 6.0.1.40074 R1 (449f8e5305cb).
Built for windows-x64 with msvc.
OpenGL version: 4.6.0 NVIDIA 532.10.
OpenGL renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2.
OpenGL vendor: NVIDIA Corporation.
OpenGL max texture size: 32768.
Thank you
-
Hi Ichiro,
Thank you for your prompt reply.
I am currently working on adding an image captioning function to a plugin. The idea is for the plugin to analyze an image and return a dynamically sized caption (as a string), which could vary in length. For example:
- "There are three people."
- "There are four cars and two motorcycles."
Could you please let me know if it is possible for the plugin to return such captioning strings to NX Meta and display them as subtitle messages on the screen?
Thank you for your guidance!
Best regards,
Sunny -
Hi Sunny,
I think this is a possible by using the text overlay.
However, I am not sure how to you generate the text, as a result, we can only provide the feature introduction.In the SDK sample, STUB:event, you can trigger the generic event according to the analytics result, then you may bring the text your desired accordingly to the action. And this would be likely fit your requirements. i.e.
On desktop client, you will see the event from the plugins, and then choose the action : Show text overlay.Please try to implement this to see if that fits. thanks.
Please sign in to leave a comment.
Comments
3 comments