Skip to main content

airo-camera-toolkit

This package contains code for working with RGB(D) cameras, images and point clouds.

Overview of the functionality and the structure:

airo-camera-toolkit/
├── calibration/                # hand-eye extrinsics calibration
├── cameras/                    # actual camera drivers
├── image_transformations/      # reversible geometric 2D transforms
├── pinhole_operations/         # 2D-3D operations
├── point_clouds/               # conversions and operations
├── utils/                      # a.o. annotation tool and converter
├── interfaces.py
└── cli.py

Installation

The airo_camera_toolkit package can be installed with pip by running (from this directory):

pip install .

This will already allow you to use the hardare-independent functionality of this package, e.g. image conversion and projection. Depending on the hardware you are using, you might need to complete additional installation. Instructions can be found in the following files:

Additionally, to ensure you have airo-robots installed for the hand-eye calibration, install the extra dependencies:

pip install .[hand-eye-calibration]

Getting started with cameras

Camera can be accessed by instantiating the corresponding class:, e.g. for a ZED camera:

from airo_camera_toolkit.cameras.zed import Zed
from airo_camera_toolkit.utils import ImageConverter
import cv2

camera = Zed(Zed.RESOLUTION_720, fps=30)

while True:
    camera.grab_images()
    image_rgb_float = camera.retrieve_rgb_image()
    image_bgr = ImageConverter.from_numpy_format(image_rgb_float).image_in_opencv_format
    cv2.imshow("Image", image_bgr)
    key = cv2.waitKey(10)
    if key == ord('q'):
        break

Capture and retrieval are explicit and decoupled: call grab_images() once to capture a frame, then any number of retrieve_* calls to read individual fields (RGB, depth, point cloud, ...) from that same frame. This is the supported way to get synchronized multi-modal data, e.g. an RGB image and depth map taken at the same instant:

camera.grab_images()  # Gets a new frame from the hardware at timestamp T.
rgb = camera.retrieve_rgb_image_as_int()  # Read the frame from timestamp T.
depth = camera.retrieve_depth_map()  # Read the frame from timestamp T.

Hand-eye calibration

Find the pose of a camera relative to a robot. In the calibration folder, run this to get started:

airo-camera-toolkit hand-eye-calibration --help

See calibration/README.md for more details.

Utils

Image format conversion

Camera by default return images as numpy 32-bit float RGB images with values between 0 to 1 through retrieve_rgb_image(). This is most convenient for subsequent processing, e.g. with neural networks. For higher performance, 8-bit unsigned integer RGB images are also accessible through retrieve_rgb_image_as_int().

However, when using OpenCV, you will need conversion to BGR format. For this you can use the ImageConverter class:

from airo_camera_toolkit.utils import ImageConverter

camera.grab_images()
image_rgb_int = camera.retrieve_rgb_image_as_int()
image_bgr = ImageConverter.from_numpy_int_format(image_rgb_int).image_in_opencv_format

Annotation tool

See annotation_tool.md for usage instructions.

Pinhole Operations

2D - 3D geometric operations using the pinhole model. See readme for more information.

Image Transforms

See the README in the image_transforms folder for more details.

Real-time visualisation

For realtime visualisation of robotics data we strongly encourage using rerun.io instead of manually hacking something together with opencv/pyqt/... No wrappers are needed here, just pip install the SDK. An example notebook to get to know this tool and its potential can be found here. See this README for more details.

Point clouds

See the tutorial notebook here for an introduction.

Multiprocessing

Camera processing can be computationally expensive. If this is a problem for your application, see multiprocess/README.md.

References

For more background on cameras, in particular on the meaning of intrinsics, extrinics, distortion coefficients, pinhole (and other) camera models, see:

Metadata

Release files for airo-camera-toolkit 2026.11.0

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

Source distribution (sdist)

Source distribution for airo-camera-toolkit 2026.11.0
File Size Uploaded Provenance Actions
airo_camera_toolkit-2026.11.0.tar.gz 70.9 kB With provenance Details for airo_camera_toolkit-2026.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for airo-camera-toolkit 2026.11.0
File Interpreter ABI Platform Actions
airo_camera_toolkit-2026.11.0-py3-none-any.whl Python 3 none any Details for airo_camera_toolkit-2026.11.0-py3-none-any.whl

Total release size: 158.2 kB

Release files / airo_camera_toolkit-2026.11.0.tar.gz

Download URL airo_camera_toolkit-2026.11.0.tar.gz
Size 70.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3534959f62fb58a95b14291f3fab5cc0ed1dfcf43a68b6740d69bc31c1d0da12
BLAKE2b-256 checksum
How to use checksums
76fe179a5f7deb50552c8d3343a764cc022760f6b755acc189994f64aea74738
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 27, 2026.

Transparency log

Release files / airo_camera_toolkit-2026.11.0-py3-none-any.whl

Download URL airo_camera_toolkit-2026.11.0-py3-none-any.whl
Size 87.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e34cb8bb13f27a1ff85064f5e5915ca7d25a58b8000ef730bb7e6468e809516f
BLAKE2b-256 checksum
How to use checksums
761255a341ccb5db66d9755b90ade368da686f691c56102dde7156ec2d23f690
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 27, 2026.

Transparency log

Security for airo-camera-toolkit 2026.11.0

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 airo_camera_toolkit-2026.11.0.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 27, 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