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 (https://en.wikipedia.org/wiki/Convex_polygon) 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