How to draw a rectangle/ROI in deepstream using rect params in python?

Hello guys, i wanna ask you something here, now i’m in confusing how to draw a custom rectangle for ROI on deepstream ? because i know there’s a code like py_nvosd_text_params that can customize the frame, but how to draw a rectangle ? because in this code only show a filled text, not a rectangle

I know it can, because i see the link that shared by @Ettikan ROI Ettikan

pls refer https://docs.nvidia.com/metropolis/deepstream/python-api/NvDsOSD/NvOSD_RectParams.html