# Field Geometric Calibration Method for Line Structured Light Sensor Using Single Circular Target

Authors: Tianfei Chen; Lijun Sun; Qiuwen Zhang; Xiang Wu; Defeng Wu
Journal: Scientific Programming
 (2017)

---

## Abstract

To achieve fast calibration of line structured light sensor, a geometric calibration approach based on single circular calibration target is proposed. The proposed method uses the circular points to establish linear equations, and according to the angle constraint, the camera intrinsic parameters can be calculated through optimization. Then, the light plane calibration is accomplished in two steps. Firstly, when the vanishing lines of target plane at various postures are obtained, the intersections between vanishing lines and laser stripe can be computed, and the normal vector of light plane can be calibrated via line fitting method using intersection points. After that, the distance from the origin of camera coordinate system to the light plane can be derived based on the model of perspective-three-point. The actual experimental result shows that this calibration method has high accuracy, its average measuring accuracy is 0.0451 mm, and relative error is 0.2314%. In addition, the entire calibration process has no complex operations. It is simple, convenient, and suitable for calibration on sites.


---

## Body

## 1. Introduction

As a typical representative of noncontact vision measurement technology, the line structured light sensor has a wide application prospect in industry for dimensional analysis, on-line inspection, component quality, and reverse engineering, due to its simple structure, moderate accuracy, fast speed, large amount of information, and other advantage factors [1–6]. Generally, the sensor consists of one camera and one laser generator, and the laser triangulation is treated as basic principle, so the laser generator is displaced relative to the camera in space. When the structure is fixed, the task of sensor is to acquire the three-dimensional (3D) characteristic information of profile of the measured object. The acquisition process is described as follows: laser plane from laser generator is modulated by the depth of the measured object, and the laser stripe is formed, which contains 3D information of the measured object. The camera captures the object containing the deformed laser stripe. Then, 3D dense world points are generated by sampling points on each light stripe in the CCD image, and the calculation of 3D world points is based on the mathematical model of the sensor. When the line structured light sensor has already been assembled, some unknown model parameters exist, which directly influence the calculation precision of 3D world points for the measured object. Therefore, the calibration of model parameters is one of the key links for line structured light sensor.The parameters calibration for line structured light sensor incorporates two stages: stage one is camera calibration, and the other is the calibration of light plane equation. According to the dimension of calibration target, the existing calibration method can be divided into the categories as below: (1) 3D stereo target. The wire drawing calibration method [7] and the sawtooth calibration method [8] are the earliest proposed methods. It should be noted that camera calibration is not involved in these two methods, and some precise auxiliary equipment is still needed, which leads to the fact that the calibration cost is relatively higher. Besides, the calibration process is tedious and the accuracy is limited. On the foundation of the previous work, Huynh et al. [9] and Wei et al. [10] make full use of cross-ratio invariance and double cross-ratio invariance to compute calibration points, and the calibration accuracy is improved significantly. However, 3D precision calibration target is still employed, and calibration cost is higher all the same. In addition, high quality images are difficult to be captured, due to illumination occlusion of 3D stereo target. (2) Planar target. The calibration method that used free-moving planar target has become commonly popular for line structured light sensor [11–15]. This method can not only obtain high quality calibration images, but also reduce the calibration cost. However, some repeated calculation from each position of planar target to camera is required, so the complexity of computation is higher. (3) One-dimensional (1D) target. Wei et al. [16] and Han et al. [17] have proposed calibration methods based on 1D target, which can expand the application field of line structured light sensor. (4) Self-calibration method. Active vision calibration method for line structured light sensor has been proposed in [18], which can achieve automatic calibration without target, but this method relies on the mechanical movement of sensor, so it does not have universal applicability.A field geometric calibration method for line structured light sensor based on single circular target is proposed in this paper. The proposed method makes full use of geometric constraints of a single circle to complete the parameters calibration of camera and light plane equation at the same time. The adopted single circular target has the advantages of simple structure and easy processing, and it can be placed free-movingly to capture more higher quality calibration images. In addition, the calculation process is not complicated or repeated, the algorithm is simple and fast, and it is flexible, convenient, and suitable for calibration on sites.


## 2. Mathematical Model of Line Structured Light Sensor

Figure1 shows the mathematical model of line structured light sensor. In Figure 1, Oc-XcYcZc represents camera coordinate system, and O-uv is image plane coordinate system of CCD. On-XnYn is defined as normalized plane coordinate system, and its distance to the origin of camera coordinate system is 1. Besides, OnXn⫽OcXc, OnYn⫽OcYc. The optical axis of camera OcZc is perpendicular to normalized plane and CCD image plane. P is a point on the laser stripe, and p′, p′′ are, respectively, corresponding image points on CCD image plane and normalized plane.Figure 1
Model of line structured light sensor.Note that the homogeneous coordinates of pointP in camera coordinate system are denoted by P~=xc,yc,zc,1T, and the homogeneous coordinates of its corresponding image points p′, p′′ in their coordinate system are, respectively, p~′uc,vc,1T,p~′′xn,yn,1T. Based on the perspective projection transformation, the relationships are described as follows:(1)zc·p~′′=E0·P~,p~′=K·p~′′.E represents a unit matrix of 3∗3, and the homogeneous coordinate point p~′′ can be treated as 3D coordinates of image point p′′ in the camera coordinate system. K is camera intrinsic parameter matrix; its form is represented as follows:(2)K=fusu00fvv0001.fu,fv are, respectively, the scale factors of the CCD image plane in the u,v axis direction. u0v0 represent the principal point coordinates of the camera; s is skew factor.If the radial distortion of camera lens is further considered, the first-order model is commonly chosen to handle the nonlinear distortion effects, due to the fact that too many distortion parameters will make solution unstable [19]. Note that the actual corresponding image point coordinate of points p′ is udvdT; we have the relationship as follows:(3)uc=ud-u0·1+k·rd2+u0,vc=vd-v0·1+k·rd2+v0.k is distortion parameter; rd=ud-u02+vd-v02. Thus, the whole intrinsic camera parameters consist of the matrix K and the distortion parameter k.Assume that the light plane equation in camera coordinate system is expressed as follows:(4)a1·X+a2·Y+a3·Z+a4=0.P is a point on the light plane, so its coordinate also satisfies constraint of (4). a1,a2,a3,a4 are light plane parameters of sensor. If the camera intrinsic parameters and light plane parameters are known, the 3D coordinates of point P on the light plane can be determined according to (1), (3), and (4).


## 3. Calibration of Sensor Parameters

### 3.1. Geometric Theorem

A single circular calibration target is used in this paper. In order to describe the proposed algorithm conveniently, some related geometric theorems are firstly introduced. Based on the geometric constraints of single circle, camera parameters and light plane parameters can be calibrated.Figure2 shows schematic diagram of single circular target and its imaging. In Figure 2(a), O is circle center, andA,B,C,D are intersection points between the circle and the line AB→, CD→ across the circle center O. The angle between AB→, CD→ is θ. L∞ indicates the line at infinity, which is the intersection line formed by target plane and the plane at infinity. P1,P2 are, respectively, intersection points between line AB→,CD→ and L∞. mI,mJ are circular points of line L∞. In Figure 2(b), vanishing points p1,p2 are, respectively, imaging points of P1,P2. Vanishing line l∞ is the projection of L∞ on CCD. In camera coordinate system, the direction of space straight line AB→ is d, the normal direction of target plane isn, the homogeneous expressions of vanishing point p1 and vanishing line l∞ are, respectively, v~,l~. Based on the projective geometry theory [20], the following properties are satisfied.Figure 2
Schematic diagram of target plane and its imaging. (a) Target plane. (b) Imaging of target.
(a)
(b)(1) The cross-ratio of collinear pointsA,B,O,P1 satisfies CRAB,OP1=-1, and the cross-ratio of its projection remains unchanged. Similarly, CRCD,OP2=-1.(2) Any circle on target plane intersects the lineL∞ at circular points, and it is irrespective of the position and radius of the circle. Accordingly, the intersections between the imaging of circle and the imaging of the line at infinity are the imaging of circular points.(3) The intersection point between the space straight line and the plane at infinity indicates the direction of the straight line, and the intersection line between the space plane and the plane at infinity indicates the normal direction of the space plane.Based on the above properties, the relations can be represented as follows:(5)v~≅K·d,(6)l~≅K-T·n.The symbol ≅ represents equality in case of a constant factor.


### 3.2. Camera Calibration

The single circular target images under different postures are captured within the camera’s field of view. For each image, vanishing points for all straight lines across the circle center can be calculated according to property(1), and the vanishing line of target plane under this posture is obtained by fitting the straight line using vanishing points; then the imaging of circular points can be computed according to property (2). If the imaging coordinates of circular point at a certain position are Im,Jm, and its relationship with camera intrinsic matrix K can be expressed as(7)ImTK-TK-1Im=0;JmTK-TK-1Jm=0,the linear equations of matrix K can be constructed by formula (7), the detailed procedure can be referred to in [21]. However, the above process does not take into account the lens distortion parameters k, and the lens distortion cannot be neglected in the field of vision measurement. In this paper, the optimization objective function is established according to the known angle constraint of the straight lines on the target; the formula is expressed as follows:(8)fK∗,k∗=min⁡∑i=1M∑j=1Nθij-θ^ijK,k2.In the above formula, M is the number of target images, and N is the number of angles between straight lines across the circle center on the target. θij represents the known angles between straight lines, and θ^ij is the actual calculation value, which can be treated as a function of camera intrinsic parameter K and k. First, the extracted image points are corrected by formula (3), and then the vanishing points are computed. Using formula (5), the direction of lines through the center on the target is obtained in the camera coordinate system, and the angle between the lines is obtained by the cosine theorem. At this point, the camera calibration including distortion can be transformed into a nonlinear optimization problem, and Nelder-Mead nonlinear simplex method is used to solve (8). The solution of linear equation is as the iterative initial value for matrix K, and the initial value of distortion parameters is set to zero; then the iterative optimization is carried on, so that K∗,k∗ which minimize the objective function are the intrinsic camera parameters.


### 3.3. Light Plane Calibration

From formula (4), a1,a2,a3,a4 are the light plane parameters of the sensor. At present, the general methods [7–11] are used to calibrate light plane by plane fitting after seeking the calibration points on the light plane. Considering geometric meaning of light plane, a1,a2,a3 indicates the normal vector of light plane, a4 represents the distance information from the origin of the coordinate system to the light plane, and then single circular target is used to complete calibration in two steps in this paper.Figure3 is schematic diagram of calibration for normal vector of laser plane. ls is laser stripe line on CCD image plane which is formed by modulation between light plane and target plane. The Steger method [22] is adopted to extract the center coordinates of laser stripe line, and this method is stable and robust, and its accuracy can be reached to subpixel level. p1~pn are vanishing points of straight lines across the circle center O on the target, and its corresponding image coordinates can be determined by property (1). ai,bi are defined as intersection points between circle and straight lines across the center O, and o is image coordinates of circle center; then the vanishing points calculation formula is given as follows:(9)pi=-1·bi-o·ai-ai-o·bi-1·bi-o-ai-o;i=1,…,n.l∞ represents corresponding vanishing line of target plane, and its mathematical equation can be obtained by plane fitting using vanishing points. Note that the homogeneous coordinates expression of l∞ on the CCD image plane is nx,ny,nd, so the formula is given by(10)fnx,ny,nd=min⁡∑i=1nnx·pi,x+ny·pi,y+ndnx2+ny22.In the above formula, pi,x,pi,y, respectively, indicate x, y components of ith vanishing point. vp is the intersection point between line ls and line l∞, and it represents the vanishing point of laser stripe line under this posture. Similarly, target plane’s posture can be changed repeatedly, vanishing points vp1~vpn which indicate different directions of laser stripe lines on the light plane can be obtained, and then vanishing line of light plane can be calculated by line fitting, and the fitting equation is similar to formula (10). Then, the normal vector of light plane in the camera coordinate system can be computed by formula (6).Figure 3
Schematic diagram of normal vector of laser plane.Note that it is necessary to make the target plane and the CCD image plane incline to each other; that is to say, a certain angle between them should exists when calibrating camera and light plane. If the two planes are parallel, the projection of the target plane becomes into affine transformation, and then the vanishing line of the target plane cannot be determined.Figure4 shows the schematic diagram of calibration for distance information. Oc is the origin of the camera coordinate system, D is the distance from the origin to the light plane. nL represents the normal vector of light plane in the camera coordinate system. On the target plane, the laser stripe line intersects with the circle at pointA, and the line across the point A and the center O intersects with the circle at pointB, and their corresponding image points on CCD plane are, respectively,a,o,b. At this moment, the principle of perspective-three-point between pointsA,O,B and viewpoint Oc will be used. If the distance ofAO,OB and the angle of ∠AOcO,∠BOcO are known, the coordinates of pointsA,O,B can be calculated [23]. On the CCD image plane, the coordinates of pointsa,o,b can be extracted by image processing algorithm. If the camera intrinsic parameters have been calibrated, the angle ∠AOcO,∠BOcO can also be computed using the coordinates of the imaging points. While the distance ofAO,OB is equal to the radius of the circle, the coordinates of point A on the light plane, that is vector OcA→, can be calculated based on the model of perspective-three-point. Thus, the distance from the origin of camera coordinate system to the light plane is as expressed as follows:(11)D=OcA→·nLnL.Figure 4
Schematic diagram of distance information.In order to reduce the influence of noise and other factors, the position of the target plane can be changed repeatedly and the average calculation is carried on; the formula is described as follows:(12)D=∑i=1MaxDiMax.Di represents distance information at the ith position, Max is the total number of points, and then the distance parameter a4 is computed as follows:(13)a4=D;OcA→·nL<0-D;OcA→·nL>0.Till then, the model parameters of sensor have already been calibrated completely.


## 3.1. Geometric Theorem

A single circular calibration target is used in this paper. In order to describe the proposed algorithm conveniently, some related geometric theorems are firstly introduced. Based on the geometric constraints of single circle, camera parameters and light plane parameters can be calibrated.Figure2 shows schematic diagram of single circular target and its imaging. In Figure 2(a), O is circle center, andA,B,C,D are intersection points between the circle and the line AB→, CD→ across the circle center O. The angle between AB→, CD→ is θ. L∞ indicates the line at infinity, which is the intersection line formed by target plane and the plane at infinity. P1,P2 are, respectively, intersection points between line AB→,CD→ and L∞. mI,mJ are circular points of line L∞. In Figure 2(b), vanishing points p1,p2 are, respectively, imaging points of P1,P2. Vanishing line l∞ is the projection of L∞ on CCD. In camera coordinate system, the direction of space straight line AB→ is d, the normal direction of target plane isn, the homogeneous expressions of vanishing point p1 and vanishing line l∞ are, respectively, v~,l~. Based on the projective geometry theory [20], the following properties are satisfied.Figure 2
Schematic diagram of target plane and its imaging. (a) Target plane. (b) Imaging of target.
(a)
(b)(1) The cross-ratio of collinear pointsA,B,O,P1 satisfies CRAB,OP1=-1, and the cross-ratio of its projection remains unchanged. Similarly, CRCD,OP2=-1.(2) Any circle on target plane intersects the lineL∞ at circular points, and it is irrespective of the position and radius of the circle. Accordingly, the intersections between the imaging of circle and the imaging of the line at infinity are the imaging of circular points.(3) The intersection point between the space straight line and the plane at infinity indicates the direction of the straight line, and the intersection line between the space plane and the plane at infinity indicates the normal direction of the space plane.Based on the above properties, the relations can be represented as follows:(5)v~≅K·d,(6)l~≅K-T·n.The symbol ≅ represents equality in case of a constant factor.


## 3.2. Camera Calibration

The single circular target images under different postures are captured within the camera’s field of view. For each image, vanishing points for all straight lines across the circle center can be calculated according to property(1), and the vanishing line of target plane under this posture is obtained by fitting the straight line using vanishing points; then the imaging of circular points can be computed according to property (2). If the imaging coordinates of circular point at a certain position are Im,Jm, and its relationship with camera intrinsic matrix K can be expressed as(7)ImTK-TK-1Im=0;JmTK-TK-1Jm=0,the linear equations of matrix K can be constructed by formula (7), the detailed procedure can be referred to in [21]. However, the above process does not take into account the lens distortion parameters k, and the lens distortion cannot be neglected in the field of vision measurement. In this paper, the optimization objective function is established according to the known angle constraint of the straight lines on the target; the formula is expressed as follows:(8)fK∗,k∗=min⁡∑i=1M∑j=1Nθij-θ^ijK,k2.In the above formula, M is the number of target images, and N is the number of angles between straight lines across the circle center on the target. θij represents the known angles between straight lines, and θ^ij is the actual calculation value, which can be treated as a function of camera intrinsic parameter K and k. First, the extracted image points are corrected by formula (3), and then the vanishing points are computed. Using formula (5), the direction of lines through the center on the target is obtained in the camera coordinate system, and the angle between the lines is obtained by the cosine theorem. At this point, the camera calibration including distortion can be transformed into a nonlinear optimization problem, and Nelder-Mead nonlinear simplex method is used to solve (8). The solution of linear equation is as the iterative initial value for matrix K, and the initial value of distortion parameters is set to zero; then the iterative optimization is carried on, so that K∗,k∗ which minimize the objective function are the intrinsic camera parameters.


## 3.3. Light Plane Calibration

From formula (4), a1,a2,a3,a4 are the light plane parameters of the sensor. At present, the general methods [7–11] are used to calibrate light plane by plane fitting after seeking the calibration points on the light plane. Considering geometric meaning of light plane, a1,a2,a3 indicates the normal vector of light plane, a4 represents the distance information from the origin of the coordinate system to the light plane, and then single circular target is used to complete calibration in two steps in this paper.Figure3 is schematic diagram of calibration for normal vector of laser plane. ls is laser stripe line on CCD image plane which is formed by modulation between light plane and target plane. The Steger method [22] is adopted to extract the center coordinates of laser stripe line, and this method is stable and robust, and its accuracy can be reached to subpixel level. p1~pn are vanishing points of straight lines across the circle center O on the target, and its corresponding image coordinates can be determined by property (1). ai,bi are defined as intersection points between circle and straight lines across the center O, and o is image coordinates of circle center; then the vanishing points calculation formula is given as follows:(9)pi=-1·bi-o·ai-ai-o·bi-1·bi-o-ai-o;i=1,…,n.l∞ represents corresponding vanishing line of target plane, and its mathematical equation can be obtained by plane fitting using vanishing points. Note that the homogeneous coordinates expression of l∞ on the CCD image plane is nx,ny,nd, so the formula is given by(10)fnx,ny,nd=min⁡∑i=1nnx·pi,x+ny·pi,y+ndnx2+ny22.In the above formula, pi,x,pi,y, respectively, indicate x, y components of ith vanishing point. vp is the intersection point between line ls and line l∞, and it represents the vanishing point of laser stripe line under this posture. Similarly, target plane’s posture can be changed repeatedly, vanishing points vp1~vpn which indicate different directions of laser stripe lines on the light plane can be obtained, and then vanishing line of light plane can be calculated by line fitting, and the fitting equation is similar to formula (10). Then, the normal vector of light plane in the camera coordinate system can be computed by formula (6).Figure 3
Schematic diagram of normal vector of laser plane.Note that it is necessary to make the target plane and the CCD image plane incline to each other; that is to say, a certain angle between them should exists when calibrating camera and light plane. If the two planes are parallel, the projection of the target plane becomes into affine transformation, and then the vanishing line of the target plane cannot be determined.Figure4 shows the schematic diagram of calibration for distance information. Oc is the origin of the camera coordinate system, D is the distance from the origin to the light plane. nL represents the normal vector of light plane in the camera coordinate system. On the target plane, the laser stripe line intersects with the circle at pointA, and the line across the point A and the center O intersects with the circle at pointB, and their corresponding image points on CCD plane are, respectively,a,o,b. At this moment, the principle of perspective-three-point between pointsA,O,B and viewpoint Oc will be used. If the distance ofAO,OB and the angle of ∠AOcO,∠BOcO are known, the coordinates of pointsA,O,B can be calculated [23]. On the CCD image plane, the coordinates of pointsa,o,b can be extracted by image processing algorithm. If the camera intrinsic parameters have been calibrated, the angle ∠AOcO,∠BOcO can also be computed using the coordinates of the imaging points. While the distance ofAO,OB is equal to the radius of the circle, the coordinates of point A on the light plane, that is vector OcA→, can be calculated based on the model of perspective-three-point. Thus, the distance from the origin of camera coordinate system to the light plane is as expressed as follows:(11)D=OcA→·nLnL.Figure 4
Schematic diagram of distance information.In order to reduce the influence of noise and other factors, the position of the target plane can be changed repeatedly and the average calculation is carried on; the formula is described as follows:(12)D=∑i=1MaxDiMax.Di represents distance information at the ith position, Max is the total number of points, and then the distance parameter a4 is computed as follows:(13)a4=D;OcA→·nL<0-D;OcA→·nL>0.Till then, the model parameters of sensor have already been calibrated completely.


## 4. Experiment Results and Accuracy Analysis

As shown in Figure5(a), the line structured light sensor is composed of WAT-5352EX2 camera (resolution: 768∗576), fixed focus lens made by Computar, and laser line generator of 650 nm wavelength. Figure 5(b) shows the single circular target used in this paper, and the radius is 20 mm. In order to extract the intersection points conveniently, the target checkered with black and white is adopted, and each angle in the target is 30 degrees.Figure 5
Line structured light measurement system and calibration target. (a) Line structured light sensor. (b) The single circular calibration target.
(a)
(b)


### 4.1. Calibration Experiment

Turn on the laser generator, and the single circular target is free-movingly placed at different position within the measurement space of the sensor to capture calibration images. Figure6 shows a set of calibration images. In the calibration images, the intersection points between the circle and lines across the center can be extracted by using OpenCV functions, and the functions are based on the Harris corner detection principle, and its extraction accuracy can reach 0.1 pixels. In addition, [21] is used to locate the circle center in the calibration image.Figure 6
One group of calibration images.First of all, camera calibration is carried on according to Section3.2, and the results are shown in Table 1.Table 1
Camera intrinsic parameters.
f
u
f
v
s
u
0
v
0
k
1904.3
1907.6
8.8625
410.1198
251.8105
2.3001 × 10−4Figure7 shows the circle center locations influenced by lens distortion in a calibration image. The solid points are the intersection points of every two straight lines through the circle center, and the circle indicates the location center. The low distortion lens is used in this experiment, and its distortion is relatively smaller. Before correction, the solid points are basically distributed in a pixel cell, and the location center is within the solid points. After correction, the distribution of solid points is further narrowed on the direction of axis v, and then the result demonstrates that the accuracy of circle center location can be further improved by distortion correction.Figure 7
Effect of distortion on circle center. (a) Before correction. (b) After correction.
(a)
(b)Extract the laser stripe line, and calculate the intersection points between laser stripe line and the vanishing line of the target, and then fit the straight line; the fitting line is the vanishing line of light plane in CCD. In Figure8, the circles are the intersection points between laser stripe line and vanishing line of target plane, and the fitting line is vanishing line of light plane. The camera intrinsic parameters have already been calibrated, so the normal vector of light plane in the camera coordinate system can be calculated by formula (6). The result is computed as follows:(14)V=a1,a2,a3T=0.7070,0.0699,0.7038T.Figure 8
Vanishing line of light plane.Figure9 is a laser stripe image which satisfies the model of perspective-three-point. The star points and the cross points are the intersection points of laser stripe line and the fitting ellipse, and the circle represents the center. Then the model of perspective-three-point is constructed, and the distance information of the light plane is derived according to the content of Section 3.3. In order to reduce the influence of noise and other factors, more stripe images should be captured as shown in Figure 9, and then the average calculation is carried on after calculating distance information for each laser stripe image. By formula (13), the distance information of light plane is determined as a4=-128.1163. Finally, the calibration result of light plane equation is expressed as follows:(15)1.0045·X+0.0993·Y+Z-182.0375=0.Figure 9
Laser stripe image of perspective-three-point.


### 4.2. Accuracy Analysis

In order to verify the accuracy of the proposed calibration method, a high precision planar target with solid circle is used. As shown in Figure10, turn on the laser generator and capture the target image. In the local world coordinate system defined by planar target, the coordinates of feature points on the stripe line can be computed using principle of cross-ration invariance, and then reference distance value can be calculated among the feature points. According to the calibration results of line structured light sensor, the distance among feature points can also be calculated; then compare them with the reference distance value. The comparative results are shown in Table 2.Table 2
Measurement data by line structured light sensor.
No.
Reference
Measurement
Absolute
Relative error/%
Value/mm
Value/mm
Error/mm
(
1,2
)
10.0167
9.9483
0.0685
0.6838
(
1,3
)
20.0148
19.9231
0.0917
0.4582
(
1,4
)
35.0251
34.9509
0.0742
0.2118
(
1,5
)
45.0532
44.9354
0.1178
0.2614
(
1,6
)
55.0606
54.9890
0.0716
0.1300
(
2,3
)
10.0018
9.9749
0.0270
0.2696
(
2,4
)
25.0111
25.0026
0.0085
0.0339
(
2,5
)
35.0370
34.9871
0.0498
0.1422
(
2,6
)
45.0446
45.0408
0.0038
0.0085
(
3,4
)
15.0102
15.0278
0.0175
0.1168
(
3,5
)
25.0401
25.0123
0.0279
0.1114
(
3,6
)
35.0469
35.0659
0.0190
0.0543
(
4,5
)
10.0372
9.9845
0.0527
0.5247
(
4,6
)
20.0395
20.0381
0.0014
0.0069
(
5,6
)
10.0078
10.0537
0.0459
0.4582
Average error
0.0451
0.2314Figure 10
Solid circle target for accuracy analysis.From the analysis data in Table2, we can see that the proposed method has higher calibration accuracy, the average absolute measurement deviation is 0.0451 mm, and the average relative measurement error is 0.2314%, which can meet the precision requirements of most application areas.


## 4.1. Calibration Experiment

Turn on the laser generator, and the single circular target is free-movingly placed at different position within the measurement space of the sensor to capture calibration images. Figure6 shows a set of calibration images. In the calibration images, the intersection points between the circle and lines across the center can be extracted by using OpenCV functions, and the functions are based on the Harris corner detection principle, and its extraction accuracy can reach 0.1 pixels. In addition, [21] is used to locate the circle center in the calibration image.Figure 6
One group of calibration images.First of all, camera calibration is carried on according to Section3.2, and the results are shown in Table 1.Table 1
Camera intrinsic parameters.
f
u
f
v
s
u
0
v
0
k
1904.3
1907.6
8.8625
410.1198
251.8105
2.3001 × 10−4Figure7 shows the circle center locations influenced by lens distortion in a calibration image. The solid points are the intersection points of every two straight lines through the circle center, and the circle indicates the location center. The low distortion lens is used in this experiment, and its distortion is relatively smaller. Before correction, the solid points are basically distributed in a pixel cell, and the location center is within the solid points. After correction, the distribution of solid points is further narrowed on the direction of axis v, and then the result demonstrates that the accuracy of circle center location can be further improved by distortion correction.Figure 7
Effect of distortion on circle center. (a) Before correction. (b) After correction.
(a)
(b)Extract the laser stripe line, and calculate the intersection points between laser stripe line and the vanishing line of the target, and then fit the straight line; the fitting line is the vanishing line of light plane in CCD. In Figure8, the circles are the intersection points between laser stripe line and vanishing line of target plane, and the fitting line is vanishing line of light plane. The camera intrinsic parameters have already been calibrated, so the normal vector of light plane in the camera coordinate system can be calculated by formula (6). The result is computed as follows:(14)V=a1,a2,a3T=0.7070,0.0699,0.7038T.Figure 8
Vanishing line of light plane.Figure9 is a laser stripe image which satisfies the model of perspective-three-point. The star points and the cross points are the intersection points of laser stripe line and the fitting ellipse, and the circle represents the center. Then the model of perspective-three-point is constructed, and the distance information of the light plane is derived according to the content of Section 3.3. In order to reduce the influence of noise and other factors, more stripe images should be captured as shown in Figure 9, and then the average calculation is carried on after calculating distance information for each laser stripe image. By formula (13), the distance information of light plane is determined as a4=-128.1163. Finally, the calibration result of light plane equation is expressed as follows:(15)1.0045·X+0.0993·Y+Z-182.0375=0.Figure 9
Laser stripe image of perspective-three-point.


## 4.2. Accuracy Analysis

In order to verify the accuracy of the proposed calibration method, a high precision planar target with solid circle is used. As shown in Figure10, turn on the laser generator and capture the target image. In the local world coordinate system defined by planar target, the coordinates of feature points on the stripe line can be computed using principle of cross-ration invariance, and then reference distance value can be calculated among the feature points. According to the calibration results of line structured light sensor, the distance among feature points can also be calculated; then compare them with the reference distance value. The comparative results are shown in Table 2.Table 2
Measurement data by line structured light sensor.
No.
Reference
Measurement
Absolute
Relative error/%
Value/mm
Value/mm
Error/mm
(
1,2
)
10.0167
9.9483
0.0685
0.6838
(
1,3
)
20.0148
19.9231
0.0917
0.4582
(
1,4
)
35.0251
34.9509
0.0742
0.2118
(
1,5
)
45.0532
44.9354
0.1178
0.2614
(
1,6
)
55.0606
54.9890
0.0716
0.1300
(
2,3
)
10.0018
9.9749
0.0270
0.2696
(
2,4
)
25.0111
25.0026
0.0085
0.0339
(
2,5
)
35.0370
34.9871
0.0498
0.1422
(
2,6
)
45.0446
45.0408
0.0038
0.0085
(
3,4
)
15.0102
15.0278
0.0175
0.1168
(
3,5
)
25.0401
25.0123
0.0279
0.1114
(
3,6
)
35.0469
35.0659
0.0190
0.0543
(
4,5
)
10.0372
9.9845
0.0527
0.5247
(
4,6
)
20.0395
20.0381
0.0014
0.0069
(
5,6
)
10.0078
10.0537
0.0459
0.4582
Average error
0.0451
0.2314Figure 10
Solid circle target for accuracy analysis.From the analysis data in Table2, we can see that the proposed method has higher calibration accuracy, the average absolute measurement deviation is 0.0451 mm, and the average relative measurement error is 0.2314%, which can meet the precision requirements of most application areas.


## 5. Conclusion

In this paper, a geometric calibration method for line structured light sensor is presented. This method uses single circular target to construct geometric constraints, and both camera intrinsic parameter and light plane equation can be calibrated at the same time. The single circular target’s structure is simple and easy to process. The proposed algorithm has no complex or repeated calculation process, and it is simple, fast, flexible, and suitable for field calibration. The experimental results demonstrate that this method has higher calibration accuracy, the average measurement error is 0.0451 mm, and the relative error is 0.2314%, which meets the requirements of the detection accuracy in most application areas.



---

*Source: 1526706-2017-12-31.xml*