-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathmetadata.schema.json
More file actions
321 lines (321 loc) · 10.8 KB
/
metadata.schema.json
File metadata and controls
321 lines (321 loc) · 10.8 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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
{
"meta:license": [
"Copyright (C) 2021-2024 Intel Corporation",
"This software and the related documents are Intel copyrighted materials, and your use of them is governed by the express license under which they were provided to you ('License'). Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, disclose or transmit this software or the related documents without Intel's prior written permission.",
"This software and the related documents are provided as is, with no express or implied warranties, other than those that are expressly stated in the License."
],
"$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"]
},
"center_of_mass": {
"title": "Center of Mass",
"type": "object",
"description": "Center of mass region of a detected object in pixel coordinates of a detected object in an image frame. It is a smaller bounding box that is used for determining average distance from the camera when using RealSense, for example.",
"properties": {
"x": {
"type": "number",
"description": "Number of horizontal pixels from the left side of the image to the center of mass bounding box."
},
"y": {
"type": "number",
"description": "Number of vertical pixels from the top of the image to the center of mass bounding box."
},
"width": {
"type": "number",
"description": "Horizontal width of the center of mass bounding box in pixels.",
"minimum": 0
},
"height": {
"type": "number",
"description": "Vertical height of the center of mass bounding box in pixels.",
"minimum": 0
}
},
"required": ["x", "y", "width", "height"]
},
"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
},
"reid": {
"title": "Reidentification Vector",
"type": "string",
"description": "A reidentification vector for this detection, such as that generated by a feature extraction model."
},
"center_of_mass": {
"$ref": "#/definitions/center_of_mass"
},
"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]
},
"facemask": {
"title": "Facemask",
"type": "boolean",
"description": "Was a facemask detected?",
"examples": [true, false]
},
"color": {
"title": "Color",
"type": "string",
"description": "The color of the detected object, such as the color of a vehicle or product.",
"examples": ["blue", "green", "#FF0000"]
},
"age": {
"title": "Age",
"type": "string",
"description": "The age in years of a detection, such as the result of a DL-based age detector.",
"examples": ["21", "33", "65"]
},
"hat": {
"title": "Hat",
"type": "boolean",
"description": "Was a hat detected?",
"examples": [true, false]
},
"gender": {
"title": "Gender",
"type": "string",
"description": "The gender of the detected object, such as the result of a DL-based gender detector.",
"examples": ["male", "female", "other"]
},
"subtype": {
"title": "Object Subtype",
"type": "string",
"description": "A subtype of a parent category or class.",
"examples": ["car", "bike", "truck", "bus"]
}
},
"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
}