-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathmetadata.schema.json
More file actions
305 lines (305 loc) · 9.78 KB
/
metadata.schema.json
File metadata and controls
305 lines (305 loc) · 9.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
{
"meta:license": [
"SPDX-FileCopyrightText: (C) 2021 - 2026 Intel Corporation",
"SPDX-License-Identifier: Apache-2.0"
],
"$schema": "https://json-schema.org/draft/2019-09/schema",
"type": "object",
"definitions": {
"id": {
"title": "Object ID",
"type": "string",
"description": "Unique ID of the object in the scene.",
"examples": ["sensor1", "AB:CD:EF:12:34:56.0"]
},
"timestamp": {
"title": "Timestamp",
"type": "string",
"format": "date-time",
"description": "Timestamp in ISO 8601 UTC format at time of data acquisition.",
"examples": [
"2021-01-25T23:26:12Z",
"2021-01-25T23:26:12.424Z",
"2021-01-25T23:26:12.424659Z"
]
},
"rate": {
"title": "Sensor rate",
"type": "number",
"description": "The rate at which the sensor is producing data.",
"minimum": 0.0
},
"bounding_box": {
"type": "object",
"title": "Bounding Box",
"description": "Bounding box for signaling the normalized camera coordinates of a detected object. These coordinates should be in normalized camera space.",
"properties": {
"x": {
"type": "number",
"description": "x coordinate of the top-left corner of bounding box."
},
"y": {
"type": "number",
"description": "y coordinate of the top-left corner of bounding box."
},
"width": {
"type": "number",
"description": "Horizontal width of the bounding box.",
"minimum": 0
},
"height": {
"type": "number",
"description": "Vertical height of the bounding box.",
"minimum": 0
}
},
"required": ["x", "y", "width", "height"]
},
"bounding_box_px": {
"type": "object",
"title": "Bounding Box",
"description": "Bounding box for signaling the normalized camera coordinates of a detected object. These coordinates should be in camera pixel space.",
"properties": {
"x": {
"type": "number",
"description": "x coordinate of the top-left corner of bounding box."
},
"y": {
"type": "number",
"description": "y coordinate of the top-left corner of bounding box."
},
"z": {
"type": "number",
"description": "z coordinate of the top-left corner of bounding box."
},
"width": {
"type": "number",
"description": "Horizontal width of the bounding box.",
"minimum": 0
},
"height": {
"type": "number",
"description": "Vertical height of the bounding box.",
"minimum": 0
},
"depth": {
"type": "number",
"description": "Depth of the bounding box.",
"minimum": 0
}
},
"required": ["x", "y", "width", "height"]
},
"semantic_metadata_attribute": {
"type": "object",
"title": "Semantic Metadata Attribute",
"description": "A semantic attribute detected by an analytics model with label, confidence, and model source.",
"additionalProperties": true,
"properties": {
"label": {
"title": "Label",
"description": "The detected value or label for this attribute (e.g., 'Female' for gender, 'blue' for color, true/false for boolean attributes)."
},
"confidence": {
"title": "Confidence",
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Confidence score of the detected attribute (0.0 to 1.0)."
},
"model_name": {
"title": "Model Name",
"type": "string",
"description": "Name or identifier of the model that generated this attribute (e.g., 'age-gender-recognition-retail-0013')."
}
},
"required": ["label", "model_name"]
},
"semantic_metadata": {
"type": "object",
"title": "Semantic Metadata",
"description": "Semantic attributes describing what an object is. Contains the extensible set of all semantic properties detected by analytics models. Each attribute follows the structure: {label, confidence, model_name}.",
"additionalProperties": {
"oneOf": [
{
"$ref": "#/definitions/semantic_metadata_attribute"
},
{
"type": "object",
"properties": {
"embedding_vector": {
"type": "string"
},
"model_name": {
"type": "string"
}
},
"required": ["embedding_vector", "model_name"],
"description": "Special case for reid embedding vectors"
}
]
},
"meta:extensible": true
},
"detection": {
"type": "object",
"title": "Object Detection",
"description": "Metadata of an object detected in an image frame.",
"additionalProperties": true,
"meta:extensible": true,
"properties": {
"bounding_box": {
"$ref": "#/definitions/bounding_box"
},
"translation": {
"title": "Translation",
"type": "array",
"description": "Translation of the object from coordinate space origin (x, y, z)",
"items": {
"type": "number"
},
"minItems": 3,
"maxItems": 3
},
"rotation": {
"title": "Rotation",
"type": "array",
"description": "Rotation of the object in quaternion",
"items": {
"type": "number",
"exclusiveMinimum": -1,
"exclusiveMaximum": 1
},
"minItems": 4,
"maxItems": 4
},
"size": {
"title": "Size",
"type": "array",
"description": "Size of the object (x, y, z)",
"items": {
"type": "number",
"exclusiveMinimum": 0
},
"minItems": 3,
"maxItems": 3
},
"category": {
"title": "Category",
"type": "string",
"description": "Category or class of object being detected.",
"examples": ["person", "vehicle", "object"]
},
"confidence": {
"title": "Confidence",
"type": "number",
"description": "Inferencing confidence result for this detection.",
"examples": [0.899463546, 0.93243],
"exclusiveMinimum": 0.0
},
"id": {
"title": "Detection ID",
"type": "integer",
"description": "Detection ID. Not expected to track the same detection from one frame to the next.",
"minimum": 0
},
"metadata": {
"$ref": "#/definitions/semantic_metadata",
"description": "Semantic metadata describing what an object is (age, gender, clothing, embedding vectors, etc)."
},
"distance": {
"title": "Distance to Object",
"type": "number",
"description": "Distance from the camera/sensor to the detection in meters, for example when using RealSense or Lidar.",
"examples": [1.2, 3.56]
}
},
"required": ["category"],
"oneOf": [
{ "required": ["translation", "size"] },
{ "required": ["lat_long_alt", "size"] },
{
"anyOf": [
{ "required": ["bounding_box"] },
{ "required": ["bounding_box_px"] }
]
}
]
},
"mac": {
"title": "System MAC Address",
"type": "string",
"description": "MAC address of system that acquired the data.",
"examples": ["AB:CD:EF:12:34:56", "ab-cd-ef-12-34-56"]
},
"singleton": {
"title": "Sensor Metadata",
"description": "Many types of sensors exist for generating data from the physical world. This schema defines the composition of metadata for publishing sensor data into SceneScape.",
"type": "object",
"properties": {
"timestamp": {
"$ref": "#/definitions/timestamp"
},
"id": {
"$ref": "#/definitions/id"
},
"value": {
"title": "Sensor reading",
"description": "Value of the sensor reading."
},
"subtype": {
"title": "Sensor Subtype",
"type": "string",
"examples": ["humidity", "temperature"]
},
"rate": {
"$ref": "#/definitions/rate"
}
},
"required": ["timestamp", "id", "value"]
},
"detector": {
"title": "Detector Metadata",
"description": "Many types of detectors exist for generating bounding boxes around objects from image-like sources. This schema defines the composition of metadata for publishing object detection results into SceneScape.",
"type": "object",
"properties": {
"timestamp": {
"$ref": "#/definitions/timestamp"
},
"id": {
"$ref": "#/definitions/id"
},
"objects": {
"title": "Detected Objects by Category",
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/definitions/detection"
}
}
},
"sub_detections": {
"title": "Sub-Detections",
"type": "array",
"description": "Array of sub-detections associated with the detector output.",
"items": {
"type": "string"
},
"examples": [["license_plate"], ["person", "vest", "apriltag"]]
}
},
"required": ["timestamp", "id", "objects"]
}
},
"properties": {
"singleton": {
"$ref": "#/definitions/singleton"
},
"detector": {
"$ref": "#/definitions/detector"
}
},
"additionalProperties": true,
"meta:extensible": true
}