Filtering based on Region of Interest (ROI)

• Hardware Platform (Jetson / GPU): jetson
• DeepStream Version : 5.0 ga
• JetPack Version (valid for Jetson only) : 4.4
• TensorRT Version 7.x

Is it possible to set some specific region of streams to only process this part of frames? If so, How?

There are two ways:

  1. In gst-nvinfer configuration file, you can set “roi-top-offset” and “roi-bottom-offset” parameters, which will only infer in the area inside “roi-top-offset” and “roi-bottom-offset” . But there is no “right” and “left” roi setting.

  2. To crop the video before send it to gst-nvinfer.
    The nvvideoconvert supports “src-crop” and “dest-crop” properties.

1 Like