Up | Locate detail with Blob | Locate detail with TemplateFinder | Locate detail with two LineFinders | Measure Angle | Measure Radius | Calibrate Measurements | Calibrate the lens | Work in robot coordinates



Calibrate the lens

If an object is large, the camera may often has a large Field of View (FOW) and a relative short distance to the object. This requires a wide angle lens and consequently you get a high lens distortion. Without correcting the distortion, the inaccuracy in the outer part of the FOW might cause e.g. a robot to fail picking an object correctly.

The correction of lens distortion is independent of the distance to the object.

We use the tool type Calibrator for correcting lens distortion to achieve high precision.


  1. Open the Service - Toolbox
  2. Click on the button New
  3. Name the tool e.g. Calibration
  4. Select the tool category Advanced
  5. Select Calibrator and click OK
  6. Place a calibration grid under the camera (e.g. like the example below) and press the snapshot button
  7. Press the right mouse button over the image coming up and select Save shown image without graphics
  8. Give a filename 
  9. Open the Calibration tool (double click on it) and click on the Setup tab
  10. Browse to find the image you just saved under Calibration image
  11. Select the image and open

  12. Set the number of rows and columns (count from the image)
  13. Set the row and column spacing in e.g. mm
  14. Click on Compute
  15. Under the Result tab you will find the scaling factor. The scaling factor is only valid in the grid plane
  16. On the image the actual correction is visualised with yellow arrows. Lens correction is valid in any plane

A calibration coordinate system is generated by the tool. The scaling is in the unit you set (e.g. mm). (The original coordinate system is in pixels.) If you now use the Calibration tool as reference in other tools, they will use the new calibrated coordinate system.

With the cursor on the image, you can also display x and y values in both coordinate systems. 

  1. Position the mouse over the image and right click
  2. Highlight Reference system
  3. Select the wanted coordinate system

If you again right click and selects Show info, you see the x and y values following the cursor as you move.


Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.