Raillabel

Latest version: v4.1.2

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

4.1.2

- fixed a bug where the `SceneBuilder` created an `Object` with the wrong type from the object name if the object name contained more than one underscore (for example `SceneBuilder.add_object(object_name="signal_bridge_0001")` created an object with type `signal` before where now it creates an object with the correct type `signal_bridge`)

4.1.1

- `Scene.filter()` now also removes unused sensors from `Frame.sensors`
- `SceneBuilder` now also automatically adds sensors to `Frame.sensor` if a frame has a timestamp value

4.1.0

- Add value arguments to `SceneBuilder.add_bbox()`, `SceneBuilder.add_cuboid()`, `SceneBuilder.add_poly2s()`, `SceneBuilder.add_poly3d()` and `SceneBuilder.add_seg3d()` like `SceneBuilder.add_bbox(pos=Point2d(1.0, 2.0))`

4.0.0

New Major changes to RailLabel! Over the time two major use cases for this package have crystalized. The first one are the users of the data sets published by Deutsche Bahn. The second one are the contractors providing the annotations. Since the two groups have vastly different requirements for this package, we decided to split it accordingly.

If you just want to work with out data, then you are in luck. You can just continue using this package with even more focus on your needs.

If you are building raillabel scenes yourself or want to manipulate the data in a safe way, then the [raillabel_providerkit](https://github.com/DSD-DBS/raillabel-providerkit) is for you. All functionality you may be missing in this new raillabel version will be provided over there with even better APIs.

Functionality, that has been **moved** to the `raillabel_providerkit`:
- loading annotations in formats other than raillabel itself
- validating the content of files

Other breaking changes:
- the `fromdict()` and `asdict()` methods in `raillabel.format` classes have been replaced with `from_json()` and `to_json` respectively
- `raillabel.format.FrameInterval` fields have been changed by `frame_start -> start` and `frame_end -> end` to make it more concise
- all uid fields of classes have been removed (like `raillabel.format.Frame.uid`) have been removed to avoid redundant information
- `raillabel.format.Sensor` has been removed in favor of the different sensor type classes `raillabel.format.Camera`, `raillabel.format.Lidar`, `raillabel.format.Radar` and `raillabel.format.GpsImu`
- `raillabel.filter()` has been removed in favor of `raillabel.Scene.filter()` with different input arguments

New features:
- `raillabel.json_format` has been introduced as an interface between the JSON format and the `raillabel` classes
- `raillabel.scene_builder.SceneBuilder` is now available to easily build scenes for testing purposes

3.3.1

- Add DeprecationWarnings for all functionalities, that have changed in 4.0.0

3.3.0

- Introduce support for Python 3.13

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.