How to draw an unfilled ROI box on each screen displayed by Nveglessink in deepstream-python

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 6.3docker
• JetPack Version (valid for Jetson only)
• TensorRT Version 8.5
• NVIDIA GPU Driver Version (valid for GPU only) 550.142
• Issue Type( questions, new requirements, bugs)

I want to draw an ROI area for each flow on the screen displayed by Nveglessink so that I can make a judgment. How should I do that in deepstream-test3?

What do you mean by so that I can make a judgment?

Whether the identified object is within the ROI region is determined by the naked eye

i use:

            rect = display_meta.rect_params[0]
            x, y , w, h = MyConfigReader.cfg_dict["ROI"][f"source{frame_meta.pad_index}"].split(",")
            rect.left = int(x) 
            rect.top = int(y) 
            rect.width = int(w) 
            rect.height = int(h) 
            rect.border_width = 3 
            rect.border_color.red = 0.0
            rect.border_color.green = 0.0
            rect.border_color.blue = 1.0
            rect.border_color.alpha = 1.0
            pyds.nvds_add_display_meta_to_frame(frame_meta, display_meta)

In the probe,Is that possible?

Yes. This should meet your needs.

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