> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.stereolabs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.stereolabs.com/_mcp/server.

# Depth Origin

> Position of the depth origin of the ZED X, ZED X Mini, ZED X Nano and ZED 2i, per lens option, measured from the bottom 1/4"-20 UNC camera mounting thread.

The depth map, the point cloud, ZED SLAM and every other 3D output of the ZED SDK are expressed relative to one point inside the camera: the **depth origin**. This point is not on the front face of the camera, so a depth of zero does not correspond to the front face. Its position changes with the camera model and the lens option.

You need its position to:

* Place the camera in your robot description (URDF, CAD model, TF tree).
* Compare ZED depth with a ground truth measured with a tape measure, a laser rangefinder or another sensor.
* Initialize a hand-eye or camera-to-robot calibration with a good first estimate.

This page gives the position of the depth origin of the ZED X, ZED X Mini, ZED X Nano and ZED 2i, measured from the **center of the bottom mounting thread**.

## What is the depth origin

The depth origin is the center of the **entrance pupil** of the lens of the *left camera* (left eye) of the stereo pair. Left is defined as seen from behind the camera, looking forward.

The entrance pupil is the image of the lens aperture seen from the front of the lens. The rays coming from the scene are directed toward its center when they enter the lens, so this center is the point from which the camera sees the scene and from which the ZED SDK computes distances. On ZED cameras, it sits inside the lens, close to its front element, about 3 to 5 mm behind the front glass of the camera. It is not located at the image sensor.

In practice:

* The depth of a pixel of the depth map is the depth of the point seen by that pixel of the left image.
* The X, Y and Z coordinates of the point cloud start from the depth origin.
* The *Camera Frame* of [Positional Tracking](/docs/development/zed-sdk/modules/positional-tracking/coordinate-frames#camera-frame) uses the same origin, and so do the 3D positions returned by Object Detection and Body Tracking when they are expressed in the camera reference frame (`REFERENCE_FRAME::CAMERA`).

The axes of the frame at the depth origin follow the [coordinate system](/docs/development/zed-sdk/modules/positional-tracking/coordinate-frames#selecting-a-coordinate-system) selected in `InitParameters`. With the default `IMAGE` coordinate system, X points to the right, Y points down and Z points forward, away from the camera.

## How to read the offsets

Each offset gives the position of the depth origin relative to the **mounting point**: the center of the bottom 1/4"-20 UNC mounting thread, on the bottom face of the camera. This is where a tripod or a standard camera mount screws in.

The X, Y and Z offsets are given, with the camera upright, in a frame attached to the mounting point. This frame follows the ROS convention:

| Offset                 | Direction                                                 | Meaning                                                                                    |
| :--------------------- | :-------------------------------------------------------- | :----------------------------------------------------------------------------------------- |
| **X**                  | Forward, toward the scene                                 | Distance along the optical axis between the thread axis and the depth origin               |
| **Y**                  | Left, toward the left camera, seen from behind the camera | Horizontal distance between the thread axis and the depth origin                           |
| **Z**                  | Up, toward the top of the camera                          | Height of the depth origin above the bottom face                                           |
| **Behind front glass** | Backward, away from the scene                             | Distance along the optical axis between the front glass of the camera and the depth origin |

This frame is fixed to the camera body: it does not depend on the coordinate system selected in the ZED SDK. All values are in millimeters.

> **Info**
>
> * **X** is measured on a test bench, with a precision of about 1 mm.
> * **Behind front glass** is computed from the position of the front glass in the mechanical design and the measured X.
> * **Y** and **Z** are design values from the mechanical model of the camera. Y is half the baseline.
>
> The position of the depth origin can differ slightly from one camera to another. When you need sub-millimeter accuracy, refine the camera position with a hand-eye calibration, using these values as the starting point.

## Depth origin per camera

| Camera     | Lens   | X (mm) | Y (mm) | Z (mm) | Behind front glass (mm) |
| :--------- | :----- | -----: | -----: | -----: | ----------------------: |
| ZED X      | Wide   |   12.2 |   60.0 |   16.0 |                     3.3 |
| ZED X      | Narrow |   11.1 |   60.0 |   16.0 |                     4.4 |
| ZED X Mini | Wide   |   10.4 |   25.0 |   16.0 |                     5.1 |
| ZED X Mini | Narrow |   10.9 |   25.0 |   16.0 |                     4.6 |
| ZED X Nano | Fixed  |    9.6 |    9.0 |  15.25 |                     3.2 |
| ZED 2i     | Wide   |   18.2 |   60.0 |   15.0 |                     3.0 |

The ZED 2i narrow lens is not measured yet. The ZED Mini has no 1/4"-20 thread, so it is not covered by this page.

### ZED X, ZED X Mini and ZED X Nano

#### ZED X - Wide lens

![ZED X wide lens depth origin](/_fern-files/stereolabs.docs.buildwithfern.com/2c28237d71ef46d932b6cda5cc21d32ad96d73172adb9d0252dc693ccb4cb3fb/docs/development/zed-sdk/modules/depth-sensing/images/depth-origin/zed-x-wide.svg)

Behind front glass: 3.3 mm.

#### ZED X - Narrow lens

![ZED X narrow lens depth origin](/_fern-files/stereolabs.docs.buildwithfern.com/0b6d0315856ecd1ddfab906ef810174acb006e77e8a8397e3e8c22bc276a8487/docs/development/zed-sdk/modules/depth-sensing/images/depth-origin/zed-x-narrow.svg)

Behind front glass: 4.4 mm.

#### ZED X Mini - Wide lens

![ZED X Mini wide lens depth origin](/_fern-files/stereolabs.docs.buildwithfern.com/2677baaa46721877684a00347ba14eed9aea71e0b3148fc6c9d875d3b0743a78/docs/development/zed-sdk/modules/depth-sensing/images/depth-origin/zed-x-mini-wide.svg)

Behind front glass: 5.1 mm.

#### ZED X Mini - Narrow lens

![ZED X Mini narrow lens depth origin](/_fern-files/stereolabs.docs.buildwithfern.com/fb77409d544bb19791cc196785e35eacc8da710c10e79334d9b5015d76ce80a7/docs/development/zed-sdk/modules/depth-sensing/images/depth-origin/zed-x-mini-narrow.svg)

Behind front glass: 4.6 mm.

#### ZED X Nano

![ZED X Nano depth origin](/_fern-files/stereolabs.docs.buildwithfern.com/c8a940186ac40ed75348982e9b869f88a590cef21b424572b9788c6eb7da1189/docs/development/zed-sdk/modules/depth-sensing/images/depth-origin/zed-x-nano.svg)

Behind front glass: 3.2 mm.

### ZED 2i

![ZED 2i wide lens depth origin](/_fern-files/stereolabs.docs.buildwithfern.com/b4c778a43cedec6717f7161a95e9a67f0e69120e2ea9e2574fc4f42e70b4040a/docs/development/zed-sdk/modules/depth-sensing/images/depth-origin/zed-2i-wide.svg)

Behind front glass: 3.0 mm (wide lens).

### ZED X One and ZED X One Core stereo rigs

A stereo rig built from two [ZED X One](/docs/products/cameras/zedxone/dual-camera-stereo-vision) or two [ZED X One Core](/docs/products/cameras/zedxone-core/dual-camera-stereo-vision) cameras follows the same rule: the depth origin is on the **left camera**. Its position depends on how you mount the two cameras, so there is no fixed offset for these rigs.

To place the depth origin in your rig:

1. Locate the left camera in your mechanical design, for example on the [Dual Camera Mount](/docs/products/accessories/camera-mounts/zed-x-one-dual-mount).
2. Use the technical drawings of the [ZED X One](/docs/products/cameras/zedxone/specifications#technical-drawings) or the [ZED X One Core](/docs/products/cameras/zedxone-core/specifications#technical-drawings) to estimate the position of its lens relative to your mount.
3. Check the result against the baseline measured by the [stereo calibration](/docs/products/cameras/zedxone/dual-camera-stereo-vision#calibrate-the-custom-stereo-rig) of the rig.

## Using the offsets

### In a robot description

In a robot description, place the depth origin at (X, Y, Z) from the mounting point, with no rotation.

The [ZED ROS 2 wrapper](/docs/integrations/ros-2/zed-stereo-node#transform-frames) uses the same two points: `<camera_name>_camera_link` is the mounting thread and `<camera_name>_left_camera_frame` is the depth origin. The transform between them goes through `<camera_name>_camera_center`: the first part comes from the URDF of the [`zed_description`](/docs/integrations/ros-2/zed-description) package, and the node publishes the second part.

> **Warning**
>
> The ZED ROS 2 wrapper up to v5.6 and `zed_description` up to v0.2 place `<camera_name>_left_camera_frame` at a nominal X offset (3.5 to 5 mm behind the thread axis) that does not match the measured values on this page. When you need an accurate position of the depth origin in your TF tree, use the values of this page.
>
> The ZED ROS 2 wrapper v5.7 and `zed_description` v0.3.0, available in the ROS 2 binaries, use the measured values. With a ZED X or ZED X Mini narrow lens, add `camera_lens:=narrow` to the launch command.

In the default `IMAGE` coordinate system of the ZED SDK, the mounting thread is at the following position relative to the depth origin. Lowercase x, y and z are the axes of the ZED SDK (x right, y down, z forward). Uppercase X, Y and Z are the offsets of your camera in the table above:

```text
x = +Y
y = +Z
z = -X
```

Apply this translation, in the `coordinate_units` set in `InitParameters`, to express ZED SDK poses and 3D positions relative to the mounting point, as described in [Frame Transforms](/docs/development/zed-sdk/modules/positional-tracking/coordinate-frames#frame-transforms).

### Comparing with a ground truth

When you measure the distance to a target from the front glass of the camera, with a tape measure or a laser rangefinder, add the **Behind front glass** offset of your camera to get the ZED depth:

```text
ZED depth = distance measured from the front glass + Behind front glass offset
```

Use a flat target perpendicular to the optical axis, such as a wall facing the camera, so that the depth is the same across the whole target. The ZED depth is a Z distance, along the optical axis: it is not comparable with a straight-line distance measured to a tilted target or to a point away from the optical axis.

### Other transforms from the ZED SDK

The ZED SDK does not report the position of the mounting thread, but it provides the transforms between the depth origin and the other sensors of the camera. Their translations are expressed in the `coordinate_system` and `coordinate_units` set in `InitParameters`:

**`C++`**

```cpp C++
sl::CameraInformation info = zed.getCameraInformation();
// Transform from the left camera (depth origin) to the right camera
sl::Transform left_to_right = info.camera_configuration.calibration_parameters.stereo_transform;
// Transform from the IMU to the left camera (depth origin)
sl::Transform camera_imu = info.sensors_configuration.camera_imu_transform;
```

**`Python`**

```python Python
info = zed.get_camera_information()
# Transform from the left camera (depth origin) to the right camera
left_to_right = info.camera_configuration.calibration_parameters.stereo_transform
# Transform from the IMU to the left camera (depth origin)
camera_imu = info.sensors_configuration.camera_imu_transform
```

These values come from the calibration of your camera. `stereo_transform` is the transform between the rectified left and right images; its translation is the baseline. For the raw stereo extrinsics, use `calibration_parameters_raw` instead, as described in [Camera Calibration](/docs/development/zed-sdk/modules/camera/camera-calibration).