Calibration Patterns Explained

Calibrating cameras accurately is important for the success of any machine/computer vision setup. However, there are different patterns to choose from. In order to make the selection easier for you, this article explains the main benefits of each.

A selection of the calibration patterns we offer at Calib.io. CharuCo, chessboard, asymmetric circles and chessboard.

 

Pattern size

In choosing a calibration plate, an important consideration is the physical size of it. This ultimately relates to the measurement field of view (FOV) of the final application. This is because cameras need to be focused on that specific distance and calibrated. Changing the focus distance slightly affects focal length, which would throw any previous calibration off. Even aperture changes usually have a negative effect on calibration validity, which is why they should be avoided.  

For accurate calibration, the camera model is best constrained if the camera sees the calibration target filling most of the image. Popularity speaking, if a small calibration plate is used, many combinations of camera parameters could explain the observed images. As a rule of thumb, the calibration plate should have an area of at least half the available pixel area when observed frontally.

 

Pattern type

Different patterns have been introduced over the years, with each having unique properties and benefits. 

Choosing the right type starts by considering which algorithm and algorithm implementation you will be using. In software such as Calib's Camera Calibrator and libraries such as libCalib, OpenCV or MVTec Halcon, there is some freedom regarding the pattern, and they have individual benefits and limitations.

 

Checkerboard targets

This is the most popular and common pattern design. Chessboard corners candidates are usually found by first binarizing the camera image and finding quadrilaterals (these are the black chessboard fields). A filtering step retains only those quads that meet certain size criteria and are organized in a regular grid structure whose dimensions match those specified by the user. 

After an initial detection of the pattern, the corner locations can be determined with very high accuracy. This is because corners (mathematically: saddle points) are principally infinitely small and hence unbiased under perspective transformations or lens distortion. 

In OpenCV, the entire chessboard must be visible in all images in order to be detected. This usually makes it difficult to obtain information from the very edges of images. These areas are usually good to have information from, as they constrain the lens distortion model properly.

Following the detection of a checkerboard, subpixel refinement can be performed to find the saddle points with subpixel accuracy. This makes use of the exact gray values of pixels around a given corner position, and the accuracy is much more accurate than what integer pixel positions would allow for.

An important detail regarding checkerboard targets is that in order to be rotation-invariant, the number of rows needs to be even and the number of columns odd, or the other way around. If for instance, both are even, there is a 180-degree rotation ambiguity. Without any assumption about board orientation, the feature detector might place the origin at two or four different positions on the board. For single camera calibration, this means that target geometry cannot be optimized, and if the same points need to be identified by two or more cameras (for stereo calibration), this ambiguity leads to calibration failure. This is the reason why our standard checkerboard targets all have this property of even/odd rows/columns.

 

CharuCo targets

ChArUco patterns overcome some of the limitations of classical checkerboards. However, their detection algorithm is somewhat more complex. 

The main advantage with ChArUco is that all light checker fields are uniquely coded and identifiable. This means that even partly occluded or non-ideal camera images can be used for calibration. For instance, strong ring lights may produce inhomogenous lighting on the calibration target (a region of semi-specular reflection), which would cause ordinary checkerboard detection to fail. With ChArUco, the remaining (good) saddle point detections can still be used. Saddle point localizations can be refined using subpixel detection just like checkerboards.

With observations close to image corners, this is an extremely useful property. As the target can be positioned such that the camera only sees it partly, we can gather information from the very edges and corners of the camera image. This usually leads to very good and robust determination of lens distortion parameters. For this reason, we highly recommend the use of ChArUco targets over normal checkerboard targets, when Calibrator, libCalib, or OpenCV 3.x is available.

In addition to the above mentioned benefits, ChArUco targets with non-overlapping id ranges can be used for network calibration, which allows to cover large fields-of-view with a collection of targets. 

 

Checkerboard marker targets

These are based on traditional checkerboards, and can use the same detection algorithms. In addition, they contain three circles at their center, which allows for absolute referencing even with partial views of the checkerboard (as long as the circles are seen in all images). Hence, data from the image periphery can be included, which ensures that the fitted lens model is also valid in those parts of the image.

For stereo calibration tasks, the checkerboard marker target brings all the benefits of a coded target such as ChArUco, while needing fewer pixels for robust detection. Hence, denser checkerboards with more features can be used. These patterns are fully supported in Calibrator and libCalib with a single calibration target.

 

Circle grids 

Circle girds are also a popular and very common calibration target design, based on circles, either with white circles on dark background or dark (black) circles on white background. In image processing terms, circles can be detected as "blobs" in the image. Some simple conditions on these binary blob regions, such as area, circularity, convexity, etc. can be applied to remove bad feature candidates. The 

After finding suitable candidates, the regular structure of features is again used to identify and filter the pattern. The determination of circles can be done very accurately since all pixels on the periphery of circles can be used, decreasing the influence of image noise. However, in contrast to the saddle points in checkerboards, circles are imaged as ellipses under camera perspective. This perspective can be accounted for by means of image rectification. However, in addition, the unknown lens distortion means that the circles are not imaged as perfect ellipses, which adds a small bias. However, we can consider the distortion model as locally linear (obeying a perspective transformation / homography), so this error is very small in most lenses.

For high-accuracy calibration both the elliptical shape and the projected circle center need to be accounted for, especially with short focal length lenses and large circles. OpenCV does neither, and by default uses a simple blob detector to find the centroids of elliptical blobs. Calib Camera Calibrator does account for these effects and is able to produce more accurate results for circular targets.

An important difference between symmetric and asymmetric circle grids is that the former have a 180-degree ambiguity as explained in the "Checkerboard" section. Hence, for target geometry optimization and/or stereo calibration, asymmetric grids are necessary. Otherwise, there is not a big difference in the performance one should expect for either type. 

 

 


3 comments

  • @Peter: The standard web-store targets have a dimensional tolerance of 0.1mm + 0.3mm/m (at 20°C). We can offer lithography processed targets with dimensional tolerance as low as 10um (feature to feature).

    Jakob
  • Hi,
    What accuracy are your patterns printed with?

    Peter
  • Thank you. This helped me understand what is actually happening in calibration, and why my true 8×8 chessboard is a terrible choice for calibrating stereo cameras. Maybe I’ll have better luck with an even-odd combo.

    Chris

Leave a comment

Please note, comments must be approved before they are published