How to send cropped image through msgbroker using python

I have difficulty to refer cropped image to generate_event_msg_meta() and attach object to buffer as metadata.

• Hardware Platform = Jetson
• DeepStream Version = 5.0

Pls specify your issue, thanks.

I want to send image via rabbitmq and I read this question:

https://forums.developer.nvidia.com/t/frame-crop-based-on-detected-bounding-box-and-send-the-crop-image-via-kafka/155325

But I face difficulty on how to use “extMsg” and “extMsgSize” fields for custom objects and how to provide copy/free function and attach that object to buffer as metadata using python

Any help?