please refer to Accessing Mask Parameters from NvOSD_MaskParams in Python (not using Triton) - #6 by avnguyen213