/
openlabel_json_schema-v1.0.0.json
1871 lines (1871 loc) · 81.3 KB
/
openlabel_json_schema-v1.0.0.json
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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"action": {
"additionalProperties": false,
"description": "An action is a type of element intended to describe temporal situations with semantic load, as a certain activity happening in real life, such as crossing-zebra-cross, standing-still, playing-guitar, etc. As such, actions are simply defined by their type, the frame intervals in which the action happens, and any additional action data (e.g. numbers, booleans, text as attributes of the actions)",
"properties": {
"action_data": {
"$ref": "#/definitions/action_data"
},
"action_data_pointers": {
"$ref": "#/definitions/element_data_pointers"
},
"frame_intervals": {
"description": "The array of frame intervals where this action exists or is defined.",
"items": {
"$ref": "#/definitions/frame_interval"
},
"type": "array"
},
"name": {
"description": "Name of the action (it is a friendly name, not used for indexing).",
"type": "string"
},
"ontology_uid": {
"description": "This is the UID of the ontology where the type of this action is defined.",
"type": "string"
},
"resource_uid": {
"$ref": "#/definitions/resource_uid"
},
"type": {
"description": "The type of an action defines the class the action corresponds to.",
"type": "string"
}
},
"required": [
"name",
"type"
],
"type": "object"
},
"action_data": {
"additionalProperties": false,
"description": "Additional data to describe attributes of the action.",
"properties": {
"boolean": {
"description": "List of \"boolean\" that describe this action.",
"items": {
"$ref": "#/definitions/boolean"
},
"type": "array"
},
"num": {
"description": "List of \"num\" that describe this action.",
"items": {
"$ref": "#/definitions/num"
},
"type": "array"
},
"text": {
"description": "List of \"text\" that describe this action.",
"items": {
"$ref": "#/definitions/text"
},
"type": "array"
},
"vec": {
"description": "List of \"vec\" that describe this action.",
"items": {
"$ref": "#/definitions/vec"
},
"type": "array"
}
},
"type": "object"
},
"area_reference": {
"additionalProperties": true,
"description": "An area reference is a JSON object which defines the area of a set of 3D line segments by means of defining the indexes of all lines which outline the area. Note that coplanar 3D lines are assumed.",
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
},
"name": {
"description": "This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.",
"type": "string"
},
"reference_type": {
"type": "string"
},
"val": {
"items": {
"type": "number"
},
"type": "array"
}
},
"type": "object"
},
"attributes": {
"additionalProperties": false,
"description": "Attributes is the alias of element data that can be nested inside geometric object data. E.g. A certain bounding box can have attributes related to its score, visibility, etc. These values can be nested inside the bounding box as attributes",
"properties": {
"boolean": {
"items": {
"$ref": "#/definitions/boolean"
},
"type": "array"
},
"num": {
"items": {
"$ref": "#/definitions/num"
},
"type": "array"
},
"text": {
"items": {
"$ref": "#/definitions/text"
},
"type": "array"
},
"vec": {
"items": {
"$ref": "#/definitions/vec"
},
"type": "array"
}
},
"type": "object"
},
"bbox": {
"additionalProperties": true,
"description": "A 2D bounding box is defined as a 4-dimensional vector [x, y, w, h], where [x, y] is the centre of the bounding box, and [w, h] represent the width (horizontal, x-coordinate dimension), and height (vertical, y-coordinate dimension), respectively.",
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
},
"coordinate_system": {
"description": "Name of the coordinate system this object data is expressed with respect to.",
"type": "string"
},
"name": {
"description": "This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.",
"type": "string"
},
"val": {
"items": {
"type": "number"
},
"maxItems": 4,
"minItems": 4,
"type": "array"
}
},
"required": [
"name",
"val"
],
"type": "object"
},
"binary": {
"additionalProperties": true,
"description": "A binary payload.",
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
},
"coordinate_system": {
"description": "Name of the coordinate system this object data is expressed with respect to.",
"type": "string"
},
"data_type": {
"description": "This is a string that declares the type of the values of the binary object.",
"type": "string"
},
"encoding": {
"description": "This is a string that declares the encoding type of the bytes for this binary payload, e.g. \"base64\".",
"type": "string"
},
"name": {
"description": "This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.",
"type": "string"
},
"val": {
"description": "A string with the encoded bytes of this binary payload.",
"type": "string"
}
},
"required": [
"name",
"val",
"encoding",
"data_type"
],
"type": "object"
},
"boolean": {
"additionalProperties": true,
"description": "A boolean.",
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
},
"coordinate_system": {
"description": "Name of the coordinate system this object data is expressed with respect to.",
"type": "string"
},
"name": {
"description": "This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.",
"type": "string"
},
"type": {
"description": "This attribute specifies how the boolean shall be considered. In this schema only possible option is as a value.",
"enum": [
"value"
],
"type": "string"
},
"val": {
"description": "The boolean value.",
"type": "boolean"
}
},
"required": [
"val"
],
"type": "object"
},
"context": {
"additionalProperties": false,
"description": "A context is a type of element which defines any non spatial nor temporal annotation. Contexts can be used to add richness to the contextual information of a scene, including location, weather, application-related information",
"properties": {
"context_data": {
"$ref": "#/definitions/context_data"
},
"context_data_pointers": {
"$ref": "#/definitions/element_data_pointers"
},
"frame_intervals": {
"description": "The array of frame intervals where this context exists or is defined.",
"items": {
"$ref": "#/definitions/frame_interval"
},
"type": "array"
},
"name": {
"description": "Name of the context (it is a friendly name, not used for indexing).",
"type": "string"
},
"ontology_uid": {
"description": "This is the UID of the ontology where the type of this context is defined.",
"type": "string"
},
"resource_uid": {
"$ref": "#/definitions/resource_uid"
},
"type": {
"description": "The type of a context defines the class the context corresponds to.",
"type": "string"
}
},
"required": [
"name",
"type"
],
"type": "object"
},
"context_data": {
"additionalProperties": false,
"description": "Additional data to describe attributes of the context.",
"properties": {
"boolean": {
"description": "List of \"boolean\" that describe this context.",
"items": {
"$ref": "#/definitions/boolean"
},
"type": "array"
},
"num": {
"description": "List of \"num\" that describe this context.",
"items": {
"$ref": "#/definitions/num"
},
"type": "array"
},
"text": {
"description": "List of \"text\" that describe this context.",
"items": {
"$ref": "#/definitions/text"
},
"type": "array"
},
"vec": {
"description": "List of \"vec\" that describe this context.",
"items": {
"$ref": "#/definitions/vec"
},
"type": "array"
}
},
"type": "object"
},
"coordinate_system": {
"additionalProperties": true,
"description": "A coordinate system is a 3D reference frame. Spatial information of objects and their propertiescan be defined with respect to coordinate systems.",
"properties": {
"children": {
"description": "List of children of this coordinate system.",
"items": {
"description": "This is the string UID of this child coordinate system.",
"type": "string"
},
"type": "array"
},
"parent": {
"description": "This is the string UID of the parent coordinate system this coordinate system is refered to.",
"type": "string"
},
"pose_wrt_parent": {
"$ref": "#/definitions/transform_data"
},
"type": {
"description": "This is a string that describes the type of the coordinate system (e.g. \"local\", \"geo\").",
"type": "string"
}
},
"required": [
"type",
"parent"
]
},
"coordinate_systems": {
"additionalProperties": false,
"description": "This is a JSON object which contains OpenLABEL coordinate systems. Coordinate system keys can be any string (e.g. friendly coordinate system name).",
"patternProperties": {
"^": {
"$ref": "#/definitions/coordinate_system"
}
},
"type": "object"
},
"cuboid": {
"additionalProperties": true,
"description": "A cuboid or 3D bounding box. It is defined by the position of its center, the rotation in 3D, and its dimensions.",
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
},
"coordinate_system": {
"description": "Name of the coordinate system this object data is expressed with respect to.",
"type": "string"
},
"name": {
"description": "This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.",
"type": "string"
},
"val": {
"oneOf": [
{
"description": "List of values encoding the position, rotation and dimensions. Two options are supported, using 9 or 10 values. If 9 values are used, the format is (x, y, z, rx, ry, rz, sx, sy, sz), where (x, y, z) encodes the position, (rx, ry, rz) encodes the Euler angles that encode the rotation, and (sx, sy, sz) are the dimensions of the cuboid in its object coordinate system. If 10 values are used, then the format is (x, y, z, qx, qy, qz, qw, sx, sy, sz) with the only difference of the rotation values which are the 4 values of a quaternion.",
"items": {
"type": "number"
},
"maxItems": 10,
"minItems": 9,
"type": "array"
},
{
"type": "null"
}
]
}
},
"required": [
"name",
"val"
],
"type": "object"
},
"element_data_pointer": {
"description": "This item contains pointers to element data of elements, indexed by \"name\", and containing information about the element data type (e.g. bounding box, cuboid) and the frame intervalsin which this element_data exists within an element. As a consequence, these pointers can be used to explore element data dynamic information within the JSON content.",
"properties": {
"attribute_pointers": {
"description": "This is a JSON object which contains pointers to the attributes of the element data pointed by this pointer. The attribute pointers keys shall be the \"name\" of the attribute of the element data this pointer points to.",
"patternProperties": {
"^": {
"description": "The attribute pointer values are strings which define the type of the attribute.",
"enum": [
"num",
"text",
"boolean",
"vec"
],
"type": "string"
}
},
"type": "object"
},
"frame_intervals": {
"description": "List of frame intervals of the element data pointed by this pointer",
"items": {
"$ref": "#/definitions/frame_interval"
},
"type": "array"
},
"type": {
"description": "Type of the element data pointed by this pointer.",
"enum": [
"bbox",
"rbbox",
"num",
"text",
"boolean",
"poly2d",
"poly3d",
"cuboid",
"image",
"mat",
"binary",
"point2d",
"point3d",
"vec",
"line_reference",
"area_reference",
"mesh"
],
"type": "string"
}
},
"required": [
"frame_intervals"
],
"type": "object"
},
"element_data_pointers": {
"additionalProperties": false,
"description": "This is a JSON object which contains OpenLABEL element data pointers. Element data pointer keys shall be the \"name\" of the element data this pointer points to.",
"patternProperties": {
"^": {
"$ref": "#/definitions/element_data_pointer"
}
},
"type": "object"
},
"event": {
"additionalProperties": false,
"description": "An event is an instantaneous situation that happens without a temporal interval. Events complement Actions providing a mechanism to specify triggers or to connect actions and objects with causality relations.",
"properties": {
"event_data": {
"$ref": "#/definitions/event_data"
},
"event_data_pointers": {
"$ref": "#/definitions/element_data_pointers"
},
"frame_intervals": {
"description": "The array of frame intervals where this event exists or is defined. Note that events are thought to be instantaneous, therefore usually they will be defined for a single frame interval where the starting and ending frames are the same.",
"items": {
"$ref": "#/definitions/frame_interval"
},
"type": "array"
},
"name": {
"description": "Name of the event (it is a friendly name, not used for indexing).",
"type": "string"
},
"ontology_uid": {
"description": "This is the UID of the ontology where the type of this event is defined.",
"type": "string"
},
"resource_uid": {
"$ref": "#/definitions/resource_uid"
},
"type": {
"description": "The type of an event defines the class the event corresponds to.",
"type": "string"
}
},
"required": [
"name",
"type"
],
"type": "object"
},
"event_data": {
"additionalProperties": false,
"description": "Additional data to describe attributes of the event.",
"properties": {
"boolean": {
"description": "List of \"boolean\" that describe this event.",
"items": {
"$ref": "#/definitions/boolean"
},
"type": "array"
},
"num": {
"description": "List of \"num\" that describe this event.",
"items": {
"$ref": "#/definitions/num"
},
"type": "array"
},
"text": {
"description": "List of \"text\" that describe this event.",
"items": {
"$ref": "#/definitions/text"
},
"type": "array"
},
"vec": {
"description": "List of \"vec\" that describe this event.",
"items": {
"$ref": "#/definitions/vec"
},
"type": "array"
}
},
"type": "object"
},
"frame": {
"additionalProperties": false,
"description": "A frame is a container of dynamic (time-wise) information.",
"properties": {
"actions": {
"additionalProperties": false,
"description": "This is a JSON object that contains dynamic information of OpenLABEL actions. Action keys are strings containing numerical UIDs or 32 bytes UUIDs. Action values may contain an \"action_data\" JSON object.",
"patternProperties": {
"^(-?[0-9]+|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$": {
"additionalProperties": false,
"properties": {
"action_data": {
"$ref": "#/definitions/action_data"
}
},
"type": "object"
}
},
"type": "object"
},
"contexts": {
"additionalProperties": false,
"description": "This is a JSON object that contains dynamic information of OpenLABEL contexts. Context keys are strings containing numerical UIDs or 32 bytes UUIDs. Context values may contain an \"context_data\" JSON object.",
"patternProperties": {
"^(-?[0-9]+|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$": {
"additionalProperties": false,
"properties": {
"context_data": {
"$ref": "#/definitions/context_data"
}
},
"type": "object"
}
},
"type": "object"
},
"events": {
"additionalProperties": false,
"description": "This is a JSON object that contains dynamic information of OpenLABEL events. Event keys are strings containing numerical UIDs or 32 bytes UUIDs. Event values may contain an \"event_data\" JSON object.",
"patternProperties": {
"^(-?[0-9]+|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$": {
"additionalProperties": false,
"properties": {
"event_data": {
"$ref": "#/definitions/event_data"
}
},
"type": "object"
}
},
"type": "object"
},
"frame_properties": {
"additionalProperties": true,
"description": "This is a JSON object which contains information about this frame.",
"properties": {
"streams": {
"additionalProperties": false,
"description": "Streams is a JSON object which contains OpenLABEL streams, with specific information for this frame. Stream keys can be any string (e.g. friendly stream name).",
"patternProperties": {
"^": {
"$ref": "#/definitions/stream"
}
},
"type": "object"
},
"timestamp": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "The timestamp indicates a time instant as a string or numerical value to describe this frame."
},
"transforms": {
"additionalProperties": false,
"description": "Transforms is a JSON object which contains OpenLABEL transforms specific for this frame. Transform keys can be any string (e.g. friendly name of a transform).",
"patternProperties": {
"^": {
"$ref": "#/definitions/transform"
}
},
"type": "object"
}
},
"type": "object"
},
"objects": {
"additionalProperties": false,
"description": "This is a JSON object that contains dynamic information of OpenLABEL objects. Object keys are strings containing numerical UIDs or 32 bytes UUIDs. Object values may contain an \"object_data\" JSON object.",
"patternProperties": {
"^(-?[0-9]+|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$": {
"additionalProperties": false,
"properties": {
"object_data": {
"$ref": "#/definitions/object_data"
}
},
"type": "object"
}
},
"type": "object"
},
"relations": {
"additionalProperties": false,
"description": "This is a JSON object that contains dynamic information of OpenLABEL relations. Relation keys are strings containing numerical UIDs or 32 bytes UUIDs. Relation values are empty. The presence of a key-value relation pair indicates the specified relation exists in this frame.",
"patternProperties": {
"^(-?[0-9]+|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$": {}
},
"type": "object"
}
},
"type": "object"
},
"frame_interval": {
"additionalProperties": false,
"description": "A frame interval defines an starting and ending frame number, as a closed interval (i.e. the interval includes the limit frame numbers).",
"properties": {
"frame_end": {
"description": "Ending frame number of the interval.",
"type": "integer"
},
"frame_start": {
"description": "Initial frame number of the interval.",
"type": "integer"
}
},
"type": "object"
},
"image": {
"additionalProperties": true,
"description": "An image.",
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
},
"coordinate_system": {
"description": "Name of the coordinate system this object data is expressed with respect to.",
"type": "string"
},
"encoding": {
"description": "This is a string that declares the encoding type of the bytes for this image, e.g. \"base64\".",
"type": "string"
},
"mime_type": {
"description": "This is a string that declares the MIME (Multipurpose internat Mail Extensions) of the image, e.g. \"image/gif\".",
"type": "string"
},
"name": {
"description": "This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.",
"type": "string"
},
"val": {
"description": "A string with the encoded bytes of this image.",
"type": "string"
}
},
"required": [
"name",
"val",
"mime_type",
"encoding"
],
"type": "object"
},
"line_reference": {
"additionalProperties": true,
"description": "A line reference is a JSON object which defines a 3D line segment by means of defining the indexes of its two extreme points.",
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
},
"name": {
"description": "This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.",
"type": "string"
},
"reference_type": {
"type": "string"
},
"val": {
"items": {
"type": "number"
},
"maxItems": 2,
"minItems": 2,
"type": "array"
}
},
"type": "object"
},
"mat": {
"additionalProperties": true,
"description": "A matrix.",
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
},
"channels": {
"description": "Number of channels of the matrix.",
"type": "number"
},
"coordinate_system": {
"description": "Name of the coordinate system this object data is expressed with respect to.",
"type": "string"
},
"data_type": {
"description": "This is a string that declares the type of the numerical values of the matrix, e.g. \"float\".",
"type": "string"
},
"height": {
"description": "Height of the matrix (number of rows).",
"type": "number"
},
"name": {
"description": "This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.",
"type": "string"
},
"val": {
"description": "Flattened list of values of the matrix.",
"items": {
"type": "number"
},
"type": "array"
},
"width": {
"description": "Width of the matrix (number of columns).",
"type": "number"
}
},
"required": [
"name",
"val",
"channels",
"width",
"height",
"data_type"
],
"type": "object"
},
"mesh": {
"additionalProperties": true,
"description": "A mesh encodes a point-line-area structure. It is intended to represent flat 3D meshes, such as several connected parking lots, where points, lines and areas composing the mesh are interrelated, and can have their own properties.",
"properties": {
"area_reference": {
"additionalProperties": false,
"description": "This is the JSON object for the areas defined for this mesh. Area keys are strings containing numerical UIDs.",
"patternProperties": {
"^[0-9]+$": {
"$ref": "#/definitions/area_reference"
}
},
"type": "object"
},
"coordinate_system": {
"description": "Name of the coordinate system this object data is expressed with respect to.",
"type": "string"
},
"line_reference": {
"additionalProperties": false,
"description": "This is the JSON object for the 3D lines defined for this mesh. Line reference keys are strings containing numerical UIDs.",
"patternProperties": {
"^[0-9]+$": {
"$ref": "#/definitions/line_reference"
}
},
"type": "object"
},
"name": {
"description": "This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.",
"type": "string"
},
"point3d": {
"additionalProperties": false,
"description": "This is the JSON object for the 3D points defined for this mesh. Point3d keys are strings containing numerical UIDs.",
"patternProperties": {
"^[0-9]+$": {
"$ref": "#/definitions/point3d"
}
},
"type": "object"
}
},
"type": "object"
},
"metadata": {
"additionalProperties": true,
"description": "This JSON object contains information (metadata) about the annotation file itself including the schema_version, file_version, annotator, etc.",
"properties": {
"annotator": {
"description": "Name or description of the annotator that created the annotations.",
"type": "string"
},
"comment": {
"description": "Additional information or description about the annotation content.",
"type": "string"
},
"file_version": {
"description": "Version number of the OpenLABEL annotation content.",
"type": "string"
},
"name": {
"description": "Name of the OpenLABEL annotation content.",
"type": "string"
},
"schema_version": {
"description": "Version number of the OpenLABEL schema this annotation JSON object follows.",
"enum": [
"1.0.0"
],
"type": "string"
}
},
"required": [
"schema_version"
],
"type": "object"
},
"num": {
"additionalProperties": true,
"description": "A number.",
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
},
"coordinate_system": {
"description": "Name of the coordinate system this object data is expressed with respect to.",
"type": "string"
},
"name": {
"description": "This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.",
"type": "string"
},
"type": {
"description": "This attribute specifies whether the number shall be considered as a value, a minimum or a maximum in its context.",
"enum": [
"value",
"min",
"max"
],
"type": "string"
},
"val": {
"description": "The numerical value of the number.",
"type": "number"
}
},
"required": [
"val"
],
"type": "object"
},
"object": {
"additionalProperties": false,
"description": "An object is the main type of annotation element, and is designed to represent spatio-temporal entities, such as physical objects in the real world. Objects must have a name and type.Objects can have static and dynamic data. Objects are the only type of elements that can have geometric data, such as bounding boxes, cuboids, polylines, images, etc.",
"properties": {
"coordinate_system": {
"description": "This is the string key of the coordinate system this object is referenced with respect to.",
"type": "string"
},
"frame_intervals": {
"description": "The array of frame intervals where this object exists or is defined.",
"items": {
"$ref": "#/definitions/frame_interval"
},
"type": "array"
},
"name": {
"description": "Name of the object (it is a friendly name, not used for indexing).",
"type": "string"
},
"object_data": {
"$ref": "#/definitions/object_data"
},
"object_data_pointers": {
"$ref": "#/definitions/element_data_pointers"
},
"ontology_uid": {
"description": "This is the UID of the ontology where the type of this object is defined.",
"type": "string"
},
"resource_uid": {
"$ref": "#/definitions/resource_uid"
},
"type": {
"description": "The type of an object defines the class the object corresponds to.",
"type": "string"
}
},
"required": [
"name",
"type"
],
"type": "object"
},
"object_data": {
"additionalProperties": false,
"description": "Additional data to describe attributes of the object.",
"properties": {
"area_reference": {
"description": "List of \"area_reference\" that describe this object.",
"items": {
"$ref": "#/definitions/area_reference"
},
"type": "array"
},
"bbox": {
"description": "List of \"bbox\" that describe this object.",
"items": {
"$ref": "#/definitions/bbox"
},
"type": "array"
},
"binary": {
"description": "List of \"binary\" that describe this object.",
"items": {
"$ref": "#/definitions/binary"
},
"type": "array"
},
"boolean": {
"description": "List of \"boolean\" that describe this object.",
"items": {
"$ref": "#/definitions/boolean"
},
"type": "array"
},
"cuboid": {
"description": "List of \"cuboid\" that describe this object.",
"items": {
"$ref": "#/definitions/cuboid"
},
"type": "array"
},
"image": {
"description": "List of \"image\" that describe this object.",
"items": {
"$ref": "#/definitions/image"
},
"type": "array"
},
"line_reference": {
"description": "List of \"line_reference\" that describe this object.",
"items": {
"$ref": "#/definitions/line_reference"
},
"type": "array"
},
"mat": {
"description": "List of \"mat\" that describe this object.",
"items": {
"$ref": "#/definitions/mat"
},
"type": "array"
},
"mesh": {
"description": "List of \"mesh\" that describe this object.",
"items": {
"$ref": "#/definitions/mesh"
},
"type": "array"
},
"num": {
"description": "List of \"num\" that describe this object.",
"items": {
"$ref": "#/definitions/num"
},
"type": "array"
},
"point2d": {
"description": "List of \"point2d\" that describe this object.",
"items": {
"$ref": "#/definitions/point2d"
},
"type": "array"
},
"point3d": {
"description": "List of \"point3d\" that describe this object.",