Determining if object is in ROI

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) RTX 2060 Super
• DeepStream Version 5
• TensorRT Version 7.0.0.11
• NVIDIA GPU Driver Version (valid for GPU only) 450.51
• Issue Type( questions, new requirements, bugs) question

I am currently running deepstream test 2 python script, I managed to obtain the bounding box info returning from the tracker, though i have an ROI which i need to determine whether the object lies in it or not, i already have it defined and loaded but when i run matplotlib’s Polygon to check whether the bounding box’s center point is in the ROI or not.
So, my questions is, or is there a certain way i should use to determine whether an object lies in the ROI or not built in deepstream 5 ?

Thanks

We do not have the function about determining if object is in ROI buit-in test5 sample. you can add one probe on tracker src pad, or after tracker, like osd, since by that point, we have tracker information updated, iterate meta data of each object to check whether or not the object fall within ROI.