NvMsgConv plugin(low level api) is responsible to generate JSON payload schema after parsing NvDsEventMsgMeta.
I wanted to access/print the messages(i.e. JSON messages) for each frames.
After nvmsgconv and before sending it to next plugin i.e. nvmsgbroker, how can I get that JSON payload schema or at which location this JSON payload schema can be accessed??
like below :
Frame Number = 0 Vehicle Count = 4 Person Count = 2
{
“version” : “4.0”,
“id” : 0,
“@timestamp” : “2021-05-12T09:13:14.646Z”,
“sensorId” : “sensor-0”,
“objects” : [
“-1|510|457.826|549|487.174|Vehicle|#|sedan|Bugatti|M|blue|XX1234|CA|-0.1”
]
}
Frame Number = 1 Vehicle Count = 4 Person Count = 2
{
{[…]
}
}
Frame Number = 2 Vehicle Count = 4 Person Count = 2
…
…
1. And there is no documentation for the functions of gst-nvmsgconv.(/opt/nvidia/deepstream/deepstream-5.1/sources/gst-plugins/gst-nvmsgconv)
2. Is there any modification required in gst-nvmsgconv to achieve above? 3. In sources/gst-plugins/gst-nvmsgconv/gstnvmsgconv.c what is gst_nvmsgconv_transform_ip() ??
The schema message is in the usermeta of the frame. The meta_type is NVDS_PAYLOAD_META.
You can get such user meta and then you can get the Jason message.
Do you mean “python”? There is sample in deepstream-ssd-parser of how to get user meta from frame meta, you can refer to it and write your own code to get user meta from object meta.
And there is also lots of samples of how to add pad probe function already.