CN100470590C - Camera calibration method and calibration device used - Google Patents

Camera calibration method and calibration device used Download PDF

Info

Publication number
CN100470590C
CN100470590C CNB2007100514857A CN200710051485A CN100470590C CN 100470590 C CN100470590 C CN 100470590C CN B2007100514857 A CNB2007100514857 A CN B2007100514857A CN 200710051485 A CN200710051485 A CN 200710051485A CN 100470590 C CN100470590 C CN 100470590C
Authority
CN
China
Prior art keywords
image
point
camera
grid
monumented point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2007100514857A
Other languages
Chinese (zh)
Other versions
CN101013505A (en
Inventor
郑顺义
张剑清
施俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan University WHU filed Critical Wuhan University WHU
Priority to CNB2007100514857A priority Critical patent/CN100470590C/en
Publication of CN101013505A publication Critical patent/CN101013505A/en
Application granted granted Critical
Publication of CN100470590C publication Critical patent/CN100470590C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

本发明涉及一种用于相机标定的标定装置,由两个互相垂直的平面格网板组成,平面格网板上有平面格网和均匀分布的六个或六个以上标志点,每个标志点具有唯一的编码。本发明还提供了标定相机的方法,包括以下步骤:(1)采集上述标定装置的影像;(2)将得到的标志点的像点坐标与物方坐标进行一一对应;(3)投影平面格网点得到格网点的像点坐标的初值;(4)利用直线提取求交,获取格网点的像点坐标的精确值;(5)利用三维直接线性变换求解标定参数的初值;(6)用光束法平差进行迭代求解,获得相机的内外方位元素。本发明对标定装置拍摄一张影像后,后续标定过程由计算机自动完成。自动、快速是本发明的优点。

Figure 200710051485

The invention relates to a calibration device for camera calibration, which is composed of two plane grid plates perpendicular to each other, on the plane grid board there are plane grids and six or more mark points evenly distributed, each mark Points have unique codes. The present invention also provides a method for calibrating a camera, comprising the following steps: (1) collecting the image of the above-mentioned calibration device; (2) carrying out one-to-one correspondence between the image point coordinates of the obtained marker points and the object space coordinates; (3) projecting the plane The grid point obtains the initial value of the pixel coordinate of the grid point; (4) utilizes straight line extraction to intersect to obtain the precise value of the pixel coordinate of the grid point; (5) utilizes three-dimensional direct linear transformation to solve the initial value of the calibration parameter; (6 ) is solved iteratively by beam adjustment to obtain the internal and external orientation elements of the camera. In the present invention, after the calibration device shoots an image, the subsequent calibration process is automatically completed by a computer. Automatic and fast are the advantages of the present invention.

Figure 200710051485

Description

相机标定方法及所用标定装置 Camera calibration method and calibration device used

技术领域 technical field

本发明属相机标定技术领域,特别是涉及相机标定方法及所用标定装置。The invention belongs to the technical field of camera calibration, and in particular relates to a camera calibration method and a used calibration device.

背景技术 Background technique

求相机内部参数的过程称为标定。利用中心投影的影像恢复三维形状,一般进行相机标定是一个必须的步骤。相机标定的方法有多种。有基于平面标定场进行标定的方法(Z.Zhang:Flexible Camera Calibration by Viewing a Plane from Unknown Orientations.Proc of 7thInt.Conference on Computer Vision,Kerkyra,Greece.pp.666-673,Sept.1999.),这种方法需要拍摄至少两张不同角度的影像,因此需要移动平面标定场或相机,难以实现自动化;有基于三维控制场的标定,三维控制场难以维护,而且携带不方便;还有不需要任何标定场的自标定方法,自标定方法计算不稳定,在实际应用中采用的不多。另外,上述方法为了实现像点坐标与物方点坐标的对应,一般都需要人工指定几个点的对应。The process of finding the internal parameters of the camera is called calibration. To restore the 3D shape using the centrally projected image, camera calibration is generally a necessary step. There are several methods of camera calibration. There is a calibration method based on a plane calibration field (Z. Zhang: Flexible Camera Calibration by Viewing a Plane from Unknown Orientations. Proc of 7 th Int. Conference on Computer Vision, Kerkyra, Greece.pp.666-673, Sept.1999. ), this method needs to take at least two images from different angles, so it needs to move the plane calibration field or camera, which is difficult to realize automation; there are calibrations based on the 3D control field, which are difficult to maintain and inconvenient to carry; The self-calibration method that requires any calibration field is unstable in calculation and is rarely used in practical applications. In addition, in order to realize the correspondence between image point coordinates and object space point coordinates in the above method, it is generally necessary to manually specify the correspondence of several points.

发明内容 Contents of the invention

本发明针对上述问题,提出了一种简便的相机标定方法及所用标定装置,该方法简便且可以实现像点坐标与物方点坐标的自动对应,最终实现相机的自动标定。Aiming at the above problems, the present invention proposes a simple camera calibration method and the calibration device used. The method is simple and can realize automatic correspondence between image point coordinates and object space point coordinates, and finally realize automatic camera calibration.

本发明提供的技术方案是:一种用于相机标定的标定装置,由两个互相垂直的平面格网板组成,平面格网板上有平面格网和均匀分布的六个或六个以上标志点,每个标志点具有唯一的编码。The technical solution provided by the invention is: a calibration device for camera calibration, which is composed of two mutually perpendicular plane grid plates, on which there are plane grids and six or more uniformly distributed marks Points, each marker point has a unique code.

上述标志点由中心圆及圆环组成,圆环由若干等分弧段组成,每个弧段用黑色或者白色标识,且通过黑色和白色的排列构成每个标志点的唯一的编码。The above-mentioned mark points are composed of a central circle and a ring. The ring is composed of several equally divided arc segments. Each arc segment is marked with black or white, and the unique code of each mark point is formed by the arrangement of black and white.

本发明还提供了利用上述的标定装置标定相机的方法,包括以下步骤:The present invention also provides a method for calibrating a camera using the above calibration device, comprising the following steps:

(1)采集上述标定装置的影像(1) Collect the image of the above calibration device

用待标定相机拍摄标定装置的影像,然后通过计算机对影像进行逐行扫描,得到影像上的六个或六个以上标志点的像点坐标;Take the image of the calibration device with the camera to be calibrated, and then scan the image line by line through the computer to obtain the image point coordinates of six or more marker points on the image;

(2)将步骤(1)得到的标志点的像点坐标与物方坐标进行一一对应(2) Carry out one-to-one correspondence between the image point coordinates of the marker points obtained in step (1) and the object space coordinates

根据步骤(1)得到的标志点的编码以及预先设定的编码与物方坐标的对应关系,确定各标志点对应的物方坐标;According to the coding of the marking points obtained in step (1) and the correspondence between the preset coding and the object coordinates, determine the corresponding object coordinates of each marking point;

(3)投影平面格网点得到平面格网点的像点坐标的初值(3) Project the plane grid points to get the initial value of the image point coordinates of the plane grid points

根据步骤(2)得到的标志点的像点坐标与物方坐标的一一对应关系,建立平面透视变换,计算出影像上其他格网点的像点坐标的初值,并投影在影像上;According to the one-to-one correspondence between the image point coordinates of the marker points obtained in step (2) and the object space coordinates, a plane perspective transformation is established, and the initial values of the image point coordinates of other grid points on the image are calculated, and projected on the image;

(4)利用直线提取求交,获取格网点的像点坐标的精确值;(4) Utilize straight line extraction to intersect, obtain the precise value of the image point coordinate of grid point;

(5)利用三维直接线性变换求解标定参数的初值;(5) Using three-dimensional direct linear transformation to solve the initial value of the calibration parameter;

(6)用光束法平差进行迭代求解,获得相机的内外方位元素。(6) Iteratively solve by beam adjustment to obtain the internal and external orientation elements of the camera.

按照本发明,在上述步骤(1)中用待标定相机拍摄标定场的影像后,通过计算机对影像进行逐行扫描,找出影像上黑色弧段以确定这些黑色弧段所属的标志点;逆时针或顺时针方向绕标志点的中心对标志点的圆环进行360度的扫描,碰到黑色弧段就将该弧段的编码设为1,否则设为0;扫描结束后,任选一个0和1的分界点开始顺序列出,得到二进制码;通过对二进制码循环排序并将这些二进制码转为十进制,取其中的最大值作为该标志点的编码;再进行步骤(2)的操作。According to the present invention, after the image of the calibration field is taken with the camera to be calibrated in the above step (1), the image is scanned line by line by a computer to find out the black arc segments on the image to determine the marker points to which these black arc segments belong; Scan the circle of the marker point clockwise or clockwise around the center of the marker point for 360 degrees. When encountering a black arc segment, set the code of the arc segment to 1, otherwise set it to 0; after scanning, choose one The demarcation points of 0 and 1 are listed in order to obtain binary codes; by cyclically sorting the binary codes and converting these binary codes into decimal, the maximum value is taken as the code of the mark point; and then the operation of step (2) is performed .

本发明方法只需要对标定装置拍摄一张影像,其余过程(标志点的提取与识别、参数解算等)全部由计算机自动完成。本发明标定装置由互相垂直的两个平面组成,造价低廉,构造容易,克服了平面板没有深度信息的缺点,同时比三维控制场易于维护。标定装置上布置了一定数量的具有唯一编码的标志点,能够方便,快速的自动识别,提供足够的识别精度,使像点中心的精度达到子像素,能够避免大部分影像噪声的干扰,可以实现像点坐标与物方点坐标的自动对应,减少人工干预。The method of the present invention only needs to take an image of the calibration device, and the rest of the process (extraction and recognition of marker points, parameter calculation, etc.) are all automatically completed by the computer. The calibration device of the present invention is composed of two planes perpendicular to each other, has low cost and easy structure, overcomes the shortcoming of no depth information on the plane plate, and is easier to maintain than the three-dimensional control field. A certain number of marking points with unique codes are arranged on the calibration device, which can be conveniently and quickly automatically identified and provide sufficient recognition accuracy, so that the accuracy of the center of the image point can reach sub-pixels, which can avoid the interference of most image noise and can realize The automatic correspondence between image point coordinates and object space point coordinates reduces manual intervention.

附图说明 Description of drawings

图1为本发明方法流程框图;Fig. 1 is a flow chart of the method of the present invention;

图2为本发明标定装置示意图;Fig. 2 is a schematic diagram of the calibration device of the present invention;

图3为图2中的标注有二进制编码的标志点示意图。FIG. 3 is a schematic diagram of marker points marked with binary codes in FIG. 2 .

具体实施方式 Detailed ways

一、标定装置1. Calibration device

参见图2,本发明涉及两个互相垂直的平面组成的标定装置,并在两个平面上打上均匀的格网(格网由相互垂直的两组平行直线组成,直线的交点为格网点)。为了能够使像点坐标与物方点坐标一一对应,对每个格网点进行了编号:以O点为中心从下往上,从里到外用个位与十位表示列号,百位与千位表示行号,左边平面万位为1,右边平面万位为0。例如,11211表示左平面第12行11列,706表示右平面第7行第6列。接着在平面格网上摆放了一定数量的带有编码的标志点(下面简称标志点),目的在于进行标志点的自动识别以及和物方点坐标的自动对应,标志点的形状和分布如图2所示。Referring to Fig. 2, the present invention relates to the calibration device that two mutually perpendicular planes form, and mark uniform grid on two planes (grid is made up of two groups of parallel straight lines perpendicular to each other, and the intersection point of straight line is grid point). In order to enable one-to-one correspondence between the coordinates of the image point and the coordinates of the object space point, each grid point is numbered: from the bottom to the top with the O point as the center, from the inside to the outside, the column number is represented by the ones and tens, and the hundreds and The thousands place represents the line number, the ten thousand place on the left plane is 1, and the ten thousand place on the right plane is 0. For example, 11211 represents the 12th row and 11th column of the left plane, and 706 represents the 7th row and 6th column of the right plane. Then a certain number of coded marker points (hereinafter referred to as marker points) are placed on the plane grid, the purpose is to automatically identify the marker points and automatically correspond to the coordinates of the object space points. The shape and distribution of the marker points are shown in the figure 2.

二、标志点2. Marking points

1.具体设计。实现标志点的设计方案是:标志点的中心是一个圆,在圆点的周围有一圈具有一定宽度,并且被n等份的圆环(建议取n=4~12),每个弧段用黑或者白来表示,为了能够对圆环进行编号,黑色弧段用1表示,白色弧段用0表示。在两个平面上布置了一定数量(大于等于6个)的标志点,每个标志点都有一个唯一确定的编码,编码的规则如下介绍。图3显示了一个标志点的结构,在标志点的中心是一个圆,我们可以很方便的求取圆的中心作为该标志点的中心坐标。在圆的周围有一圈被8等份的圆环,每个弧段用黑或者白来表示,为了能够对圆环进行编号,黑色弧段用1表示,白色弧段用用0表示。然后逆时针读取这些编码,很显然根据开始位置的不同,有8种不同的可能:10101011,01010111,10101110,01011101,10111010,01110101,11101010,11010101。在这8个二进制数中,11101010(111010102=23410)是最大值,我们就将234作为该标志点的唯一编号。需要注意的是,并不是所有的正整数都对应着这样的一个编码环,我们只是用所有编码里最大的一个来标识这个标志点。另外一个需要注意的是,这里确定的标志点的编码并不是前面所述的格网点的编号,对于每个标志点对应的格网点的编号需要预先设定好,比如编码为234的标志点对应的格网点编号为11202(参见图2)。1. Specific design. The design scheme to realize the mark point is: the center of the mark point is a circle, and there is a ring with a certain width around the point, which is divided into n equal parts (it is recommended to take n=4~12), and each arc segment is used Black or white to represent, in order to be able to number the ring, the black arc segment is represented by 1, and the white arc segment is represented by 0. A certain number (greater than or equal to 6) of marker points are arranged on two planes, and each marker point has a unique code, and the code rules are introduced as follows. Figure 3 shows the structure of a marker point. The center of the marker point is a circle, and we can easily obtain the center of the circle as the center coordinate of the marker point. There is a ring of 8 equal parts around the circle, and each arc segment is represented by black or white. In order to be able to number the ring, the black arc segment is represented by 1, and the white arc segment is represented by 0. Then read these codes counterclockwise. Obviously, depending on the starting position, there are 8 different possibilities: 10101011, 01010111, 10101110, 01011101, 10111010, 01110101, 11101010, 11010101. Among these 8 binary numbers, 11101010 (11101010 2 =234 10 ) is the maximum value, so we use 234 as the unique number of this marker point. It should be noted that not all positive integers correspond to such a code ring, we just use the largest one among all codes to mark this mark point. Another thing to note is that the code of the marker point determined here is not the number of the grid point mentioned above. The number of the grid point corresponding to each marker point needs to be set in advance. For example, the marker point coded as 234 corresponds to The grid point number is 11202 (see Figure 2).

2.识别。根据影像的特点,利用梯度的变化对影像进行逐行扫描,可以方便快速的得到关于标志点的几块候选黑色区域。由于标志点与格网一起都会被扫描出来,所以在标志识别之前,最好按照如下的顺序对该区域进行判断,排除格网对标志点识别的干扰:2. Identification. According to the characteristics of the image, using the gradient change to scan the image line by line, it is convenient and fast to obtain several candidate black areas of the marker points. Since the marker points and the grid will be scanned together, before the marker recognition, it is best to judge the area in the following order to eliminate the interference of the grid on the marker point recognition:

(1)象素的个数:如果象素的个数太少,排除该区域。(1) Number of pixels: If the number of pixels is too small, exclude this area.

(2)宽度:对圆心和圆环的宽度设定一个最小阈值,排除小于该宽度的区域。(2) Width: Set a minimum threshold for the width of the center of the circle and the ring, and exclude areas smaller than the width.

(3)距离:对圆心到圆环的距离设定一个最大阈值,排除大于该距离的区域。(3) Distance: Set a maximum threshold for the distance from the center of the circle to the ring, and exclude areas greater than this distance.

在只剩下标志点区域的情况下,对标志点的几个区域根据到其他区域距离最短的原则确定该标志点的中心区域,并取该区域的重心为标志点的中心。接着,将中心一周划分为360个刻度,并从中心引出一条射线,从某个方向开始逆时针绕中心进行360度的扫描,碰到标志区域就将该刻度设为1,否则设为0。扫描结束后,对360个刻度联成一个圆环并从一个0,1的分界点开始进行统计,以1/8圆为一个单位大小,如果在一个单位长度内,刻度均为1,则认为这个弧段为1,否则就为0。这样,就将整个圆环转换为一个8位的二进制码。通过对二进制码循环排序并将这些二进制的编码转为十进制作为该编码对应的编码值,根据读取的起始位置不同,有不同的编码值,取所有编码值的最大值作为该标志点的编码,显而易见,每个标志点对应的编码值是唯一的。根据该标志点编码以及预先设定的编码与格网点编号的对应关系,可以确定该标志点对应的物方点的编号。这样,就完成了像点坐标与物方点坐标的一一对应。In the case of only the mark point area, determine the center area of the mark point for several areas of the mark point according to the principle of the shortest distance to other areas, and take the center of gravity of the area as the center of the mark point. Then, divide the center circle into 360 scales, and draw a ray from the center, start from a certain direction to scan 360 degrees counterclockwise around the center, set the scale to 1 when it touches the marked area, otherwise set it to 0. After scanning, 360 scales are connected into a ring and counted from a 0, 1 dividing point, with 1/8 circle as a unit size, if the scales are all 1 within a unit length, it is considered 1 for this segment, 0 otherwise. In this way, the entire ring is converted into an 8-bit binary code. By cyclically sorting the binary codes and converting these binary codes into decimals as the code values corresponding to the codes, there are different code values depending on the starting position of the reading, and the maximum value of all code values is taken as the code value of the mark point Encoding, obviously, the encoding value corresponding to each marker point is unique. According to the marker point code and the preset correspondence between the code and the grid point number, the number of the object space point corresponding to the marker point can be determined. In this way, the one-to-one correspondence between the image point coordinates and the object space point coordinates is completed.

3.获取坐标。根据得到的这些标志点的像点坐标及相应的物方坐标值,建立平面透视变换,计算出影像上其他格网点的像点坐标的初值,并投影在影像上。经平面透视变换计算出来的像点坐标并不十分的准确,为了获得格网点的精确坐标,采用直线提取求交的方法(如直线模板匹配法),求出格网初值点附近相交的2段直线的精确位置,并将它们的交点作为格网点的精确坐标。3. Get the coordinates. According to the image point coordinates of these marker points and the corresponding object space coordinate values obtained, a plane perspective transformation is established, and the initial values of the image point coordinates of other grid points on the image are calculated, and projected on the image. The image point coordinates calculated by the plane perspective transformation are not very accurate. In order to obtain the precise coordinates of the grid points, the method of extracting and intersecting straight lines (such as the straight line template matching method) is used to find the 2 points that intersect near the initial value points of the grid. The precise position of the segment lines, and their intersections as the precise coordinates of the grid points.

三 标定方法:Three calibration methods:

1 理论基础1 Theoretical basis

直接线性变换(directlineartransformation DLT)是建立像点坐标和物点坐标直接线性关系的算法,处理时不需要摄像机内外方位元素的初值。因此利用三维直接线性变换来求取摄影机的初值,3D DLT模型可表示为:Direct linear transformation (direct linear transformation DLT) is an algorithm that establishes a direct linear relationship between image point coordinates and object point coordinates, and does not require the initial value of the camera's internal and external orientation elements during processing. Therefore, using three-dimensional direct linear transformation to obtain the initial value of the camera, the 3D DLT model can be expressed as:

xx == LL 11 Xx ++ LL 22 YY ++ LL 33 ZZ ++ LL 44 LL 99 Xx ++ LL 1010 YY ++ LL 1111 ZZ ++ 11

y = L 5 X + L 6 Y + L 7 Z + L 8 L 9 X + L 10 Y + L 11 Z + 1 (1) the y = L 5 x + L 6 Y + L 7 Z + L 8 L 9 x + L 10 Y + L 11 Z + 1 (1)

式(1)中,L1,L2,L3,L4,L5,L6,L7,L8,L9,L10,L11为三维直接线性变换的11个变换参数;X,Y,Z是三维控制场中格网点的空间坐标;x,y是相应的像坐标。为了求解这11个参数,至少需要已知6个像点及其对应的物方点的空间坐标。当像点个数大于6个时,可用最小二乘来求解这个超定方程组。In formula (1), L 1 , L 2 , L 3 , L 4 , L 5 , L 6 , L 7 , L 8 , L 9 , L 10 , and L 11 are the 11 transformation parameters of three-dimensional direct linear transformation; X , Y, Z are the space coordinates of grid points in the three-dimensional control field; x, y are the corresponding image coordinates. In order to solve these 11 parameters, at least 6 image points and the spatial coordinates of their corresponding object space points need to be known. When the number of image points is greater than 6, the least squares can be used to solve the overdetermined equations.

摄影时相机的内方位元素x0.y0.f和外方位元素

Figure C200710051485D0006171550QIETU
ω,κ,Xs,Ys,Zs都已经包含在L1至L11的系数中,经反算可以得出:Camera's inner orientation element x 0 .y 0 .f and outer orientation element during photography
Figure C200710051485D0006171550QIETU
ω, κ, X s , Y s , and Z s are all included in the coefficients from L 1 to L 11 , and can be obtained by inverse calculation:

内方位元素:Inner Orientation Elements:

x0=(L1L9+L2L10+L3L11)L′x 0 =(L 1 L 9 +L 2 L 10 +L 3 L 11 )L'

y0=(L5L9+L6L10+L7L11)L′y 0 =(L 5 L 9 +L 6 L 10 +L 7 L 11 )L'

ff xx == -- xx 00 22 ++ (( LL 11 22 ++ LL 22 22 ++ LL 33 22 )) LL ′′ -- -- -- (( 22 ))

ff ythe y == -- ythe y 00 22 ++ (( LL 55 22 ++ LL 66 22 ++ LL 77 22 )) LL ′′

f=(fx+fy)/2f=(f x +f y )/2

其中 L ′ 2 = 1 / ( L 9 2 + L 10 2 + L 11 2 ) ; in L ′ 2 = 1 / ( L 9 2 + L 10 2 + L 11 2 ) ;

外方位元素;outer orientation element;

LL 11 Xx sthe s ++ LL 22 YY sthe s ++ LL 33 ZZ sthe s == -- LL 44 LL 55 Xx sthe s ++ LL 66 YY sthe s ++ LL 77 ZZ sthe s == -- LL 88 LL 99 Xx sthe s ++ LL 1010 YY sthe s ++ LL 1111 ZZ sthe s == -- 11 -- -- -- (( 33 ))

a3=L9L′a 3 =L 9 L'

b3=L10L′b 3 =L 10 L'

                          (4)(4)

c3=L11L′c 3 =L 11 L'

a2=(L5+L9y0)L′/fx a 2 =(L 5 +L 9 y 0 )L'/f x

Figure C200710051485D00067
Figure C200710051485D00067

解得像片的各L系数后,即可根据上述各关系式解求相应像片的9个独立的参数。并把它作为光束法平差的初值。After solving the L coefficients of the photo, the nine independent parameters of the corresponding photo can be solved according to the above-mentioned relational expressions. And use it as the initial value of bundle adjustment.

解算出相机的内外方位元素初值后,接着可用摄影测量中常用的光束法平差进行相机的标定。对非专业相机,镜头的畸变一般比较大,考虑径向畸变和偏心畸变的影响,采用如下的改正模型:After calculating the initial value of the camera's internal and external orientation elements, the camera can then be calibrated using bundle adjustment commonly used in photogrammetry. For non-professional cameras, the distortion of the lens is generally relatively large. Considering the influence of radial distortion and eccentric distortion, the following correction model is adopted:

Δx=(x-x0)(k1r2+k2r4)+p1(r2+2(x-x0)2)+2p2(x-x0)(y-y0)Δx=(xx 0 )(k 1 r 2 +k 2 r 4 )+p 1 (r 2 +2(xx 0 ) 2 )+2p 2 (xx 0 )(yy 0 )

                      (6)  (6)

Δy=(y-y0)(k1r2+k2r4)+p1(r2+2(y-y0)2)+2p2(x-x0)(y-y0)Δy=(yy 0 )(k 1 r 2 +k 2 r 4 )+p 1 (r 2 +2(yy 0 ) 2 )+2p 2 (xx 0 )(yy 0 )

其中,r2=(x-x0)2+(y-y0)2;k1,k2称为径向畸变差,p1,p2是偏心畸变差将该畸变带入共线条件方程[7,8]:Among them, r 2 =(xx 0 ) 2 +(yy 0 ) 2 ; k 1 and k 2 are called the radial distortion difference, p 1 and p 2 are the eccentric distortion difference and bring the distortion into the collinear conditional equation [7, 8]:

xx -- xx 00 -- ΔxΔx == -- ff xx aa 11 (( Xx -- Xx sthe s )) ++ bb 11 (( YY -- YY sthe s )) ++ cc 11 (( ZZ -- ZZ sthe s )) aa 33 (( Xx -- Xx sthe s )) ++ bb 33 (( YY -- YY sthe s )) ++ cc 33 (( ZZ -- ZZ sthe s ))

y - y 0 - Δy = - f x a 2 ( X - X s ) + b 2 ( Y - Y s ) + c 2 ( Z - Z s ) a 3 ( X - X s ) + b 3 ( Y - Y s ) + c 3 ( Z - Z s ) (7) the y - the y 0 - Δy = - f x a 2 ( x - x the s ) + b 2 ( Y - Y the s ) + c 2 ( Z - Z the s ) a 3 ( x - x the s ) + b 3 ( Y - Y the s ) + c 3 ( Z - Z the s ) (7)

对上式用泰勒公式线性化得到误差方程式:Linearize the above formula with Taylor's formula to get the error equation:

++ δxδx δδ ZZ sthe s ΔΔ ZZ sthe s ++ δxδx δδ kk 11 ΔΔ kk 11 ++ δxδx δδ kk 22 ΔΔ kk 22 ++ δxδx δδ pp 11 ΔΔ pp 11 ++ δxδx δδ pp 22 ΔΔ pp 22 ++ δxδx δXδX ΔXΔX ++ δxδx δYδY ΔYΔY ++ δxδx δZδZ ΔZΔZ -- ll xx

                                                             各系数Coefficients

Figure C200710051485D00075
Figure C200710051485D00075

++ δyδy δδ ZZ sthe s ΔΔ ZZ sthe s ++ δyδy δδ kk 11 ΔΔ kk 11 ++ δyδy δδ kk 22 ΔΔ kk 22 ++ δyδy δδ pp 11 ΔΔ pp 11 ++ δyδy δδ pp 22 ΔΔ pp 22 ++ δyδy δXδX ΔXΔX ++ δyδy δYδY ΔYΔY ++ δyδy δZδZ ΔZΔZ -- ll ythe y

值及常数值通过对共线方程求偏导得到。Values and constants are obtained by taking partial derivatives of collinear equations.

2 实现过程(参见图1)2 Implementation process (see Figure 1)

(1)本发明标定装置是2块互相垂直的平板组成,在每个平面上布置了平面格网,除此之外,还有一些均匀分布的标志点。(1) The calibration device of the present invention is composed of two mutually perpendicular flat plates, and a plane grid is arranged on each plane. Besides, there are some evenly distributed marking points.

(2)采集影像前,调整好标定装置与相机的距离,使成像清晰,并且相机的像幅能够包括所有的标志点,采集一张影像输入计算机。(2) Before collecting the image, adjust the distance between the calibration device and the camera to make the image clear, and the image frame of the camera can include all the marker points, and collect an image and input it into the computer.

(3)由计算机自动提取标志点并解码。(3) Automatically extract and decode marker points by computer.

(4)投影格网点,并进行格网点精确对准(参见具体实施方式二、3)。(4) Projecting the grid points and performing precise alignment of the grid points (see specific implementation methods 2 and 3).

(5)三维DLT变换求标定初值,然后用光束法平差进行迭代求解,获得相机的内外方位元素,即实现了相机的标定。(5) Three-dimensional DLT transformation is used to calculate the initial calibration value, and then iteratively solves it by beam adjustment to obtain the internal and external orientation elements of the camera, which realizes the calibration of the camera.

显然,本领域的技术人员可以对本发明进行适当的调整和变形而不脱离本发明的精神和范围。这样,倘若这些调整和变形属于本发明要求及其等同技术的范畴,则本发明也意图包含这些调整和变形在内。Obviously, those skilled in the art can make appropriate adjustments and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these adjustments and modifications belong to the requirements of the present invention and the scope of equivalent technologies, the present invention also intends to include these adjustments and modifications.

Claims (4)

1. caliberating device that is used for camera calibration, it is characterized in that: be made up of two mutually perpendicular planar grid plates, planar grid and equally distributed six or six above monumented points are arranged on the planar grid plate, each monumented point has unique encoding.
2. caliberating device according to claim 1, it is characterized in that: monumented point is made up of center circle and annulus, annulus is made up of some five equilibrium segmental arcs, and each segmental arc identifies with black or white, and constitutes the unique encoding of each monumented point by the arrangement of black and white.
3. the method for utilizing the described caliberating device of claim 1 to demarcate camera is characterized in that may further comprise the steps:
(1) image of the described caliberating device of collection claim 1
With the image of camera shooting caliberating device to be calibrated, by computing machine image is lined by line scan then, obtain the picpointed coordinate of six or six above monumented points on the image;
(2) picpointed coordinate of the monumented point that step (1) is obtained carries out corresponding one by one with object coordinates
The coding of the monumented point that obtains according to step (1) and the corresponding relation of predefined coding and object coordinates are determined the object coordinates of each monumented point correspondence;
(3) the projection plane grid points obtains the initial value of the picpointed coordinate of planar grid point
The picpointed coordinate of the monumented point that obtains according to step (2) and the one-to-one relationship of object coordinates are set up the plane perspective conversion, calculate the initial value of the picpointed coordinate of other grid points on the image, and are projected on the image;
(4) utilize straight line to extract and ask friendship, obtain the exact value of the picpointed coordinate of grid points;
(5) utilize three-dimensional direct linear transformation to find the solution the initial value of calibrating parameters;
(6) carry out iterative with bundle adjustment, obtain the s internal and external orientation of camera.
4. the method for utilizing the described caliberating device of claim 2 to demarcate camera is characterized in that may further comprise the steps:
(1) image of the described caliberating device of collection claim 2
Take the image of caliberating device with camera to be calibrated, by computing machine image is lined by line scan then, find out black segmental arc on the image to determine the monumented point under these black segmental arcs; Counterclockwise or clockwise direction is carried out the scannings of 360 degree around the center of monumented point to the annulus of monumented point, runs into the black segmental arc and just the coding of this segmental arc is made as 1, otherwise be made as 0; Behind the end of scan, optional one 0 and 1 separation begin order to be listed, and obtains binary code; By transferring the decimal system to, get wherein maximal value as the coding of this monumented point to the binary code cyclic ordering and with these binary codes;
(2) picpointed coordinate of the monumented point that step (1) is obtained carries out corresponding one by one with the object space point coordinate
The coding of the monumented point that obtains according to step (1) and the corresponding relation of predefined coding and object space point coordinate are determined the object space point coordinate of each monumented point correspondence;
(3) the projection plane grid points obtains the initial value of the picpointed coordinate of planar grid point
The picpointed coordinate of the monumented point that obtains according to step (2) and the one-to-one relationship of object space point coordinate are set up the plane perspective conversion, calculate the initial value of the picpointed coordinate of other grid points on the image, and are projected on the image;
(4) utilize straight line to extract and ask friendship, obtain the exact value of the picpointed coordinate of grid points;
(5) utilize three-dimensional direct linear transformation to find the solution the initial value of calibrating parameters;
(6) carry out iterative with bundle adjustment, obtain the s internal and external orientation of camera.
CNB2007100514857A 2007-02-05 2007-02-05 Camera calibration method and calibration device used Expired - Fee Related CN100470590C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100514857A CN100470590C (en) 2007-02-05 2007-02-05 Camera calibration method and calibration device used

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100514857A CN100470590C (en) 2007-02-05 2007-02-05 Camera calibration method and calibration device used

Publications (2)

Publication Number Publication Date
CN101013505A CN101013505A (en) 2007-08-08
CN100470590C true CN100470590C (en) 2009-03-18

Family

ID=38701002

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100514857A Expired - Fee Related CN100470590C (en) 2007-02-05 2007-02-05 Camera calibration method and calibration device used

Country Status (1)

Country Link
CN (1) CN100470590C (en)

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2458927B (en) * 2008-04-02 2012-11-14 Eykona Technologies Ltd 3D Imaging system
US8373763B2 (en) * 2008-05-22 2013-02-12 GM Global Technology Operations LLC Self calibration of extrinsic camera parameters for a vehicle camera
CN101598985B (en) * 2008-06-03 2011-10-19 广达电脑股份有限公司 Image processing device and method for generating coordinate correction points
CN101414380B (en) * 2008-11-07 2011-05-04 浙江大学 Method for calibrating simple graph of panorama camera
CN101629822B (en) * 2009-08-10 2012-11-21 张征宇 Multi-camera movable photography measuring method in vibration environment
JP4907725B2 (en) * 2010-03-23 2012-04-04 シャープ株式会社 Calibration device, defect detection device, defect repair device, display panel, display device, calibration method
CN101882313B (en) * 2010-07-14 2011-12-21 中国人民解放军国防科学技术大学 Calibration method of correlation between single line laser radar and CCD (Charge Coupled Device) camera
CN102054276B (en) * 2010-12-24 2013-01-23 北京大学 Camera calibration method and system for object three-dimensional geometrical reconstruction
CN102789644B (en) * 2012-07-18 2014-10-15 兰州大学 Novel camera calibration method based on two crossed straight lines
CN102855728A (en) * 2012-09-21 2013-01-02 北京智安邦科技有限公司 Automatic calibration method of image-based fire detector
CN104048649B (en) * 2013-03-15 2016-08-03 南京中观软件技术有限公司 A kind of multi-view images and the rapid registering method of threedimensional model
CN104075736A (en) * 2014-07-11 2014-10-01 北京林业大学 Method for determining internal and external orientation elements of common digital camera
US9596459B2 (en) * 2014-09-05 2017-03-14 Intel Corporation Multi-target camera calibration
CN104376560B (en) * 2014-11-17 2024-04-09 国家电网公司 Multifunctional camera calibration method and device based on optical projector
CN105261010B (en) * 2015-09-18 2017-12-15 北京林业大学 A kind of camera Calibration method for being not required to control point coordinate measurement
CN105424058B (en) * 2015-11-06 2017-11-14 中国人民解放军信息工程大学 Digital camera projection centre position method for precisely marking based on photogrammetric technology
CN105574886A (en) * 2016-01-28 2016-05-11 多拉维(深圳)技术有限公司 High-precision calibration method of handheld multi-lens camera
CN106023142B (en) * 2016-05-06 2019-03-01 北京信息科技大学 Utilize the algorithm of the photogrammetric camera of coplanar line array calibrating
CN109285194B (en) * 2018-09-29 2021-06-29 人加智能机器人技术(北京)有限公司 Camera calibration board and camera calibration data acquisition method
CN111630851A (en) * 2018-10-10 2020-09-04 深圳配天智能技术研究院有限公司 Camera calibration device, system and method and device with storage function
TWI680436B (en) * 2018-12-07 2019-12-21 財團法人工業技術研究院 Depth camera calibration device and method thereof
CN110093666B (en) * 2019-04-15 2021-03-02 中国科学院上海光学精密机械研究所 Device and method for eliminating impurities at the bottom of KDP crystal growth groove
CN110055578B (en) * 2019-04-15 2021-03-02 中国科学院上海光学精密机械研究所 Device and method for eliminating mixed crystals on crystal carrier in KDP (potassium dihydrogen phosphate) crystal growth process
CN110472451B (en) * 2019-07-05 2021-03-30 南京航空航天大学 An artificial landmark and solution method for AGV positioning based on monocular camera
CN111145268B (en) * 2019-12-26 2023-10-31 四川航天神坤科技有限公司 Video registration method and device
CN112763495A (en) * 2020-12-24 2021-05-07 苏州赛众自动化科技有限公司 Mobile phone battery size and appearance defect detection system and detection method
CN112509067B (en) * 2021-02-02 2021-04-27 中智行科技有限公司 Multi-sensor combined calibration method and device, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
3-D CAMERA CALIBRATION USING VANISHING POINTCONCEPT. William Chen, Bernard C. Jiang.Pattern Recognition,Vol.24 No.1. 1991 *
一种新的基于灭点的相机标定方法. 谢文寒,张祖勋,张剑清.哈尔滨工业大学学报,第35卷第11期. 2003 *
利用二维DLT及光书法平差进行数字摄像机标定. 张永军,张祖勋,张剑清.武汉大学学报,第27卷第6期. 2002 *

Also Published As

Publication number Publication date
CN101013505A (en) 2007-08-08

Similar Documents

Publication Publication Date Title
CN100470590C (en) Camera calibration method and calibration device used
CN102376089B (en) Target correction method and system
CN109598762B (en) High-precision binocular camera calibration method
CN100583151C (en) Double-camera calibrating method in three-dimensional scanning system
CN102175261B (en) Visual measuring system based on self-adapting targets and calibrating method thereof
CN107133989A (en) A kind of 3 D scanning system parameter calibration method
CN109859272A (en) A kind of auto-focusing binocular camera scaling method and device
CN110068270A (en) A kind of monocular vision box volume measurement method based on multi-line structured light image recognition
CN113129430B (en) Underwater three-dimensional reconstruction method based on binocular structured light
CN104677277B (en) A kind of method and system for measuring object geometric attribute or distance
CN102402785B (en) Camera self-calibration method based on quadratic curves
CN113920205A (en) Calibration method of non-coaxial camera
CN104457710B (en) Aviation digital photogrammetry method based on non-metric digital camera
CN101551907B (en) Method for multi-camera automated high-precision calibration
CN101727670A (en) Flexible calibrating method and device for variable-format multiple-camera system
CN109272555B (en) A method of obtaining and calibrating external parameters of RGB-D camera
CN101586943A (en) Method for calibrating structure light vision transducer based on one-dimensional target drone
CN105654547A (en) Three-dimensional reconstruction method
CN102103746A (en) Method for calibrating parameters in camera through solving circular ring points by utilizing regular tetrahedron
CN105844701A (en) Sequential-image three-dimensional modeling method
CN105118086A (en) 3D point cloud data registering method and system in 3D-AOI device
CN104964669B (en) Class cylinder historical relic object orthography generation method
US11941852B2 (en) Three-dimensional measurement device, three-dimensional measurement method, and three-dimensional measurement program
CN115937326A (en) A rapid on-site calibration method for large field of view cameras suitable for complex working conditions
CN110986760B (en) Three-dimensional reconstruction-based method and system for checking size of special-shaped structure

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090318

Termination date: 20110205