raillabel.format.metadata module

class raillabel.format.metadata.Metadata(schema_version: str, annotator: str | None = None, comment: str | None = None, exporter_version: str | None = None, file_version: str | None = None, name: str | None = None, subschema_version: str | None = None, tagged_file: str | None = None)

Bases: object

Container for metadata information about the scene itself.

annotator: str | None = None

Name or description of the annotator that created the annotations.

comment: str | None = None

Additional information or description about the annotation content.

exporter_version: str | None = None

Version of the raillabel-devkit, that last exported the scene.

file_version: str | None = None

Version number of the raillabel annotation content.

classmethod from_json(json: JSONMetadata) Metadata

Construct an instant of this class from RailLabel JSON data.

name: str | None = None

Name of the raillabel annotation content.

schema_version: str

Version number of the OpenLABEL schema this annotation object follows.

subschema_version: str | None = None

Version number of the RailLabel schema this annotation object follows.

tagged_file: str | None = None

Directory with the exported data_dict (e.g. images, point clouds).

to_json() JSONMetadata

Export this object into the RailLabel JSON format.