Time-of-flight camera: how light travel time becomes freight dimensions

How it works, its limits and the path to the point cloud

Request a demo

A time-of-flight camera (ToF camera) measures for each pixel how long light takes to reach the object and come back. This produces a depth image of the whole scene, and from the depth image the software reconstructs the freight as a point cloud: length, width, height and volume.

All MetriX­Freight systems measure with time-of-flight. This page explains the principle, the typical disturbances and how we deal with them.

Straight to trying it out

Design

What is inside a time-of-flight camera

At its core, a time-of-flight camera consists of three parts: an infrared illumination, a lens and an image sensor whose pixels evaluate not only brightness but also the travel time of the light.

In the design that MetriX­Freight uses, this evaluation takes place directly in the pixel. Each pixel delivers its own distance, the camera stays compact, and the data can be processed quickly.

Time-of-flight principle in side view: a sensor on the ceiling sends modulated infrared light onto a carton on a Euro pallet, the light comes back, and the travel time gives the distance d

Two ways to measure travel time

Direct time-of-flight sends short light pulses and stops the clock until they come back. LiDAR sensors work this way. Because light travels only around thirty centimetres in a nanosecond, this needs extremely fast electronics.

Indirect time-of-flight modulates the light, so it gets brighter and darker very quickly. The camera compares the emitted wave with the returning wave. The further away the object is, the more the returning wave is shifted. From this phase shift, the camera calculates the distance. MetriX­Freight works with indirect time-of-flight.

Try it yourself

Modulation frequency
Camera Object
Phase shift
144°
Measured distance
3 m
Unambiguous range
7.49 m

The object is inside the unambiguous range: the phase shift gives the distance without doubt.

Distance = speed of light × phase shift ÷ (4π × modulation frequency)
Unambiguous range = speed of light ÷ (2 × modulation frequency)
Example values for illustration, not the values of our sensors.

The unambiguous range

A wave repeats. If an object is so far away that the shift exceeds one full wave, the phase starts again from the beginning, and the camera reads a distance that is too short. How far a camera measures unambiguously therefore depends on the modulation frequency: the higher the frequency, the finer the measurement, but the shorter the unambiguous range.

The solution is to combine several modulation frequencies. Each has its own unambiguous range, and the true distance is the one at which all of them agree. This way, the camera combines fine resolution with sufficient range.

What can disturb a time-of-flight camera

Every measuring method has limits. With time-of-flight, they are these:

From depth image to measured value

How the point cloud becomes length, width and height

A system with several time-of-flight cameras sees the freight from different directions. The software merges the depth images into one common point cloud, separates the freight from the floor and the load carrier, and calculates length, width, height and volume from it.

How accurately this works and which variants measure legal for trade is explained on the page about legal-for-trade volume measurement.

MetriXFreight 3D point cloud of a long goods measurement with the captured volume outlined in colour

Time-of-flight compared

Besides time-of-flight, there are structured light, stereo and laser line scanners. How they work and why metrilus relies on time-of-flight for freight is shown in the comparison of 3D sensing methods.

Frequently asked questions about the time-of-flight camera

How does a time-of-flight camera work?

It illuminates the scene with modulated infrared light and measures for each pixel how much the returning light wave is shifted compared with the emitted one. From this phase shift, it calculates the distance.

What is the difference between direct and indirect time-of-flight?

Direct time-of-flight times the travel of short light pulses, as with LiDAR. Indirect time-of-flight modulates the light and measures the phase shift between the emitted and the returning wave. MetriX­Freight uses indirect time-of-flight.

Why does a time-of-flight camera work with infrared light?

Infrared light is invisible to the human eye. So the camera can light the scene without anyone in the warehouse seeing it.

How accurately does a time-of-flight camera measure?

That depends on the system: on the number of cameras, the mounting height and the software that evaluates the point cloud. The accuracy of our systems is stated in the data sheets; which variants measure legal for trade is explained on the page about legal-for-trade volume measurement.