raillabel.format.object module¶
- class raillabel.format.object.Object(name: str, type: str)¶
Bases:
object
Physical, unique object in the data, that can be tracked via its UID.
- classmethod from_json(json: JSONObject) Object ¶
Construct an instant of this class from RailLabel JSON data.
- name: str¶
Name of the object. It is a friendly name and not used for indexing. Commonly the class name is used followed by an underscore and an integer (i.e. person_0032).
- to_json(object_id: UUID, frames: dict[int, Frame]) JSONObject ¶
Export this object into the RailLabel JSON format.