The third dimension has benefitted numerous industries—especially factory automation, robotics, logistics, and medicine—by providing further vision technologies and applications.
Two 3D methods in particular have become well established: Time-of-Flight (ToF) and Stereo Vision, which are examined in more detail and compared here. Plus, we compare 2d with 3d.
OEM Automatic stocks Time-of-Flight and Stereo Vision is also available, so you can choose which works for you.
With 2D image processing, the captured image is necessarily always a two-dimensional projection of a three-dimensional object. Depth information cannot be captured with a 2D camera. Depending on the viewing angle, this can result in a different contour of a three-dimensional object in the image.
With that being said, shape and depth information is not relevant for many two-dimensional applications.
Structure and color analysis, part identification, presence checks, damage or anomaly detection, character recognition, and dimensional accuracy inspection. A prerequisite for these tasks is optimal lighting that produces sufficient contrast in the image.
With 3D images, the height information of a scene is also captured. This means volumes, shapes, distances, positions in space, and object orientations can be determined, or a spatially dependent presence check of objects can be performed.
As with 2D imaging (and depending on the technology), there are prerequisites such as lighting conditions or surface properties that must be considered for optimal image acquisition.
Despite their differences, there are many applications for which both 2D and 3D technologies are suitable.
Here, the respective advantages and disadvantages are weighed against common application requirements:
Requirements | 2D | 3D |
Analysis of volumes / shapes | x | |
Structure and colour must be recognised | x | |
Good contrast information available | x | |
Differences in height must be recognised | x | |
Positioning task / detection in third dimension | x | |
Barcode and character recognition | x | |
Building part identification | x | x |
Presence check of components | x | x |
Damage detection | x | x |
Time-of-Flight is a very efficient technology that measures distances to obtain depth data. For this purpose, a light source integrated in the camera emits light pulses that hit the object. The object reflects the light pulses back to the camera.
Using the time required for this, the distance and thus the depth value can be determined for each individual pixel.
As a result, the 3D values for the inspected object are output as a spatial image in the form of a range map or point cloud.
The ToF method also provides a 2D intensity image in the form of gray values for each pixel, and a confidence image that represents the degree of confidence in the individual values.
Stereo vision works similar to a pair of human eyes.
Depth information is obtained through synchronous images taken by two 2D cameras from different viewing angles. 3D data is then calculated based on extrinsic parameters (the position of the two cameras relative to each other) and intrinsic parameters (such as the optical center and focal length of the lens for each camera). Resulting in camera-specific calibration values.
To calculate the depth information, the two 2D images are first rectified. Then a matching algorithm searches for the corresponding pixels in the right and left images.
With the help of the calibration values, a depth image of the scene or object can be generated as a point cloud.
The best working distance for this procedure depends on the distance and setting angle of the two cameras and therefore varies.
This method does not require an active lighting unit such as light or laser beams. However, it always requires a minimum amount of ambient light, since technically these are two separate 2D cameras.
Conditions that are difficult for other 3D methods, stereo vision can provide better results. Examples include bright ambient light, overlapping measurement areas, and reflective surfaces.
For surfaces with little structure, the stereo vision method finds too few corresponding features in both images to calculate three-dimensional information.
These limitations can be overcome by artificially generating surface structures using light. For this purpose, a light projector can be integrated to project a random pattern on the surface.
Time-of-Flight is especially advantageous in applications requiring: a long working distance, a large measuring range, high speed, and low system complexity, while extreme accuracy is less relevant.
Examples include:
Stereo vision already offers high measurement accuracy and is surpassed by sensors with structured light. Suitable for detecting uncooperative surfaces with little structure or applications requiring very high measurement accuracy.
Examples include:
The need for 3D technology is increasing in many applications, especially when combined with artificial intelligence such as deep learning.
Interested in Basler’s Time-Of-Flight camera or Stereo Vision and looking for more information on how it can work for your application? Email [email protected] or call 0116 284 9900 for expert advice.