Getting Segmentation Mask Coordinates from Secondary GIE in DeepStream Message Schema

which sample are you testing or referring to? Here is the guide for how to add custom information. if msg2p-newapi is 0, please refer to this topic.