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 Deepstream Python API Reference — Deepstream Deepstream Version: 6.1.1 documentation