Camera calibration is used for mechanical arm capture and so on (points on the image are mapped to three-dimensional coordinates by calibration ),
In laboratory or engineering, we often need to calculate the two-dimensional image coordinates of the captured image.
As shown in, we have such an image. We need to calculate the three-dimensional positions of the object and the manipulator so that the manipulator can precisely grasp the object.
The internal and external parameters are calibrated by Zhang zhengyou, and the corresponding three-dimensional coordinates are calculated using the internal and external parameters. The specific formula is omitted! For more information, see PAMI.
/* // Author: YeahPingYE // function: // time: 2014/11/25 // */# include
In the preceding example, the actual coordinate of the first Board Space corresponding to the pixel (969.449, 635.648) is (, 0), and the error is relatively small.
For detailed procedures and related files, see the website (with opencv configured in vs2013, you can run it directly ):