[go: up one dir, main page]

CN106971408A - A kind of camera marking method based on space-time conversion thought - Google Patents

A kind of camera marking method based on space-time conversion thought Download PDF

Info

Publication number
CN106971408A
CN106971408A CN201710181821.3A CN201710181821A CN106971408A CN 106971408 A CN106971408 A CN 106971408A CN 201710181821 A CN201710181821 A CN 201710181821A CN 106971408 A CN106971408 A CN 106971408A
Authority
CN
China
Prior art keywords
point
camera
laser
time
coordinate
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.)
Granted
Application number
CN201710181821.3A
Other languages
Chinese (zh)
Other versions
CN106971408B (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.)
Dalian University of Technology
Original Assignee
Dalian University of Technology
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 Dalian University of Technology filed Critical Dalian University of Technology
Priority to CN201710181821.3A priority Critical patent/CN106971408B/en
Publication of CN106971408A publication Critical patent/CN106971408A/en
Application granted granted Critical
Publication of CN106971408B publication Critical patent/CN106971408B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30244Camera pose

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

本发明一种基于时空转换思想的摄像机标定方法属于计算机视觉检测以及图像检测领域,涉及一种基于时空转换思想的摄像机标定方法。该方法通过两个以一定角度相互定位的转台和安装在其中一个转台的激光器组成立体转台装置,通过两个转台相互独立的运动控制激光器,使激光点在墙壁上扫掠,再通过时间与空间的转换思想,获得扫掠的距离和转台旋转时间的关系式,使用摄像机在对应时间点对激光点图像进行拍摄,获得大量对应的二维空间特征点,然后根据小孔成像模型原理,分别得出摄像机的内参数和外参数。本方法执行标定时不需要占用过多空间,投射靶点的速度也很快,节省标定时间,因此可以有效地适应加工现场环境。

The invention relates to a camera calibration method based on the idea of time-space conversion, which belongs to the field of computer vision detection and image detection, and relates to a camera calibration method based on the idea of time-space conversion. In this method, two turntables positioned at a certain angle to each other and a laser installed on one of the turntables form a three-dimensional turntable device. The laser is controlled by the independent motion of the two turntables to sweep the laser point on the wall, and then passes through time and space. According to the transformation idea, obtain the relational expression between the sweeping distance and the rotation time of the turntable, use the camera to shoot the laser point image at the corresponding time point, obtain a large number of corresponding two-dimensional space feature points, and then according to the principle of the pinhole imaging model, respectively get Intrinsic and extrinsic parameters of the camera. The method does not need to occupy too much space when performing calibration, and the speed of projecting target points is also very fast, which saves calibration time, and thus can effectively adapt to the environment of the processing site.

Description

一种基于时空转换思想的摄像机标定方法A camera calibration method based on the idea of time-space transformation

技术领域technical field

本发明属于计算机视觉检测以及图像检测领域,涉及一种基于时空转换思想的摄像机标定方法。The invention belongs to the field of computer vision detection and image detection, and relates to a camera calibration method based on the idea of time-space conversion.

背景技术Background technique

在计算机视觉及图像检测应用中,为确定空间物体表面某点的三维几何位置与其在图像中二维对应点之间的相互关系,必须建立摄像机成像的几何模型,这些几何模型参数就是摄像机参数。在大多数条件下这些参数必须通过实验与计算才能得到,这个求解参数的过程即为摄像机标定。因此摄像机参数的标定是视觉检测中非常关键的环节,其标定结果的精度及算法的稳定性直接影响摄像机工作产生结果的准确性。因此,简化摄像机标定,提高标定精度是目前科研工作的重点所在。但是已有的常用标定方式几乎都需要标定板或其他立体参照物作为目标协助标定,然后通过摄像机多组拍摄,来获取摄像机的相关参数。但是在进行现场测量时,由于复杂的环境,标定的时间和空间极其有限,被测物的移动会导致常规的标定方法难以快速有效的完成标定,造成测量周期延长,测量的实时性降低以及视觉测量的精度下降。In computer vision and image detection applications, in order to determine the relationship between the three-dimensional geometric position of a point on the surface of a space object and its two-dimensional corresponding point in the image, it is necessary to establish a geometric model of camera imaging, and these geometric model parameters are camera parameters. Under most conditions, these parameters must be obtained through experiments and calculations. The process of solving the parameters is camera calibration. Therefore, the calibration of camera parameters is a very critical link in visual inspection. The accuracy of the calibration results and the stability of the algorithm directly affect the accuracy of the results produced by the camera. Therefore, simplifying camera calibration and improving calibration accuracy are the focus of current research work. However, the existing commonly used calibration methods almost all require a calibration plate or other stereoscopic reference objects as targets to assist calibration, and then obtain relevant parameters of the camera through multiple groups of cameras. However, when performing on-site measurement, due to the complex environment, the time and space for calibration are extremely limited, and the movement of the measured object will make it difficult for conventional calibration methods to complete the calibration quickly and effectively, resulting in extended measurement periods, reduced real-time measurement and visual The accuracy of the measurement decreases.

目前常用的标定方法是张正友在《A Flexible New Technique for CameraCalibration》一文中提出的基于平面标定板的标定方法,该方法是介于传统标定和自标定之间的一种方法,它只需要摄像机对某个标定板从不同方向拍摄多幅图片,通过标定板上每个特征点和其像平面的像点间的对应关系,即每一幅图像的单应矩阵来进行摄像机的标定,有较为广泛的应用。该方法具有较高精度,但是需要标定板来辅助标定,标定精度依赖于标定板的精度,而且标定板价格昂贵,同时张氏标定法算法复杂,标定耗时长,标定时需要占据大量的空间,在现场进行测量时不方便,因此不适合摄像机参数现场在线调整。At present, the commonly used calibration method is the calibration method based on the plane calibration board proposed by Zhang Zhengyou in the article "A Flexible New Technique for CameraCalibration". This method is a method between traditional calibration and self-calibration. It only needs the camera to A calibration board takes multiple pictures from different directions, and the camera is calibrated through the correspondence between each feature point on the calibration board and the image point of its image plane, that is, the homography matrix of each image. Applications. This method has high precision, but it needs a calibration plate to assist in calibration. The calibration accuracy depends on the accuracy of the calibration plate, and the calibration plate is expensive. At the same time, the algorithm of Zhang’s calibration method is complicated, the calibration takes a long time, and it needs to occupy a lot of space during calibration. It is inconvenient to measure on site, so it is not suitable for on-line adjustment of camera parameters.

发明内容Contents of the invention

本发明所要解决的技术问题是克服现有标定方法的不足,针对在工业测量现场缺少有效的摄像机标定方法的情况,发明一种基于时空转换思想的摄像机标定方法。该方法利用激光在墙壁平面上的扫掠,获得大量位置特征点信息,根据获得的特征点对摄像机的参数进行标定,获得包括光轴通过像平面的主点坐标以及等效焦距,摄像机的旋转矩阵以及摄像机间的平移矩阵等参数。本方法执行标定时不需要占用过多空间,投射靶点的速度也很快,节省标定时间,因此可以有效地适应加工现场环境。The technical problem to be solved by the present invention is to overcome the shortcomings of the existing calibration methods, and to invent a camera calibration method based on the idea of time-space conversion for the lack of effective camera calibration methods in industrial measurement sites. This method uses laser scanning on the wall plane to obtain a large number of position feature point information, and calibrates the parameters of the camera according to the obtained feature points, and obtains the coordinates of the principal point including the optical axis passing through the image plane, the equivalent focal length, and the rotation of the camera. Matrix and the translation matrix between cameras and other parameters. The method does not need to occupy too much space when performing calibration, and the speed of projecting target points is also very fast, which saves calibration time, and thus can effectively adapt to the environment of the processing site.

本发明采取的技术方案是一种基于时空转换思想的摄像机标定方法,该方法通过两个以一定角度相互定位的转台和安装在其中一个转台的激光器组成立体转台装置,通过两个转台相互独立的运动控制激光器,使激光点在墙壁上扫掠,再通过时间与空间的转换思想,获得扫掠的距离和转台旋转时间的关系式,使用摄像机在对应时间点对激光点图像进行拍摄,获得大量对应的二维空间特征点,然后根据小孔成像模型原理,分别得出摄像机的内参数和外参数,方法的具体步骤如下:The technical solution adopted by the present invention is a camera calibration method based on the idea of time-space conversion. In this method, two turntables positioned at a certain angle and a laser installed on one of the turntables form a three-dimensional turntable device. The two turntables are independent of each other. The motion controls the laser to make the laser point sweep on the wall, and then through the transformation of time and space, the relationship between the sweeping distance and the turntable rotation time is obtained, and the camera is used to shoot the laser point image at the corresponding time point to obtain a large number of The corresponding two-dimensional space feature points, and then according to the principle of the pinhole imaging model, the internal parameters and external parameters of the camera are respectively obtained. The specific steps of the method are as follows:

步骤1:立体转台装置的装配Step 1: Assembly of Stereoscopic Turntable Device

立体转台装置中,上、下转台1、2相互以一定角度定位安装,将激光器3固定在其中一个转台上,通过两个转台相互独立的运动控制激光器3,实现激光器3在墙壁6平面的任意处投射激光点,同时使用摄像机4对激光靶点图像进行拍摄,获得包含激光靶点特征点信息的图像;In the three-dimensional turntable device, the upper and lower turntables 1 and 2 are positioned and installed at a certain angle to each other, the laser 3 is fixed on one of the turntables, and the laser 3 is controlled by the independent motion of the two turntables to realize the arbitrary position of the laser 3 on the wall 6 plane. Project the laser point at the place, and use the camera 4 to shoot the image of the laser target point at the same time, and obtain an image containing the feature point information of the laser target point;

步骤2:利用摄像机分时多次拍摄墙壁上特征点,获得多组图像信息数据。Step 2: Use the camera to take pictures of the feature points on the wall multiple times in time-sharing to obtain multiple sets of image information data.

使用立体转台设备在目标墙壁上投射多组激光靶点,同时多次拍摄,在拍摄的每一组图像中,通过时空转换关系式求出各个时间点拍摄图像中特征点的实际尺寸。Use the three-dimensional turntable equipment to project multiple sets of laser target points on the target wall, and shoot multiple times at the same time. In each set of images captured, the actual size of the feature points in the images captured at each time point is obtained through the space-time conversion relationship.

公式(1)为根据附图2推导得出的时空转换关系式,其中:L为特征点与初始点的实际尺寸,从附图2中可以看出,该未知量是由旋转激光靶点构成的假想圆,在墙壁上的速度投影的积分得到的,其速度大小为w r,投影角为α-θ,因此需要记录测量其他相关变量r、θ、L、α、w、t;其中r为初始点到激光器的距离,θ为初始点速度与L的夹角,α为特征点速度与L的夹角,w为转台的旋转角速度,t为转台的旋转时间。利用已知参数带入公式(1)中,可以求解标定过程中特征点与初始点的实际尺寸,即特定的时间点和空间特征点位置的关系;根据不同时刻相机拍摄的多组投射点图像,可以求解每一组摄像机标定中的特征点的位置信息。Formula (1) is the space-time conversion relation derived according to the accompanying drawing 2, wherein: L is the actual size of the feature point and the initial point, as can be seen from the accompanying drawing 2, the unknown quantity is composed of the rotating laser target The imaginary circle of is obtained by the integral of the velocity projection on the wall, its velocity is w r , and the projection angle is α-θ, so it is necessary to record and measure other related variables r, θ, L, α, w, t; where r is The distance from the initial point to the laser, θ is the angle between the speed of the initial point and L, α is the angle between the speed of the feature point and L, w is the rotation angular velocity of the turntable, and t is the rotation time of the turntable. Using the known parameters into the formula (1), the actual size of the feature point and the initial point in the calibration process can be solved, that is, the relationship between a specific time point and the position of the spatial feature point; according to multiple sets of projection point images taken by cameras at different times , the position information of the feature points in each group of camera calibration can be solved.

以墙壁上任一特征点为坐标原点,以墙壁平面为X O Y平面,建立空间立体坐标系,称为世界坐标系;由于墙壁上各个特征点实际尺寸已知,所以墙壁上各个特征点在世界坐标系下的X轴坐标和Y轴坐标已知。当墙面近似为理想平面时,Z轴坐标为零;当墙面并非理想平面时,激光器扫掠获得的特征点具有三维信息,各个特征点Z轴方向信息可以由极坐标(L,β)表示,其中极坐标中参数的求解根据附图3可以得到如下公式:Take any feature point on the wall as the coordinate origin and the wall plane as the X O Y plane to establish a three-dimensional coordinate system in space, which is called the world coordinate system; since the actual size of each feature point on the wall is known, each feature point on the wall is in the world coordinate system The X-axis coordinates and Y-axis coordinates below are known. When the wall is approximately an ideal plane, the Z-axis coordinate is zero; when the wall is not an ideal plane, the feature points obtained by laser scanning have three-dimensional information, and the Z-axis direction information of each feature point can be determined by polar coordinates (L, β) Representation, wherein the solution of the parameters in the polar coordinates can be obtained according to the following formula according to the accompanying drawing 3:

β=90°-α-arccos((L2+r2-r1 2)/2rL) (3)β=90°-α-arccos((L 2 +r 2 -r 1 2 )/2rL) (3)

如公式(2)所示,将非理想平面墙壁上的点假设为任意特征点,其极坐标为(L,β),如附图3所示,首先利用测量的长度r和r1的余弦定理,获得记坐标的极径L,再通过特征量三角形的几何关系,得到极坐标极角β;最后根据特征点的极坐标在X O Y平面上的投影,获得特征点的X轴坐标和Y轴坐标,从而得到特征点的几何特征信息。As shown in formula (2), the point on the non-ideal plane wall is assumed to be an arbitrary feature point, and its polar coordinates are (L, β), as shown in Figure 3, first use the cosine of the measured length r and r 1 Theorem, obtain the polar diameter L of the coordinates, and then obtain the polar coordinate polar angle β through the geometric relationship of the feature triangle; finally, according to the projection of the polar coordinates of the feature points on the XOY plane, obtain the X-axis coordinates and Y-axis of the feature points coordinates to obtain the geometric feature information of the feature points.

步骤3:建立优化模型优化标定参数Step 3: Establish an optimization model to optimize calibration parameters

摄像机标定采用经典的小孔成像模型,将步骤2中每一组获得的几何特征信息处理后带入下列小孔模型中联立获得多组方程,即可求解出摄像机的内参数、摄像机坐标系与世界坐标系的旋转矩阵和平移向量,即得到相机的相关内参数以及标定现场的外参数,小孔模型的表达式如下The camera calibration adopts the classic pinhole imaging model, and the geometric feature information obtained in step 2 is processed and brought into the following pinhole model to obtain multiple sets of equations simultaneously, and then the internal parameters of the camera and the camera coordinate system can be solved With the rotation matrix and translation vector of the world coordinate system, the relevant internal parameters of the camera and the external parameters of the calibration site are obtained. The expression of the small hole model is as follows

其中,(Xw,Yw,Zw,1)T为空间点在世界坐标系中的齐次坐标,(u,v,1)T为对应的图像像点像素坐标系ο0uv中的齐次坐标,αx=f/dx为ο0uv坐标系内u轴上的尺度因子,αy=f/dy为坐标系ο0uv内v轴上的尺度因子,f为摄像机镜头焦距,dx与dy分别为像元的横、纵物理尺寸,(u0,v0)为主点坐标,ρc为比例系数,K为摄像机内部参数矩阵,[R|t]为摄像机的外部参数矩阵,其中,R为旋转矩阵,t为平移向量。Wherein, (X w , Y w , Z w , 1) T is the homogeneous coordinate of the space point in the world coordinate system, and (u, v, 1) T is the corresponding image pixel pixel coordinate system o 0 uv Homogeneous coordinates, α x =f/dx is the scale factor on the u axis in the ο 0 uv coordinate system, α y =f/dy is the scale factor on the v axis in the coordinate system ο 0 uv, f is the focal length of the camera lens, d x and d y are the horizontal and vertical physical dimensions of the pixel respectively, (u 0 , v 0 ) are the principal point coordinates, ρ c is the proportional coefficient, K is the internal parameter matrix of the camera, [R|t] is the external Parameter matrix, where R is the rotation matrix and t is the translation vector.

之后,利用摄像机的内参数、摄像机坐标系与世界坐标系的旋转矩阵和平移向量求解目标墙壁上所有特征点重投影坐标具体公式如下:After that, use the internal parameters of the camera, the rotation matrix and translation vector of the camera coordinate system and the world coordinate system to solve the reprojection coordinates of all feature points on the target wall The specific formula is as follows:

其中,rij为旋转矩阵R的第i行、第j列上的元素,平移向量t=(t1,t2,t3)T,fx为摄像机横向尺度因子,fy为摄像机纵向尺度因子,ρ0为主点在像素坐标系下的横坐标,λ0为主点在像素坐标系下的纵坐标,(XW,YW,ZW)为特征点在世界坐标系下的坐标。Among them, r ij is the element on the i-th row and j-th column of the rotation matrix R, the translation vector t=(t 1 ,t 2 ,t 3 ) T , f x is the horizontal scale factor of the camera, and f y is the vertical scale of the camera factor, ρ 0 is the abscissa of the main point in the pixel coordinate system, λ 0 is the ordinate of the main point in the pixel coordinate system, (X W , Y W , Z W ) is the coordinate of the feature point in the world coordinate system .

根据已知畸变系数,将实际拍摄获得的重投影像点坐标校正为相应的理想像点坐标(un,vn);建立优化模型通过迭代极小化重投影像点坐标和理想像点坐标的偏差,目标优化函数为:According to the known distortion coefficient, the reprojected image point coordinates obtained by the actual shooting Corrected to the corresponding ideal image point coordinates (u n , v n ); the establishment of an optimization model minimizes the deviation between the reprojected image point coordinates and the ideal image point coordinates through iteration, and the objective optimization function is:

采用LM非线性优化算法,将Hessian阵变为对称正定阵求解,当偏差最小时对应的参数即为优化后的计算机视觉系统摄像机参数。The LM nonlinear optimization algorithm is used to change the Hessian matrix into a symmetric positive definite matrix for solution. When the deviation is the smallest, the corresponding parameters are the optimized computer vision system camera parameters.

本发明的有益效果是标定方法不需要采用辅助标定板等高精度器材即可保证标定精度,执行标定时不需要占用空间,投射靶点的速度也很快,节省标定时间。因此,可以有效地适应加工现场环境,有效改善现场标定的效果,提高标定效率。The beneficial effect of the invention is that the calibration method does not need to use high-precision equipment such as auxiliary calibration plates to ensure calibration accuracy, does not need to occupy space when performing calibration, and the speed of projecting target points is also very fast, saving calibration time. Therefore, it can effectively adapt to the processing site environment, effectively improve the effect of on-site calibration, and improve the calibration efficiency.

附图说明Description of drawings

图1为时空转换思想的摄像机标定方法的装置示意图,其中,1-上转台、2-下转台、3-激光器、4-摄像机、5-支架,6-墙壁。Fig. 1 is a schematic diagram of the device of the camera calibration method based on the idea of time-space conversion, in which 1-up turntable, 2-down turntable, 3-laser, 4-camera, 5-bracket, 6-wall.

图2为时空转换推论原理图。其中,L为特征点与初始点的实际尺寸,r为初始点到激光器的距离,θ为初始点速度与L的夹角,α为初始特征点速度与L的夹角,w为转台的旋转角速度,t为转台的旋转时间。Figure 2 is a schematic diagram of the inference of space-time conversion. Among them, L is the actual size of the feature point and the initial point, r is the distance from the initial point to the laser, θ is the angle between the initial point speed and L, α is the angle between the initial feature point speed and L, and w is the rotation of the turntable Angular velocity, t is the rotation time of the turntable.

图3为非理想平面墙壁时空转换推论原理图。其中,L为特征点与初始点的实际尺寸,r为初始点到激光器的距离,点P为非理想平面墙壁上任意点,r1为任意点到激光器的距离,θ为初始点速度与L的夹角,β为任意点与理想墙面平面的夹角,α为初始特征点速度与L的夹角,w为转台的旋转角速度,t为转台的旋转时间。Fig. 3 is a schematic diagram of the non-ideal plane wall space-time transformation inference. Among them, L is the actual size of the feature point and the initial point, r is the distance from the initial point to the laser, point P is any point on the non-ideal plane wall, r 1 is the distance from any point to the laser, θ is the speed of the initial point and L , β is the angle between any point and the ideal wall plane, α is the angle between the velocity of the initial feature point and L, w is the rotation angular velocity of the turntable, and t is the rotation time of the turntable.

具体实施方式detailed description

下面结合附图和技术方案详细说明本发明的实施。The implementation of the present invention will be described in detail below in conjunction with the accompanying drawings and technical solutions.

图1为摄像机标定方法的装置示意图,方法的具体步骤如下:Fig. 1 is the device diagram of camera calibration method, and the concrete steps of method are as follows:

步骤1:安装立体转台设备Step 1: Install the stereoscopic turntable equipment

如附图1所示,立体转台设备由上转台1和下转台2以一定角度相互定位,使用时将激光器3固定上转台1上,通过两个转台各自的运动,实现激光器3在墙壁6平面的任意处投射激光点的目的。As shown in Figure 1, the three-dimensional turntable equipment is positioned at a certain angle by the upper turntable 1 and the lower turntable 2. When in use, the laser 3 is fixed on the upper turntable 1. Through the respective movements of the two turntables, the laser 3 is positioned on the plane of the wall 6. The purpose of projecting a laser point anywhere.

步骤2:利用摄像机4分时多次拍摄墙壁6上的特征点,获得多组图像信息数据。对拍摄的图像进行数据处理,在拍摄的每一组图像中,因公式(1)是根据附图2推导得出的时空转换关系式,该公式可以求解标定过程中转台旋转时间和空间特征点的位置关系,在不同时刻相机拍摄多组投射点图像,在上述各参数已知的条件下,可以求解每一组摄像机标定中的特征点的位置信息。Step 2: Use the camera 4 to photograph the feature points on the wall 6 multiple times in time-sharing to obtain multiple sets of image information data. Perform data processing on the captured images. In each group of captured images, because the formula (1) is the time-space conversion relation derived according to the accompanying drawing 2, this formula can solve the time and space characteristics of the turntable rotation during the calibration process. The positional relationship of the points, the camera captures multiple sets of projected point images at different times, and under the condition that the above parameters are known, the position information of the feature points in each set of camera calibration can be solved.

以墙壁6上任一特征点为坐标原点,以墙壁平面为XOY平面,建立空间立体坐标系,称为世界坐标系;由于墙壁上各个特征点实际尺寸已知,所以墙壁6上各个特征点在世界坐标系下的X轴坐标和Y轴坐标已知。当墙面近似为理想平面时,Z轴坐标为零。当墙面不是理想平面时,同样可以根据附图2推导出墙壁上各个特征点在世界坐标系下的X轴坐标和Y轴坐标,以及各个特征点Z轴的极坐标。若墙面不是理想平面,根据上述公式无法获得XOY平面的相关参数,需要先获得各个特征点Z轴的极坐标(L,β),利用公式(2)、(3)求解,根据各个特征点的极坐标,在XOY平面上进行投影,获得特征点的X轴坐标和Y轴坐标,得到特征点的所有特征信息。Take any feature point on the wall 6 as the coordinate origin, and take the wall plane as the XOY plane to establish a three-dimensional coordinate system in space, which is called the world coordinate system; since the actual size of each feature point on the wall is known, each feature point on the wall 6 is in the world. The X-axis coordinates and Y-axis coordinates in the coordinate system are known. When the wall is approximately an ideal plane, the Z-axis coordinate is zero. When the wall is not an ideal plane, the X-axis coordinates and Y-axis coordinates of each feature point on the wall in the world coordinate system, as well as the polar coordinates of each feature point Z-axis can also be deduced according to the accompanying drawing 2. If the wall is not an ideal plane, the relevant parameters of the XOY plane cannot be obtained according to the above formula, and the polar coordinates (L, β) of the Z axis of each feature point need to be obtained first, and the formula (2) and (3) are used to solve the problem. According to each feature point The polar coordinates of the feature point are projected on the XOY plane to obtain the X-axis coordinates and Y-axis coordinates of the feature point, and all the feature information of the feature point is obtained.

步骤3:建立优化模型优化标定参数Step 3: Establish an optimization model to optimize calibration parameters

摄像机标定采用经典的小孔成像模型,该模型表达式如公式(4),其中,(Xw,Yw,Zw,1)T为空间点在世界坐标系中的齐次坐标,(u,v,1)T为对应的图像像点像素坐标系ο0uv中的齐次坐标,从步骤2中摄像机拍摄图像和图像处理后得到特征信息中分别得到多组参数(Xw,Yw,Zw,1)T和(u,v,1)T,再通过与小孔模型公式(3)联立构成足够数量的方程,可以求解得到相机的内外参数,包括:αx=f/dx为ο0uv坐标系内u轴上的尺度因子,αy=f/dy为坐标系ο0uv内v轴上的尺度因子,f为摄像机镜头焦距,dx与dy分别为像元的横、纵物理尺寸,(u0,v0)为主点坐标,ρc为比例系数,K为摄像机内部参数矩阵,[R|t]为摄像机的外部参数矩阵,其中,R为旋转矩阵,t为平移向量。Camera calibration adopts the classic pinhole imaging model, the model expression is as formula (4), where (X w , Y w , Z w , 1) T is the homogeneous coordinate of the space point in the world coordinate system, (u , v, 1) T is the homogeneous coordinate in the pixel coordinate system o 0 uv of the corresponding image point, obtain multiple sets of parameters (X w , Y w , Z w , 1) T and (u, v, 1) T , and then by combining with the pinhole model formula (3) to form a sufficient number of equations, the internal and external parameters of the camera can be solved, including: α x =f/ dx is the scale factor on the u axis in the ο 0 uv coordinate system, α y = f/dy is the scale factor on the v axis in the coordinate system ο 0 uv, f is the focal length of the camera lens, and d x and d y are pixels respectively The horizontal and vertical physical dimensions of , (u 0 , v 0 ) are the principal point coordinates, ρ c is the proportional coefficient, K is the internal parameter matrix of the camera, [R|t] is the external parameter matrix of the camera, and R is the rotation matrix , t is the translation vector.

将之前获得的摄像机的内、外参数,代入公式(4)中获得求解目标墙壁上所有特征点重投影实际坐标由于实际拍摄获得的重投影像点坐标存在一定的畸变,需要根据已知的畸变参数将其校正为理想像点坐标(un,vn);然后建立优化模型,通过迭代极小化重投影像点坐标和理想像点坐标的偏差,其目标优化函数为:Substituting the previously obtained internal and external parameters of the camera into formula (4) to obtain the actual coordinates of reprojection of all feature points on the target wall Reprojected image point coordinates obtained due to actual shooting There is a certain distortion, which needs to be corrected to the ideal image point coordinates (u n , v n ) according to the known distortion parameters; then an optimization model is established to minimize the deviation between the reprojected image point coordinates and the ideal image point coordinates through iteration , and its objective optimization function is:

采用LM非线性优化算法,将Hessian阵变为对称正定阵求解,当偏差最小时获得的对应内外参数,即为最终优化后的计算机视觉系统摄像机参数。The LM nonlinear optimization algorithm is used to change the Hessian matrix into a symmetric positive definite matrix for solution. When the deviation is the smallest, the corresponding internal and external parameters are the final optimized computer vision system camera parameters.

Claims (1)

1. a kind of camera marking method based on space-time conversion thought, it is characterized in that, this method by two at a certain angle The three-dimensional rotation table device of turntable and the laser constitution of a turntable installed therein being mutually located, it is mutually only by two turntables Vertical motion control laser, make laser spots be scanned on wall, then passage time and space conversion idea, obtain and scan The relational expression of distance and turntable rotational time, is shot using video camera at correspondence time point to laser dot image, obtains big Corresponding two-dimensional space characteristic point is measured, then according to national forest park in Xiaokeng principle, the intrinsic parameter and outer ginseng of video camera are drawn respectively Number, method is comprised the following steps that:
Step 1:The assembling of three-dimensional rotation table device
In three-dimensional rotation table device, laser (3) is fixed therein by the mutual location and installation at a certain angle of upper and lower turntable (1,2) On one turntable, by the separate motion control laser (3) of two turntables, realize laser (3) in wall (6) plane Any place projection laser spots, while shot using video camera (4) to laser target dot image, obtain comprising laser target spot spy Levy the image of an information;
Step 2:Characteristic point on wall is repeatedly shot using video camera (4) timesharing, multiple series of images information data is obtained;In laser spots Repeatedly shot while projection, in each group of image of shooting, Each point in time is obtained by space-time conversion relational expression and shot Characteristic point actual size in image;Solve the position relationship of calibration process intermediate station rotational time and space characteristics point, when dally Changing relational expression is:
L = ∫ 0 t w r c o s ( α - θ ) d t - - - ( 1 )
Wherein:L is characterized actual size a little with initial point, and r is distance of the initial point to laser, and θ is initial spot speed and L Angle, α is characterized spot speed and L angle, and w is the angular velocity of rotation of turntable, and t is the rotational time of turntable;
Video camera does not shoot multigroup projection dot image in the same time, under the conditions of known to above-mentioned each parameter, each group of solution is taken the photograph The positional information of characteristic point in camera calibration;
Using any characteristic point on wall (6) as the origin of coordinates, using wall (6) plane as XOY plane, space multistory coordinate is set up System, referred to as world coordinate system;Due to each characteristic point actual size on wall, it is known that so each characteristic point is in the world on wall Known to X-axis coordinate and Y-axis coordinate under coordinate system;When metope is approximately ideal plane, Z axis coordinate is zero;When metope is not During ideal plane, the characteristic point that laser is scanned has three-dimensional information, and each characteristic point Z axis is represented by polar coordinates (L, θ), wherein The solution formula of parameter in polar coordinates:
L = r 2 + r 1 2 - 2 r . r 1 c o s ( w t ) - - - ( 2 )
β=90 °-α-arccos ((L2+r2-r1 2)/2rL) (3)
According to the polar coordinates of each characteristic point, projected on XOY plane, obtain the X-axis coordinate and Y-axis coordinate of characteristic point, Obtain all characteristic informations of characteristic point;
Step 3:Set up Optimized model optimization calibrating parameters
Camera calibration is using classical national forest park in Xiaokeng, and the expression formula of the model is as follows:
Wherein, (Xw,Yw,Zw, 1)TThe homogeneous coordinates for being spatial point in world coordinate system, (u, v, 1)TFor corresponding image picture point Pixel coordinate system o0Homogeneous coordinates in uv, αx=f/dx is o0Scale factor in uv coordinate systems on u axles, αy=f/dy is seat Mark system o0Scale factor in uv on v axles, f is camera lens focal length, dxWith dyRespectively horizontal, the vertical physical size of pixel, (u0,v0) it is main point coordinates, ρcFor proportionality coefficient;If K is intrinsic parameters of the camera matrix, [R | t] is the external parameter of video camera Matrix, wherein, R is spin matrix, and t is translation vector;Intrinsic parameters of the camera includes principal point coordinate (u0,v0), scale factor αx、αy, coefficient of radial distortion k1、k2With tangential distortion coefficient p1、p2;Video camera external parameter is camera coordinate system relative to generation The orientation of boundary's coordinate system, including spin matrix R and translation vector T;
Scaling board is solved using the spin matrix and translation vector of the intrinsic parameter, camera coordinate system and world coordinate system of video camera Upper all characteristic point re-projection coordinatesSpecific algorithm is as follows:
u ^ = ( f x r 11 + u 0 r 31 ) X W + ( f x r 12 + u 0 r 32 ) Y W + ( f x r 13 + u 0 r 33 ) Z W + f x t 1 + u 0 t 3 r 31 X W + r 32 Y W + r 33 Z W + t 3 v ^ = ( f y r 21 + v 0 r 31 ) X W + ( f y r 22 + v 0 r 32 ) Y W + ( f y r 23 + v 0 r 33 ) Z W + f y t 2 + v 0 t 3 r 31 X W + r 32 Y W + r 33 Z W + t 3 - - - ( 5 )
Wherein, rijFor the element on spin matrix R the i-th row, jth row, translation vector t=(t1,t2,t3)T, fxIt is horizontal for video camera To scale factor, fyFor video camera vertical scaling factor, ρ0For abscissa of the principal point under pixel coordinate system, λ0It is principal point in picture Ordinate under plain coordinate system, (XW,YW,ZW) it is characterized the coordinate a little under world coordinate system;
According to known distortion factor, the picpointed coordinate (u ' that actual photographed is obtainedn,v′n) it is corrected to corresponding ideal image point coordinate (un,vn);Set up deviation of the Optimized model by iteration minimization re-projection picpointed coordinate and ideal image point coordinate, objective optimization Function is:
min ( Σ n = 1 m ( ( u n - u ^ n ) 2 + ( v n - v ^ n ) 2 ) ) - - - ( 6 )
Using LM nonlinear optimization algorithms, it is changed into symmetric positive definite matrix by Hessian gusts and solves, the corresponding parameter when deviation is minimum Computer vision system camera parameters after as optimizing.
CN201710181821.3A 2017-03-24 2017-03-24 A camera calibration method based on the idea of spatio-temporal transformation Expired - Fee Related CN106971408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710181821.3A CN106971408B (en) 2017-03-24 2017-03-24 A camera calibration method based on the idea of spatio-temporal transformation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710181821.3A CN106971408B (en) 2017-03-24 2017-03-24 A camera calibration method based on the idea of spatio-temporal transformation

Publications (2)

Publication Number Publication Date
CN106971408A true CN106971408A (en) 2017-07-21
CN106971408B CN106971408B (en) 2019-06-21

Family

ID=59328931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710181821.3A Expired - Fee Related CN106971408B (en) 2017-03-24 2017-03-24 A camera calibration method based on the idea of spatio-temporal transformation

Country Status (1)

Country Link
CN (1) CN106971408B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108171758A (en) * 2018-01-16 2018-06-15 重庆邮电大学 Polyphaser scaling method based on minimum time principle and transparent glass scaling board
CN108717714A (en) * 2018-05-23 2018-10-30 曜科智能科技(上海)有限公司 Polyphaser scaling method, calibration system, storage medium and electronic equipment
CN109406525A (en) * 2018-08-24 2019-03-01 辽宁省交通规划设计院有限责任公司 The detection system and its detection method of the apparent disease of bridge
CN109727290A (en) * 2018-12-26 2019-05-07 南京理工大学 Dynamic calibration method of zoom camera based on monocular vision triangulation method
CN109932195A (en) * 2017-12-19 2019-06-25 广州沧恒自动控制科技有限公司 A method for calibrating measurement system of anti-roll torsion bar assembly
CN111047552A (en) * 2019-11-06 2020-04-21 深圳大学 Three-dimensional deflection measurement method and related products
CN112288824A (en) * 2020-10-27 2021-01-29 中国科学院上海微系统与信息技术研究所 A kind of telephoto camera calibration device and calibration method based on real scene
CN114427832A (en) * 2021-12-17 2022-05-03 中国计量科学研究院 A method for measuring cone motion based on machine vision
CN115190237A (en) * 2022-06-20 2022-10-14 亮风台(上海)信息科技有限公司 Method and equipment for determining rotation angle information of bearing equipment
CN116164661A (en) * 2021-11-25 2023-05-26 北京理工大学 Line Structured Light Measuring Method, Device and Measuring Equipment Based on Telecentric Camera Model

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101943563A (en) * 2010-03-26 2011-01-12 天津大学 Rapid calibration method of line-structured light vision sensor based on space plane restriction
CN105698699A (en) * 2016-01-26 2016-06-22 大连理工大学 A binocular visual sense measurement method based on time rotating shaft constraint

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101943563A (en) * 2010-03-26 2011-01-12 天津大学 Rapid calibration method of line-structured light vision sensor based on space plane restriction
CN105698699A (en) * 2016-01-26 2016-06-22 大连理工大学 A binocular visual sense measurement method based on time rotating shaft constraint

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ZHENYUAN JIA: ""Improved camera calibraion method based on perpendicularity compensation for binocular stereo vision measurement system"", 《OPTICAL ENGINEERING》 *
李政等: ""一种基于双轴位置转台的现场标定方法"", 《压电与声光》 *
范国鹏等: ""基于时空转换法的正弦波光栅尺位移测量系统设计"", 《传感技术学报》 *
陈玲: ""基于单目视觉的高速目标柔性化位姿测量技术"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109932195A (en) * 2017-12-19 2019-06-25 广州沧恒自动控制科技有限公司 A method for calibrating measurement system of anti-roll torsion bar assembly
CN108171758B (en) * 2018-01-16 2022-02-11 重庆邮电大学 Multi-camera calibration method based on minimum optical path principle and transparent glass calibration plate
CN108171758A (en) * 2018-01-16 2018-06-15 重庆邮电大学 Polyphaser scaling method based on minimum time principle and transparent glass scaling board
CN108717714B (en) * 2018-05-23 2021-06-11 曜科智能科技(上海)有限公司 Multi-camera calibration method, calibration system, storage medium and electronic device
CN108717714A (en) * 2018-05-23 2018-10-30 曜科智能科技(上海)有限公司 Polyphaser scaling method, calibration system, storage medium and electronic equipment
CN109406525B (en) * 2018-08-24 2023-06-16 辽宁省交通规划设计院有限责任公司 Bridge apparent disease detection system and detection method thereof
CN109406525A (en) * 2018-08-24 2019-03-01 辽宁省交通规划设计院有限责任公司 The detection system and its detection method of the apparent disease of bridge
CN109727290A (en) * 2018-12-26 2019-05-07 南京理工大学 Dynamic calibration method of zoom camera based on monocular vision triangulation method
CN111047552A (en) * 2019-11-06 2020-04-21 深圳大学 Three-dimensional deflection measurement method and related products
CN111047552B (en) * 2019-11-06 2023-03-24 深圳大学 Three-dimensional deflection measuring method and related product
CN112288824A (en) * 2020-10-27 2021-01-29 中国科学院上海微系统与信息技术研究所 A kind of telephoto camera calibration device and calibration method based on real scene
CN112288824B (en) * 2020-10-27 2024-04-12 中国科学院上海微系统与信息技术研究所 Device and method for calibrating tele camera based on real scene
CN116164661A (en) * 2021-11-25 2023-05-26 北京理工大学 Line Structured Light Measuring Method, Device and Measuring Equipment Based on Telecentric Camera Model
CN114427832A (en) * 2021-12-17 2022-05-03 中国计量科学研究院 A method for measuring cone motion based on machine vision
CN115190237A (en) * 2022-06-20 2022-10-14 亮风台(上海)信息科技有限公司 Method and equipment for determining rotation angle information of bearing equipment
CN115190237B (en) * 2022-06-20 2023-12-15 亮风台(上海)信息科技有限公司 Method and device for determining rotation angle information of bearing device

Also Published As

Publication number Publication date
CN106971408B (en) 2019-06-21

Similar Documents

Publication Publication Date Title
CN106971408A (en) A kind of camera marking method based on space-time conversion thought
Zhang et al. A robust and rapid camera calibration method by one captured image
CN104851104B (en) Using the flexible big view calibration method of target high speed camera close shot
WO2022142759A1 (en) Lidar and camera joint calibration method
CN105913439B (en) A kind of large-field shooting machine scaling method based on laser tracker
CN111964694B (en) Laser range finder calibration method for three-dimensional measurement
CN112629431B (en) Civil structure deformation monitoring method and related equipment
CN105716542B (en) A kind of three-dimensional data joining method based on flexible characteristic point
CN103530880B (en) Based on the camera marking method of projection Gaussian network pattern
CN106091984A (en) A kind of three dimensional point cloud acquisition methods based on line laser
CN101424551A (en) Active vision non-contact type servomechanism parameter measurement method and apparatus thereof
CN111047649A (en) A high-precision camera calibration method based on optimal polarization angle
CN102693543B (en) Method for automatically calibrating Pan-Tilt-Zoom in outdoor environments
CN102496160A (en) Calibrating method for centralized vision system of soccer robot
CN106157322B (en) A method of camera installation position calibration based on plane mirror
WO2022126339A1 (en) Method for monitoring deformation of civil structure, and related device
CN102509304A (en) Intelligent optimization-based camera calibration method
CN114359405A (en) Calibration method of off-axis Samm 3D line laser camera
CN113658266B (en) Visual measurement method for rotation angle of moving shaft based on fixed camera and single target
CN115187612A (en) Plane area measuring method, device and system based on machine vision
CN103487033A (en) River surface photographic surveying method based on height-change homography
CN113902809A (en) A method for joint calibration of infrared camera and lidar
CN114140534A (en) Combined calibration method for laser radar and camera
CN111968182A (en) Calibration method for binocular camera nonlinear model parameters
CN111754584A (en) A system and method for calibrating parameters of a long-distance large field of view camera

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190621

CF01 Termination of patent right due to non-payment of annual fee