How to set polygon roi in nvdspreprocess

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)**jetson agx orin
• DeepStream Version6.4
• JetPack Version (valid for Jetson only) 6.0 DP
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs) questions

How to set polygon roi in nvdspreprocess

Currently, nvdspreprocess does not support setting polygon roi.

Can you share the reason? Maybe there is another workaround. if you want to do roi-filtering or Overcrowding Detection, nvdsanalytic 1 plugin already supports polygon setting.

How do I get the set polygon roi in a subsequent node callback, for example in osd’s src pad callback

If you plan to use nvdsanalytics, please refer to /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-nvdsanalytics-test/deepstream_nvdsanalytics_meta.cpp, The ROI will be attached to NvDsAnalyticsFrameMeta.

You also can customize your own usermeta.

I don’t see in this example where I can get the roi of the polygon,Can you share the following code

The parse_nvdsanalytics_meta_data function in /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-nvdsanalytics-test/deepstream_nvdsanalytics_meta.cpp.

The user meta data type is NVDS_USER_FRAME_META_NVDSANALYTICS

This part of the code actually shows only these types, I want to get the line coordinates of the polygonal roi

Sorry, It looks like some information is missing from NvDsAnalyticsFrameMeta, This is a issues.

Other options can be considered.

1.Parse config_nvdsanalytics.txt when you need to get ROI
2.nvdsanalytics is opensource, add the ROI coordinate to framemata in function attach_framemeta_analytics_metadata.

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

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