on exploring i got to know , this issue is coming from some other reason
file - /opt/nvidia/deepstream/deepstream-6.2/sources/libs/nvmsgconv/nvmsgconv.cpp
in nvmsgconv.cpp i did some changes for custom schema payload type
else if (ctx->payloadType == NVDS_PAYLOAD_DEEPSTREAM_MINIMAL) {
message = generate_dsmeta_message_minimal (ctx->privData, frame_meta);
if (message) {
len = strlen (message);
// Remove ‘\0’ character at the end of string and just copy the content.
payload->payload = g_memdup (message, len);
payload->payloadSize = len;
g_free (message);
}
}
else if (ctx->payloadType == NVDS_PAYLOAD_DEEPSTREAM_PROTOBUF) {
message = generate_dsmeta_message_protobuf (ctx->privData, frame_meta, len);
if (message) {
payload->payload = g_memdup (message, len);
payload->payloadSize = len;
g_free (message);
}
}
else if (ctx->payloadType == NVDS_PAYLOAD_CUSTOM){
message = generate_dsmeta_message_minimal(ctx->privData, frame_meta);
if (message) {
len = strlen (message);
// Remove '\0' character at the end of string and just copy the content.
payload->payload = g_memdup (message, len);
payload->payloadSize = len;
g_free (message);
}
}
inside NVDS_PAYLOAD_CUSTOM code section , i added generate generate_dsmeta_message_minimal(ctx->privData, frame_meta) function for the purpose of custom schema payload type.
on doing this , i m receving duplicate message like this
dulicate message with respect to frame id , id are getting repeat
{
“version” : “4.0”,
“id” : “1100”,
“@timestamp” : “2023-08-21T16:31:05.136Z”,
“sensorId” : “30BE433E-F36B-1410-897A-0039B11BCDE8”,
“description” : “This is camera=30BE433E-F36B-1410-897A-0039B11BCDE8 of Gate=E7BD433E-F36B-1410-897A-0039B11BCDE8 of Terminal=1”,
“gate_id” : “E7BD433E-F36B-1410-897A-0039B11BCDE8”,
“objects” : [
“1|1256.98|176.68|1372.69|386.319|Jet Bridge Disonnected”
]
}
{
“version” : “4.0”,
“id” : “1150”,
“@timestamp” : “2023-08-21T16:31:07.129Z”,
“sensorId” : “30BE433E-F36B-1410-897A-0039B11BCDE8”,
“description” : “This is camera=30BE433E-F36B-1410-897A-0039B11BCDE8 of Gate=E7BD433E-F36B-1410-897A-0039B11BCDE8 of Terminal=1”,
“gate_id” : “E7BD433E-F36B-1410-897A-0039B11BCDE8”,
“objects” : [
“8|1115.24|231.703|1172.59|249.674|Push Back Vehicle Connected”,
“1|1256.8|176.487|1373.07|386.105|Jet Bridge Disonnected”
]
}
{
“version” : “4.0”,
“id” : “1150”,
“@timestamp” : “2023-08-21T16:31:07.129Z”,
“sensorId” : “30BE433E-F36B-1410-897A-0039B11BCDE8”,
“description” : “This is camera=30BE433E-F36B-1410-897A-0039B11BCDE8 of Gate=E7BD433E-F36B-1410-897A-0039B11BCDE8 of Terminal=1”,
“gate_id” : “E7BD433E-F36B-1410-897A-0039B11BCDE8”,
“objects” : [
“8|1115.24|231.703|1172.59|249.674|Push Back Vehicle Connected”,
“1|1256.8|176.487|1373.07|386.105|Jet Bridge Disonnected”
]
}
{
“version” : “4.0”,
“id” : “1150”,
“@timestamp” : “2023-08-21T16:31:07.130Z”,
“sensorId” : “42BE433E-F36B-1410-897A-0039B11BCDE8”,
“description” : “This is camera=42BE433E-F36B-1410-897A-0039B11BCDE8 of Gate=E9BD433E-F36B-1410-897A-0039B11BCDE8 of Terminal=1”,
“gate_id” : “E9BD433E-F36B-1410-897A-0039B11BCDE8”,
“objects” : [
“7|789.78|501.91|1100.86|730.495|Push Back Vehicle Disconnected”,
“4|855.748|165.992|1111.61|540.454|airplane_front”,
“0|1244.37|154.76|1402.77|375.957|Jet Bridge Disonnected”
]
}
{
“version” : “4.0”,
“id” : “1150”,
“@timestamp” : “2023-08-21T16:31:07.130Z”,
“sensorId” : “42BE433E-F36B-1410-897A-0039B11BCDE8”,
“description” : “This is camera=42BE433E-F36B-1410-897A-0039B11BCDE8 of Gate=E9BD433E-F36B-1410-897A-0039B11BCDE8 of Terminal=1”,
“gate_id” : “E9BD433E-F36B-1410-897A-0039B11BCDE8”,
“objects” : [
“7|789.78|501.91|1100.86|730.495|Push Back Vehicle Disconnected”,
“4|855.748|165.992|1111.61|540.454|airplane_front”,
“0|1244.37|154.76|1402.77|375.957|Jet Bridge Disonnected”
]
}
{
“version” : “4.0”,
“id” : “1150”,
“@timestamp” : “2023-08-21T16:31:07.130Z”,
“sensorId” : “42BE433E-F36B-1410-897A-0039B11BCDE8”,
“description” : “This is camera=42BE433E-F36B-1410-897A-0039B11BCDE8 of Gate=E9BD433E-F36B-1410-897A-0039B11BCDE8 of Terminal=1”,
“gate_id” : “E9BD433E-F36B-1410-897A-0039B11BCDE8”,
“objects” : [
“7|789.78|501.91|1100.86|730.495|Push Back Vehicle Disconnected”,
“4|855.748|165.992|1111.61|540.454|airplane_front”,
“0|1244.37|154.76|1402.77|375.957|Jet Bridge Disonnected”
]
}
can you tell me why it is happening like this?