Download HDevelop User's Guide - Image Understanding and Knowledge
Transcript
7.2.1 Introducing the Calibration Assistant of HDevelop 231 All you need is a set of ideally 10 to 20 calibration images. The Calibration Assistant then returns the calibration results and enables you to generate code and insert it into a given program. The Calibration Assistant can calibrate vision systems based on standard lenses as well as on telecentric lenses. With the HALCON Calibration Assistant you can • perform a calibration (page 233), • view the calibration results (page 244), • generate code (page 245) for the calibration or for using the calibration results and insert it into a program for further use in a subsequent application. A reference to the elements of the Calibration Assistant can be found in the Calibration Assistant Reference (page 248). For further information about camera calibration, please refer to the corresponding chapter in the solution guide on 3D Vision. ATTENTION: Remember that it is essential to keep your camera setup (aperture, focus, pose) fixed, once you have chosen it! This applies to the calibration process itself as well as to the subsequent application. Any changes will result in the failure of the calibration or - even worse - in wrong output values. In this guide, the following special terms are used: Calibration By calibrating (page 235) a vision system, you extract information about it, e.g., its focal length or its position and orientation relative to the "world". However, even with such information you cannot fully reconstruct the 3D world from a single image. For example, you can determine the (3D) size of an object only if you know its distance from the vision system (when using a standard lens). Calibration is a preparation for all subsequent image processing applications. The Calibration Assistant needs to grab a set of images of a special calibration object placed in front of your vision system. You can choose between a Full Calibration and a User-Defined Calibration, where known parameters are not calibrated again. Calibration Plate This (page 233) is an object whose shape is known precisely. Calibration plates are available in different sizes. Transparent calibration plates are available for applications requiring backlight illumination. Which calibration plate is suited best depends on your machine vision task: As a rule of thumb, if you grab an image of the plane of measurement, it should fill a fourth of the image. For example, if an image of the plane of measurement corresponds to an area of 80mm x 60mm, you should choose the 30mm calibration plate. The bigger calibration plates (100mm and 200mm, made from aluminum) come together with a file containing their exact measurements (caltab_100mm.descr and caltab_200mm.descr). Please copy this file to the subdirectory calib of the HALCON base directory you chose during installation. This is not necessary for smaller (ceramics) calibration plates as they can be manufactured very precisely and can therefore use standard description files. If you use your own calibration plate, you have to create the description file yourself and copy it into the subdirectory calib. Assistants • take advantage of the user-defined mode and only calibrate chosen parameters, if the rest is already known (e.g. if you are using a special setting).