How to delete obj_meta through Nvds-analytics in nvidia deepstream

Please provide complete information as applicable to your setup.

**• Hardware Platform -------------------> GPU
**• DeepStream Version ------------------> 6.1.1
• TensorRT Version ---------------------> 8.5
• NVIDIA GPU Driver Version (valid for GPU only) -------------> 535

Hi,
After Primary model I want to filter and delete from metadata SO I used nvds-analytics after that tracker and then secondary model , But while take the pad from caps filter It’s showing both inside and outside of the ROI. This is my custom pipeline , [src-----> streammux ------>pgie -----> nvdsanalytics----->tracker ------> sgie —> nvvideoconvert-------> capsfilter—> sink

I used also deepstream nvanalytics -------> test apps

I did a little customisation ***************************************************
streammux.link(queue1)
queue1.link(pgie)
pgie.link(queue2)
queue2.link(nvanalytics)
nvanalytics.link(queue3)
queue3.link(tracker)
tracker.link(queue4)
queue4.link(tiler)
tiler.link(queue5)
queue5.link(nvvidconv)
nvvidconv.link(queue6)
queue6.link(nvosd)
nvosd.link(queue7)
queue7.link(nvvidconv_postosd)
nvvidconv_postosd.link(caps)
caps.link(encoder)
encoder.link(rtppay)
rtppay.link(sink)


[property]
enable=1
#Width height used for configuration to which below configs are configured
config-width=1920
config-height=1080
#osd-mode 0: Dont display any lines, rois and text

1: Display only lines, rois and static text i.e. labels

2: Display all info from 1 plus information about counts

osd-mode=2
set OSD font size that has to be displayed
display-font-size=12

Per stream configuration

[roi-filtering-stream-0]
enable or disable following feature
enable=1
#ROI to filter select objects, and remove from meta data
roi-RF=179;197;183;600;565;670;1017;473;1046;67;662;42
remove objects in the ROI
inverse-roi=0
class-id=-1


I able to see the feed but outside ROI and inside the roi both It’s tracking and showing output . I want it should not be outside the ROI and obj_meta outside ROI should not pass to tracker as well .

what I need to do and How I can achieve it ?

please refer to this topic for how to delete obj_meta.

I want to remove obj which is outside of the ROI through nvanalytics, @fanzh

here are two methods.

  1. add preprocess before pgie, and set ROI to the same with nvdsanalytics’s ROI, then pgie will only give the objects in the ROI. please refer to sample /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-preprocess-test.
  2. only nvdsanalytics can get the ROI parameters. nvdsanalytics is opensource in DS6.3, you can modify the plugin to remove object meta.

I need this for python ! What I need to do ? @fanzh

please refer to python sample deepstream-preprocess-test .

hey ! Please try to understand what I want to do, I want to filter and delete unwanted object detect from my buffer. and my ROI is not rectangle all time, It can be pentagon, Hexagon, octagon etc. for that reason I was not using nvdspreprocess. I asked in forums one of Moderator suggested to use nvanalytics for filter and detele meta-data outside the ROI. Please check this ---------> (After Primary model and Before Tracker How I can filter unwanted Bbox with particular region - #5 by kesong)

then I tried with nvanalytics but It not able to filter and delete obj outside ROI… then I start this topic to understand how I can filter out. If I am missing any flag in nvanalytics or something … please understand my concern properly and suggest me some approach how I can achieve my goals

@fanzh
@yingliu
@AlesBorovicka @Bibek @droettger @ibeer @mkumard @psundareson @ShaneCCC

There is no update from you for a period, assuming this is not an issue any more. Hence we are closing this topic. If need further support, please open a new one. Thanks.
AYK, DeepStream SDK is a C lib. if using Python, how do you know the nvanalytics’s ROI information?
nvanalytics plugin is opensource. you can delete any object meta in nvanalytics. here are the steps.
1> check if the object is in ROI.
2> if the object is outside ROI, delete the meta by this method.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.