Skip to content

Commit 4c88a83

Browse files
ITEP-83296: Allow filtering object detection labels per camera (#989)
Co-authored-by: Tomasz Dorau <tomasz.dorau@intel.com>
1 parent e67e760 commit 4c88a83

16 files changed

+271
-31
lines changed

dlstreamer-pipeline-server/perf-config.json

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
"publish_frame": {
4545
"type": "boolean",
4646
"description": "Publish frame to mqtt"
47+
},
48+
"detection_labels": {
49+
"type": "array",
50+
"items": {
51+
"type": "string"
52+
},
53+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
4754
}
4855
}
4956
}
@@ -56,7 +63,8 @@
5663
},
5764
"camera_config": {
5865
"cameraid": "camera1",
59-
"metadatagenpolicy": "detectionPolicy"
66+
"metadatagenpolicy": "detectionPolicy",
67+
"detection_labels": ["person"]
6068
}
6169
}
6270
}
@@ -100,6 +108,13 @@
100108
"publish_frame": {
101109
"type": "boolean",
102110
"description": "Publish frame to mqtt"
111+
},
112+
"detection_labels": {
113+
"type": "array",
114+
"items": {
115+
"type": "string"
116+
},
117+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
103118
}
104119
}
105120
}
@@ -112,7 +127,8 @@
112127
},
113128
"camera_config": {
114129
"cameraid": "camera2",
115-
"metadatagenpolicy": "detectionPolicy"
130+
"metadatagenpolicy": "detectionPolicy",
131+
"detection_labels": ["person"]
116132
}
117133
}
118134
}
@@ -156,6 +172,13 @@
156172
"publish_frame": {
157173
"type": "boolean",
158174
"description": "Publish frame to mqtt"
175+
},
176+
"detection_labels": {
177+
"type": "array",
178+
"items": {
179+
"type": "string"
180+
},
181+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
159182
}
160183
}
161184
}
@@ -168,7 +191,8 @@
168191
},
169192
"camera_config": {
170193
"cameraid": "camera3",
171-
"metadatagenpolicy": "detectionPolicy"
194+
"metadatagenpolicy": "detectionPolicy",
195+
"detection_labels": ["person"]
172196
}
173197
}
174198
}

dlstreamer-pipeline-server/queuing-config-gpu.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
"publish_frame": {
4545
"type": "boolean",
4646
"description": "Publish frame to mqtt"
47+
},
48+
"detection_labels": {
49+
"type": "array",
50+
"items": {
51+
"type": "string"
52+
},
53+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
4754
}
4855
}
4956
}
@@ -56,7 +63,8 @@
5663
},
5764
"camera_config": {
5865
"cameraid": "atag-qcam1",
59-
"metadatagenpolicy": "detectionPolicy"
66+
"metadatagenpolicy": "detectionPolicy",
67+
"detection_labels": ["person"]
6068
}
6169
}
6270
}
@@ -100,6 +108,13 @@
100108
"publish_frame": {
101109
"type": "boolean",
102110
"description": "Publish frame to mqtt"
111+
},
112+
"detection_labels": {
113+
"type": "array",
114+
"items": {
115+
"type": "string"
116+
},
117+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
103118
}
104119
}
105120
}
@@ -112,7 +127,8 @@
112127
},
113128
"camera_config": {
114129
"cameraid": "atag-qcam2",
115-
"metadatagenpolicy": "detectionPolicy"
130+
"metadatagenpolicy": "detectionPolicy",
131+
"detection_labels": ["person"]
116132
}
117133
}
118134
}

dlstreamer-pipeline-server/queuing-config-no-ntp.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
"publish_frame": {
3232
"type": "boolean",
3333
"description": "Publish frame to mqtt"
34+
},
35+
"detection_labels": {
36+
"type": "array",
37+
"items": {
38+
"type": "string"
39+
},
40+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
3441
}
3542
}
3643
}
@@ -40,7 +47,8 @@
4047
"parameters": {
4148
"camera_config": {
4249
"cameraid": "atag-qcam1",
43-
"metadatagenpolicy": "detectionPolicy"
50+
"metadatagenpolicy": "detectionPolicy",
51+
"detection_labels": ["person"]
4452
}
4553
}
4654
}
@@ -71,6 +79,13 @@
7179
"publish_frame": {
7280
"type": "boolean",
7381
"description": "Publish frame to mqtt"
82+
},
83+
"detection_labels": {
84+
"type": "array",
85+
"items": {
86+
"type": "string"
87+
},
88+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
7489
}
7590
}
7691
}
@@ -80,7 +95,8 @@
8095
"parameters": {
8196
"camera_config": {
8297
"cameraid": "atag-qcam2",
83-
"metadatagenpolicy": "detectionPolicy"
98+
"metadatagenpolicy": "detectionPolicy",
99+
"detection_labels": ["person"]
84100
}
85101
}
86102
}

dlstreamer-pipeline-server/queuing-config-no-rtsp.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
"publish_frame": {
4545
"type": "boolean",
4646
"description": "Publish frame to mqtt"
47+
},
48+
"detection_labels": {
49+
"type": "array",
50+
"items": {
51+
"type": "string"
52+
},
53+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
4754
}
4855
}
4956
}
@@ -56,7 +63,8 @@
5663
},
5764
"camera_config": {
5865
"cameraid": "atag-qcam1",
59-
"metadatagenpolicy": "detectionPolicy"
66+
"metadatagenpolicy": "detectionPolicy",
67+
"detection_labels": ["person"]
6068
}
6169
}
6270
}
@@ -100,6 +108,13 @@
100108
"publish_frame": {
101109
"type": "boolean",
102110
"description": "Publish frame to mqtt"
111+
},
112+
"detection_labels": {
113+
"type": "array",
114+
"items": {
115+
"type": "string"
116+
},
117+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
103118
}
104119
}
105120
}
@@ -112,7 +127,8 @@
112127
},
113128
"camera_config": {
114129
"cameraid": "atag-qcam2",
115-
"metadatagenpolicy": "detectionPolicy"
130+
"metadatagenpolicy": "detectionPolicy",
131+
"detection_labels": ["person"]
116132
}
117133
}
118134
}

dlstreamer-pipeline-server/queuing-config-reid.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
"publish_frame": {
4545
"type": "boolean",
4646
"description": "Publish frame to mqtt"
47+
},
48+
"detection_labels": {
49+
"type": "array",
50+
"items": {
51+
"type": "string"
52+
},
53+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
4754
}
4855
}
4956
}
@@ -56,7 +63,8 @@
5663
},
5764
"camera_config": {
5865
"cameraid": "atag-qcam1",
59-
"metadatagenpolicy": "reidPolicy"
66+
"metadatagenpolicy": "reidPolicy",
67+
"detection_labels": ["person"]
6068
}
6169
}
6270
}
@@ -100,6 +108,13 @@
100108
"publish_frame": {
101109
"type": "boolean",
102110
"description": "Publish frame to mqtt"
111+
},
112+
"detection_labels": {
113+
"type": "array",
114+
"items": {
115+
"type": "string"
116+
},
117+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
103118
}
104119
}
105120
}
@@ -112,7 +127,8 @@
112127
},
113128
"camera_config": {
114129
"cameraid": "atag-qcam2",
115-
"metadatagenpolicy": "reidPolicy"
130+
"metadatagenpolicy": "reidPolicy",
131+
"detection_labels": ["person"]
116132
}
117133
}
118134
}

dlstreamer-pipeline-server/queuing-config.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
"publish_frame": {
4545
"type": "boolean",
4646
"description": "Publish frame to mqtt"
47+
},
48+
"detection_labels": {
49+
"type": "array",
50+
"items": {
51+
"type": "string"
52+
},
53+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
4754
}
4855
}
4956
}
@@ -56,7 +63,8 @@
5663
},
5764
"camera_config": {
5865
"cameraid": "atag-qcam1",
59-
"metadatagenpolicy": "detectionPolicy"
66+
"metadatagenpolicy": "detectionPolicy",
67+
"detection_labels": ["person"]
6068
}
6169
}
6270
}
@@ -100,6 +108,13 @@
100108
"publish_frame": {
101109
"type": "boolean",
102110
"description": "Publish frame to mqtt"
111+
},
112+
"detection_labels": {
113+
"type": "array",
114+
"items": {
115+
"type": "string"
116+
},
117+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
103118
}
104119
}
105120
}
@@ -112,7 +127,8 @@
112127
},
113128
"camera_config": {
114129
"cameraid": "atag-qcam2",
115-
"metadatagenpolicy": "detectionPolicy"
130+
"metadatagenpolicy": "detectionPolicy",
131+
"detection_labels": ["person"]
116132
}
117133
}
118134
}

dlstreamer-pipeline-server/retail-config-gpu.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
"publish_frame": {
4545
"type": "boolean",
4646
"description": "Publish frame to mqtt"
47+
},
48+
"detection_labels": {
49+
"type": "array",
50+
"items": {
51+
"type": "string"
52+
},
53+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
4754
}
4855
}
4956
}
@@ -56,7 +63,8 @@
5663
},
5764
"camera_config": {
5865
"cameraid": "camera1",
59-
"metadatagenpolicy": "detectionPolicy"
66+
"metadatagenpolicy": "detectionPolicy",
67+
"detection_labels": ["person"]
6068
}
6169
}
6270
}
@@ -100,6 +108,13 @@
100108
"publish_frame": {
101109
"type": "boolean",
102110
"description": "Publish frame to mqtt"
111+
},
112+
"detection_labels": {
113+
"type": "array",
114+
"items": {
115+
"type": "string"
116+
},
117+
"description": "List of detection labels to filter (e.g., [\"person\", \"car\"]). If empty, all labels are published."
103118
}
104119
}
105120
}
@@ -112,7 +127,8 @@
112127
},
113128
"camera_config": {
114129
"cameraid": "camera2",
115-
"metadatagenpolicy": "detectionPolicy"
130+
"metadatagenpolicy": "detectionPolicy",
131+
"detection_labels": ["person"]
116132
}
117133
}
118134
}

0 commit comments

Comments
 (0)