raillabel_providerkit.validation.validate_onthology package¶
Submodules¶
raillabel_providerkit.validation.validate_onthology.validate_onthology module¶
- raillabel_providerkit.validation.validate_onthology.validate_onthology.validate_onthology(scene: Scene, onthology: dict | Path) list[str] ¶
Validate a scene based on the classes and attributes.
- Parameters:
scene (raillabel.Scene) – The scene containing the annotations.
onthology (dict or Path) – Onthology YAML-data or file containing a information about all classes and their attributes. The onthology must adhere to the onthology_schema. If a path is provided, the file is loaded as a YAML.
- Returns:
list of all onthology errors in the scene. If an empty list is returned, then there are no errors present.
- Return type:
Module contents¶
Package for validating a scene via an onthology.