Hello NVIDIA Developers,
I am working on a DeepStream pipeline where I want to:
- Define a Region of Interest (ROI) manually using fixed coordinates (e.g.,
(x1, y1, x2, y2)
). - Run inference only within the manually defined ROI using the
nvinfer
plugin.
I do not want to use nvdsanalytics
for ROI definition. Instead, I need to hard-code the coordinates or specify them in the configuration.
Requirements:
- How can I manually specify an ROI in the pipeline?
- Is it possible to pass these coordinates directly to
nvinfer
or modify the frame buffer to exclude regions outside the ROI?
I would appreciate guidance on:
- Changes required in configuration files.
- Any custom pre-processing code or pipeline modifications to filter the frame based on the ROI.
If sample code or configuration examples are available, it would be greatly helpful.
Thank you for your support!