I’ve been using the nvdsanalytics plugin and so far it’s working great, but I’ve got two feature requests which I think are must haves to be usable in production environments…
(1) shading of ROI. Please allow us to set a color and opacity for the ROI polygons.
This would allow us to shade areas that we wish to ignore - like a privacy area. Eg. you have a camera looking at a car park near a road but want to ignore the cars on the road. Would be handy to visualise this with shading instead of just yellow lines as the plugin does now.
(2) instead of using the bottom center of a bounding box as the test point to see if it’s in or out of an ROI; test whether the entire bbox is in or out of the ROI.
For a convex polygon (Convex polygon - Wikipedia) this is easy and you just perform the same test that you are doing already, but for all four bbox corners.
For a concave polygon it’s a bit harder as you need to perform a line crossing test between each line in the bbox and each line in the polygon.
Just convex polygons would be good enough. Concave is for weird regions that are star-shaped for example.
• Hardware Platform (Jetson / GPU) ALL • DeepStream Version 5.0dp
Hey Jason,
For 1, currently you can do it by accessing display meta in probe, and we will discuss internally if we will support it in the plugin
For 2, we had discussed it in Nvdsanalytics element - ROI - strange behaviour , and we will support this feature in later release not the upcoming release.
Thanks again… but I don’t understand. I know how to use display_meta. I already use it in my apps to draw on frames.
But I’m talking about the nvdsanalytics plugin.
When you use this plugin and configure it with an ROI it is drawn on each frame in yellow.
I’m wanting to shade this ROI which is drawn by the plugin.
Maybe it’s possible to search for existing display_meta and modify it.
Oh, currently we only support shading rectangle as my previous comment, for shading the ROI(polygon), we need to add the support in OSD plugin, so pls wait for later release.