For my use case I only need to track cars and two-wheelers moving on a specific region on the camera viewport. So, in order to improve tracker efficiency, I want to:
Filter out persons, road signs
Filter out all cars, two-wheelers based on their bounding box intersecting a specific polygon on the viewport.
Is there any way I could achieve this? I basically want to reduce the data produced by the pgie element. So that nvtracker processes only a subset of the data from pgie.
Yes, this is possible. This is essentially what I am asking: How can I implement this removal in the probe function? I have checked the sources but I’m completely lost as I don’t know how to start my implementation.
Check out apps/sample_apps/deepstream-nvdsanalytics-test sample app (listed at this page) for the idea how and where to place the nvdsanalytics plugin.
There is a simple solution to my problem. I used a probe function to check the bboxes generated by nvinfer. Inside the probe function I use the following method to remove all the objects that are outside my ROI: