Skip to content
STAGING SERVER
DEVELOPMENT SERVER

How To: Calibrate the Basler racer 2 S Camera for Best Color Reproduction#

This article describes how to get the best color results using the Basler racer 2 S color camera and its features. The features used are shading correction, spatial correction and also the color functions of the camera.

  1. Set up the camera in a way that you get a free running image from the camera using the intended light setup. The goal is to stop the machine, but still have the camera acquiring images without an external trigger. Make sure to switch off the color improvements from within the pylon Viewer. The reason for switching off the color functions is that this function uses internal gains and offsets which will reduce the quality of the shading correction.

    ImageProcessingControlColor Space: OFF

    As a result, the camera shows an unfocused, non-externally triggered image with a homogeneous light setup:

    Blurred Color Image

  2. Place a white or gray paper in the focus area of the camera. However, make sure that the image is blurred. The resulting camera image should show a bright homogeneous gray image, not over-exposed. There might be some lines inside the image, but not as a sharp line. The blurred image is useful to "ignore" the small structures of the paper.

    Non-flat Gray Image

  3. Run the PRNU shading correction based on the existing DSNU correction. One does not necessarily need to do the DSNU shading correction again, as the factory default usually works just fine. For details, see the Basler Product Documentation: Shading Correction.

    ImageProcessingControlShading Correction Selector: DSNU ImageProcessingControlShading Correction Mode: Factory

    ImageProcessingControl → Shading Correction Selector: PRNU ImageProcessingControlShading Correction Mode:User

    As a result, the image shows a flat homogeneous image:

    Flat Gray Image

  4. Remove the white/gray background and sharpen the focus. Make sure to have something with a contrast in the camera's field of view.

    As a result, you should see some sharp stripes in the image:

    Sharp Stripes in Image

  5. Change the camera configuration back to triggered acquisition and start image acquisition.

  6. (Optional step:) Use the frequency converter to reach the same optical resolution x and y. The goal is to show round shapes as round and not as oval.

    Frequency Converter

  7. Configure the spatial correction to "on" and change the value so that you have a minimum color shifting.

    Spatial Correction: Minimum Color Shifting

Additional Information#

Different settings of the spatial correction -2; 0; +2. The parameter has to be set based on the material direction below the camera

Different Settings of the Spatial Correction

Final#

If you need a color-optimized image, switch on the color space and select the proper light source. Maybe you have to run the white balance again. Be aware that the color space uses some non-linear gain/gamma, which increases the noise inside the image.

Color Space on LED Light 5500

Back to Knowledge Articles