Send image over msgbroker

Using the deepstream-test4 python app

I have added few element and code block into the deepstream-test4 python app by referring the deepstream_python_apps/ at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub to extract the frame from it. Now i would like to send the frame (cv2.cvtColor(frame_copy, cv2.COLOR_RGBA2BGRA)) over the msgbroker. But not sure how to implement this!

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Device : NVIDIA GeForce RTX 2.x
Deepstream version : 6.x
TensorRT : 8.x
Issue Type : question

I have added frame field into nvdsmeta_schema.h

typedef struct NvDsEventMsgMeta {
gchar *image;

Then the probe function, tried to access the frame

msg_meta.image= img


msg_meta.image = img
AttributeError: ‘pyds.NvDsEventMsgMeta’ object has no attribute ‘image’