Skip to main content

Introduction

Waymo sample

Tri3D provides a library to manipulate various 3D driving datasets under a unified API with common conventions.

It aims to address the following objectives:

  • Make datasets interchangeable.
  • Enforce common coordinate and data format convention.
  • Provide fast non-sequential access to samples at any given frame.
  • Simplify geometric transformations between sensors and timestamps.

As of now, Tri3D supports the following datasets:

The documentation is hosted at: https://cea-list.github.io/tri3d/

Conventions

The following conventions are adopted across all datasets :

  • An object position designates the center of its bounding box.
  • In the local coordinate system of an object, the x axis points forward, y leftward, and z updward.
  • Length, width and height are the dimensions of the object along x, y and z axes respectively.
  • In camera sensor coordinates, x points rightward, y points downward, z point forward.
  • In image coordinates, x is the pixel column index starting from the left, y is the pixel row index starting from the top, z is the depth in meters along the optical axis.
  • In lidar coordinates, x points in the same direction as the ego car, y points leftward, z points upward.

The differences with raw dataset conventions are documented in each datasets class.

Coordinates convention

Tri3D accounts for timestamps, delays and the movement of the ego car which carries the sensors. For examples, if the boxes of a given dataset are annotated at the timestamps of the LiDAR, retrieving the boxes relative to a camera sensor (ex: boxes(seq=0, frame=5, sensor="cam")) will interpolate the box trajectories at the timestamp of frame 5 for the camera, and it will also return the object poses relatively to the position of that camera at this timestamp.

Sensor timelines and track interpolation

Dataset API

All datasets implement a common interface which provides access to data samples such as:

  • Sensor frames.
  • Acquisition timestamps.
  • Sensor poses.
  • Camera images.
  • Lidar point clouds.
  • 3D box annotations.

Moreover, a powerful .alignment() function can compute the geometric transformation between any pair of frame and sensors coordinates. The tutorial notebook goes through most of these functions.

Tri3D datasets are somewhat low-level, ie. they do not enforce the notion of sweep or keyframe where a sample of each sensor around a timestamp is assembled in a tuple. Instead, datasets expose all available samples of each sensor indexed by a per-sensor frame index. Notably, some sensors may work at a higher frequency and contain more samples than others for a given recording.

When available, keyframes and timestamps are exposed so that coherent tuples of samples can be rebuilt easily. Moreover, geometric transformations and pose interpolation functions are provided to facilitate the creation of new keyframes.

Geometric transformations

Tri3D provides a module which facilitates the creation and manipulation of typical 3D geometric transformations: translation, rotation, affine, camera projections, pose interpolation.

Transformations have a shared interface which supports:

  • Batching: list of transformations can be grouped together, and broadcasting rules are supported.
  • Application to 3D points: applying the transformations to points, again, boadcasting rules are implemented.
  • Composition: it is possible to chain transformation together.
  • Inversion: the inverse of a transformation is readily available.

Object and sensor poses

In Tri3D, the position and orientation of objects (or sensors) in a coordinate system are stored as geometric transformation. For instance, the pose of a camera in a lidar coordinate system is formulated as the composition of the camera rotation and translation relative to the lidar. Coincidently, this is also the geometric transformation which takes points in the camera coordinate system and returns them in the lidar coordinate system.

For sensors, the sensor poses are accessible via the .poses() method. For object annotations, it is provided by the Box.transform attribute.

For example, if we have the pose of a box in lidar coordinates and the pose of the lidar in camera coordinates, then the position of a point 10 meters in front of that box is given by:

seq = 0
frame = 4

# retrieve poses
box = dataset.boxes(seq, frame, coords="lidar")[0]
box2lidar = box.transform
lidar2cam = dataset.poses(seq, sensor="camera", coords="lidar")[frame]

# compute the position of a point 10m in front of the box, in camera coordinates.
xyz = (lidar2cam @ box2lidar).apply([10., 0, 0])

Metadata

Release files for tri3d 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tri3d 0.2.3
File Size Uploaded Provenance Actions
tri3d-0.2.3.tar.gz 677.5 kB With provenance Details for tri3d-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tri3d 0.2.3
File Interpreter ABI Platform Actions
tri3d-0.2.3-py3-none-any.whl Python 3 none any Details for tri3d-0.2.3-py3-none-any.whl

Total release size: 729.2 kB

Release files / tri3d-0.2.3.tar.gz

Download URL tri3d-0.2.3.tar.gz
Size 677.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a7323949ab40eebeb2aa3fd74a48903a6fde128ae0aff2591d852366bcd64601
BLAKE2b-256 checksum
How to use checksums
900949df2ce9c59c66139bd3c4c095b183eddd8c0dbf7e28c47928382aa35838
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / tri3d-0.2.3-py3-none-any.whl

Download URL tri3d-0.2.3-py3-none-any.whl
Size 51.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db1395f4778fffb4ac03b0a484e998fc5696b54dbc3731f8be9bc850b1664c18
BLAKE2b-256 checksum
How to use checksums
d61d839ec8777b6b4d4961ffa14ac215cd04038bf76a2304c68ef99a7753ba7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for tri3d 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tri3d-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page