[go: up one dir, main page]

CN102878925A - Synchronous calibration method for binocular video cameras and single projection light source - Google Patents

Synchronous calibration method for binocular video cameras and single projection light source Download PDF

Info

Publication number
CN102878925A
CN102878925A CN 201210344108 CN201210344108A CN102878925A CN 102878925 A CN102878925 A CN 102878925A CN 201210344108 CN201210344108 CN 201210344108 CN 201210344108 A CN201210344108 A CN 201210344108A CN 102878925 A CN102878925 A CN 102878925A
Authority
CN
China
Prior art keywords
light source
projection light
camera
coordinate system
cameras
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.)
Pending
Application number
CN 201210344108
Other languages
Chinese (zh)
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.)
Tianjin Polytechnic University
Original Assignee
Tianjin Polytechnic University
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 Tianjin Polytechnic University filed Critical Tianjin Polytechnic University
Priority to CN 201210344108 priority Critical patent/CN102878925A/en
Publication of CN102878925A publication Critical patent/CN102878925A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

本发明属于三维机器视觉领域,涉及一种高精度两个摄像机和单个投影光源同步标定方法。本发明将两个摄像机和单个投影光源视为两个单目三维测量系统,在对摄像机和投影光源坐标位置进行标定的同时,可以获得两个摄像机坐标系之间的坐标变换关系,进而将两个摄像机采集到的三维坐标数据统一到一个坐标系下。本发明在不增加硬件成本的基础上,可以改变已有双目视觉测量系统只能测量两个摄像机采集三维场景交集的弊端,通过本发明所介绍的两个摄像机和投影光源的同步标定方法,可以获得两个摄像机所采集到的三维场景的并集,增大了测量范围,减少测量次数,节省测量时间。

Figure 201210344108

The invention belongs to the field of three-dimensional machine vision and relates to a synchronous calibration method for two high-precision cameras and a single projection light source. The present invention regards two cameras and a single projection light source as two monocular three-dimensional measurement systems. While calibrating the coordinate positions of the cameras and projection light sources, the coordinate transformation relationship between the two camera coordinate systems can be obtained, and then the two The three-dimensional coordinate data collected by three cameras are unified into one coordinate system. On the basis of not increasing the hardware cost, the present invention can change the disadvantage that the existing binocular vision measurement system can only measure the intersection of two cameras to collect three-dimensional scenes, and through the synchronous calibration method of two cameras and projection light source introduced by the present invention, The union of the three-dimensional scenes collected by the two cameras can be obtained, the measurement range is increased, the measurement times are reduced, and the measurement time is saved.

Figure 201210344108

Description

双目摄像机和单个投影光源同步标定方法Synchronous Calibration Method for Binocular Camera and Single Projection Light Source

技术领域 technical field

本发明涉及双目摄像机和单个投影光源高精度同步标定方法,更具体的说,本发明所提供的标定方法,可以同时获得两个摄像机和单个投影光源的内部和外部参数,并自动将两个摄像机拍摄到的三维信息进行拼接。The present invention relates to a high-precision synchronous calibration method for a binocular camera and a single projection light source. More specifically, the calibration method provided by the present invention can simultaneously obtain the internal and external parameters of two cameras and a single projection light source, and automatically integrate the two The three-dimensional information captured by the camera is spliced.

背景技术 Background technique

三维重建方法已广泛应用于工业检测、逆向工程、人体扫描、文物保护、服装鞋帽等多个领域,对自由曲面的检测具有速度快、精度高的优势。按照使用的摄像机的个数不同,三维重建方法分为:单目、双目和多目三维重建系统。The 3D reconstruction method has been widely used in many fields such as industrial inspection, reverse engineering, human body scanning, cultural relics protection, clothing, shoes and hats, etc. It has the advantages of fast speed and high precision for free-form surface detection. According to the number of cameras used, three-dimensional reconstruction methods are divided into: monocular, binocular and multi-eye three-dimensional reconstruction systems.

单目系统一般包括单个摄像机和单个投影光源,主要是采用相位测量轮廓术(PhaseMeasuring Profilometry,PMP),也被称为相移测量轮廓术(Phase Shifting Profilometry,PSP)来进行三维测量。相位测量方法是向被测物体上投射固定周期的按照三角函数(正弦或者余弦)规律变化的光亮度图像,此光亮度图像经过大于3步的均匀相移,最好为4-6步均匀相移,向物体投射4-6次光亮度图像,最终完成一个周期的相位移动。物体上面的每个点,经过相移图像的投射后,在图像中会分别获得几个不同的亮度值。此亮度值经过解相运算,会获得唯一的相位值。通过单个摄像机和单个投影光源的标定方法,可以获得摄像机及投影光源的几何位置信息,就可以利用所获得的相位值及相关的几何位置信息,获得被测场景的三维坐标信息。Monocular systems generally include a single camera and a single projection light source, mainly using Phase Measuring Profilometry (PMP), also known as Phase Shifting Profilometry (PSP) for three-dimensional measurement. The phase measurement method is to project a fixed-period luminance image that changes according to the law of a trigonometric function (sine or cosine) onto the measured object. The luminance image undergoes a uniform phase shift greater than 3 steps, preferably 4-6 steps of uniform phase shift. Shift, project 4-6 times of brightness image to the object, and finally complete a cycle of phase shift. Each point on the object will obtain several different brightness values in the image after being projected by the phase-shifted image. This luminance value undergoes a dephasing operation to obtain a unique phase value. Through the calibration method of a single camera and a single projection light source, the geometric position information of the camera and projection light source can be obtained, and the three-dimensional coordinate information of the measured scene can be obtained by using the obtained phase value and related geometric position information.

双目系统一般包括两个摄像机和一个投影光源,主要采用立体匹配的方法来进行三维重建。即物空间坐标系中的某一点P,会分别在两个摄像机中拍摄到P点的成像点P1和P2,利用物空间的P点和两个成像点P1和P2所构成的三角关系,以及事先已经标定好的两个摄像机之间的位置关系及内部参数信息,即可以解算出P点的三维坐标。The binocular system generally includes two cameras and a projection light source, and mainly uses stereo matching method for three-dimensional reconstruction. That is, a certain point P in the object space coordinate system will capture the imaging points P1 and P2 of point P in two cameras respectively, using the triangular relationship formed by the point P in the object space and the two imaging points P1 and P2, and The positional relationship and internal parameter information between the two cameras that have been calibrated in advance can be used to calculate the three-dimensional coordinates of point P.

多目系统一般是建立在多个单目或者双目系统的基础之上,其原理是对单目或者双目系统的拼接和集成。A multi-camera system is generally based on multiple monocular or binocular systems, and its principle is the splicing and integration of monocular or binocular systems.

已有的双目系统由于是利用物空间P点和两个成像点P1和P2的三角关系来获得三维坐标信息,其优点是:无需对投影光源进行标定。其缺点是:只有两个摄像机都能拍摄到的部分,才能获得三维坐标信息,如果只有一个摄像机能够拍摄的范围,由于无法构成三维测量关系,因此无法获得三维点云,也就是说,已有的双目系统只能获得两个摄像机拍摄场景的交集。Since the existing binocular system obtains three-dimensional coordinate information by utilizing the triangular relationship between the object space point P and the two imaging points P1 and P2, the advantage is that no calibration of the projection light source is required. The disadvantage is that only the part that can be photographed by two cameras can obtain the three-dimensional coordinate information. If only one camera can photograph the range, the three-dimensional point cloud cannot be obtained because the three-dimensional measurement relationship cannot be formed. That is to say, the existing The binocular system can only obtain the intersection of the scenes captured by the two cameras.

本发明给出了一种双目摄像机和单个投影光源的同步标定方法,无需增加硬件成本,但该方法与已有双目系统的最大差别是,只要有一个摄像机能够拍摄到的物空间点,都可以获得三维坐标信息,因此本发明所提供的标定方法,可以获得两个摄像机拍摄到的场景的并集,增加了测量范围,减少测量次数,节省测量时间。The present invention provides a synchronous calibration method for a binocular camera and a single projection light source without increasing hardware costs, but the biggest difference between this method and the existing binocular system is that as long as there is an object space point that can be photographed by a camera, Both can obtain three-dimensional coordinate information, so the calibration method provided by the present invention can obtain the union of the scenes captured by the two cameras, increase the measurement range, reduce the number of measurements, and save measurement time.

发明内容 Contents of the invention

本发明提供一种单个摄像机和单个投影光源同步标定方法,经过标定后的参数能够应用于高精度三维测量中,可以弥补已有标定方法存在的缺陷,提高标定和三维测量的精度。The invention provides a synchronous calibration method for a single camera and a single projection light source. The parameters after calibration can be applied to high-precision three-dimensional measurement, which can make up for the defects of existing calibration methods and improve the accuracy of calibration and three-dimensional measurement.

所述的单个摄像机和单个投影光源同步标定系统的硬件系统包括:The hardware system of the single camera and single projection light source synchronous calibration system includes:

用于投射光信号的投影光源装置,投影光源的分辨率为LR×LC,投影光源的个数为1个;A projection light source device for projecting optical signals, the resolution of the projection light source is L R × L C , and the number of projection light sources is 1;

用于精度控制、图像采集和数据处理的计算机;Computers for precision control, image acquisition and data processing;

用于采集图像的彩色或者黑白摄像机,图像分辨率为CR×CC,摄像机个数为1个;A color or black-and-white camera used to collect images, the image resolution is C R × C C , and the number of cameras is 1;

用于放置所述的投影光源装置和所述的彩色或者黑白摄像机的扫描平台;A scanning platform for placing the projection light source device and the color or black and white camera;

本发明所设计的两个摄像机和单个投影光源同步标定方法,具体操作步骤如下:The method for synchronous calibration of two cameras and a single projection light source designed by the present invention, the specific operation steps are as follows:

步骤1:将两个彩色或者黑白摄像机与投影光源(所述的投射光源的分辨率为LR×LC)固定在扫描平台上,并确定在标定结束后,三维测量时,所述的彩色或者黑白摄像机与所述的投影光源的位置也不会被改变,其中放置在所述投影光源左面的彩色或者黑白摄像机称为左摄像机,放置于所述投影光源右面的彩色或者黑白摄像机称为右摄像机,所述的投影光源虽然只有一个,但是其与左摄像机和右摄像机均可以构成单目三维测量系统,所述投影光源与左摄像机构成三维测量系统时,所述投影光源称为左投影光源,所述投影光源与右摄像机构成三维测量系统时,所述的投影光源称为右投影光源,物空间坐标系在与左摄像机构成的三维测量系统称为左物空间坐标系,与右摄像机构成的三维测量系统时称为右物空间坐标系;将事先加工好的标定靶标放置于与被测物体距离相近的位置,即:距离被测物体±500mm范围的位置,摆放好所述的标定靶标,并确定所述的标定靶标能够被所述的两个彩色或者黑白摄像机拍摄完全,且所述的投影光源能够投射的光信号范围能够覆盖所述的标定靶标所在的位置;调整好所述的两个彩色或者黑白摄像机以及所述的投影光源的焦距,使之处于最佳状态;Step 1: Fix two color or black-and-white cameras and a projection light source (the resolution of the projection light source is L R × L C ) on the scanning platform, and determine that the color Or the positions of the black-and-white camera and the projection light source will not be changed, wherein the color or black-and-white camera placed on the left side of the projection light source is called the left camera, and the color or black-and-white camera placed on the right side of the projection light source is called the right camera. Camera, although there is only one projection light source, it can form a monocular three-dimensional measurement system with the left camera and the right camera. When the projection light source and the left camera form a three-dimensional measurement system, the projection light source is called the left projection light source , when the projection light source and the right camera form a three-dimensional measurement system, the projection light source is called the right projection light source, and the object space coordinate system is called the left object space coordinate system in the three-dimensional measurement system formed with the left camera, and the right camera constitutes The three-dimensional measurement system is called the right object space coordinate system; place the pre-processed calibration target at a position close to the measured object, that is, within the range of ±500mm from the measured object, and place the calibration target target, and make sure that the calibration target can be completely photographed by the two color or black-and-white cameras, and that the light signal range that can be projected by the projection light source can cover the location of the calibration target; adjust the The focal length of the two color or black-and-white cameras and the projection light source, so that it is in the best condition;

步骤2:将所述的标定靶标调整超过3次以上的位置,最好为5-8次,并确保所述的标定靶标调整后的每个位置,都能被所述的两个彩色或者黑白摄像机拍摄完全,且所述的投影光源能够投射的光信号范围能够覆盖所述的标定靶标所在的位置;每次靶标调整位置后,都要利用所述的两个彩色或者黑白相机进行靶标图像的采集,并利用所述的投影光源向所述的标定靶标投射一系列的格雷码加6步相移图像,通过所述的两个彩色或者黑白相机采集所述的投影光源投射后的每幅图像;Step 2: Adjust the position of the calibration target more than 3 times, preferably 5-8 times, and ensure that each position of the calibration target can be adjusted by the two color or black and white The camera is fully photographed, and the light signal range that the projection light source can project can cover the position of the calibration target; each time the target is adjusted, the two color or black and white cameras must be used to perform target image capture. Collect and use the projection light source to project a series of gray code plus 6-step phase shift images to the calibration target, and collect each image projected by the projection light source through the two color or black and white cameras ;

步骤3:利用张正友的平板标定方法,获得左摄像机坐标系XC1、右摄像机坐标系XC2、左投影光源坐标系XP1、右投影光源坐标系XP2、左物空间坐标系XW1和右物空间坐标系XW2之间的坐标关系如下公式所示:Step 3: Using Zhang Zhengyou’s tablet calibration method, obtain the left camera coordinate system X C1 , the right camera coordinate system X C2 , the left projected light source coordinate system X P1 , the right projected light source coordinate system X P2 , the left object space coordinate system X W1 and the right The coordinate relationship between the object space coordinate system X W2 is shown in the following formula:

XC1=R1XW1+T1                (1)X C1 =R 1 X W1 +T 1 (1)

XP1=R2XW1+T2                (2)X P1 =R 2 X W1 +T 2 (2)

XC2=R3XW2+T3                (3)X C2 =R 3 X W2 +T 3 (3)

XP2=R4XW2+T4                (4)X P2 =R 4 X W2 +T 4 (4)

步骤4:利用下面公式将右摄像机坐标系转换到左摄像机坐标系,实现两个视图的坐标统一:Step 4: Use the following formula to convert the right camera coordinate system to the left camera coordinate system to unify the coordinates of the two views:

Xx CC 22 == RR 44 -- 11 RR 33 RR 22 RR 11 -- 11 Xx CC 11 ++ RR 44 -- 11 RR 33 (( TT 22 -- TT 44 ++ RR 44 RR 33 -- 11 TT 33 -- RR 22 RR 11 -- 11 TT 11 )) -- -- -- (( 55 ))

至此,标定过程结束。So far, the calibration process is over.

本发明的有益效果是:本发明所设计的双目视觉测量系统,在不增加硬件成本的基础上,可以改变已有双目视觉测量系统只能测量两个摄像机采集三维场景交集的弊端,通过本发明所介绍的两个摄像机和投影光源的同步标定方法,可以获得两个摄像机所采集到的三维场景的并集,增大了测量范围,减少测量次数,节省测量时间。The beneficial effects of the present invention are: the binocular vision measurement system designed by the present invention can change the disadvantage that the existing binocular vision measurement system can only measure the intersection of three-dimensional scenes collected by two cameras without increasing the hardware cost. The synchronous calibration method of the two cameras and the projection light source introduced by the present invention can obtain the union of the three-dimensional scenes collected by the two cameras, increase the measurement range, reduce the measurement times and save the measurement time.

附图说明Description of drawings

图1:双目摄像机和单个投影光源三维重建系统;Figure 1: 3D reconstruction system with binocular camera and single projection light source;

图2:两个摄像机和单个投影光源同步标定方法流程图;Figure 2: Flowchart of the synchronous calibration method for two cameras and a single projection light source;

具体实施方式 Detailed ways

双目摄像机和单个投影光源三维重建系统如图1所示。在同步标定过程中,首先需要将两个摄像机与投影光源的位置固定在扫描平台上,并确定在标定结束后,三维测量时,此位置也不会被改变。固定方式为投影光源放置在中间,两个摄像机分别放置在投影光源的两边。将事先加工好的标定靶标放置于与被测物体距离相近的位置,摆放好标定靶标,并确定标定靶标能够被两个摄像机拍摄完全,且投影光源能够投射的光信号范围能够覆盖标定靶标所在的位置。调整好两个摄像机以及投影光源的焦距,使之处于最佳状态。每个摄像机和投影光源均可以构成一个完整的单目三维测量系统,其标定方法在本发明人递交的专利《一种新型的单个摄像机和单个投影光源同步标定方法》中已经进行详细的介绍。本发明主要是在对两个单目三维测量系统进行同步标定的同时,不但可以获得两个单目三维测量系统所需要的参数信息,还可以获得两个单目三维测量系统之间的位置关系,并且可以将两个单目三维测量系统的三维数据进行拼接,获得两个场景的信息的并集。The 3D reconstruction system with a binocular camera and a single projection light source is shown in Figure 1. In the process of synchronous calibration, it is first necessary to fix the positions of the two cameras and the projection light source on the scanning platform, and make sure that this position will not be changed during the three-dimensional measurement after the calibration is completed. The fixing method is that the projection light source is placed in the middle, and the two cameras are respectively placed on both sides of the projection light source. Place the pre-processed calibration target at a position close to the measured object, place the calibration target, and make sure that the calibration target can be completely captured by the two cameras, and the light signal range that the projection light source can project can cover the location of the calibration target s position. Adjust the focal length of the two cameras and the projection light source to make them in the best condition. Each camera and projection light source can constitute a complete monocular three-dimensional measurement system, and its calibration method has been introduced in detail in the patent "A New Synchronous Calibration Method for a Single Camera and a Single Projection Light Source" submitted by the inventor. The present invention is mainly to simultaneously calibrate the two monocular three-dimensional measurement systems, not only can obtain the parameter information required by the two monocular three-dimensional measurement systems, but also can obtain the positional relationship between the two monocular three-dimensional measurement systems , and the 3D data of the two monocular 3D measurement systems can be spliced to obtain the union of the information of the two scenes.

按照已递交的发明专利《一种新型的单个摄像机和单个投影光源同步标定方法》中的方法,假设左面摄像机坐标系中的每一个点(xc1,yc1,zc1)与物空间坐标系(xw1,yw1,zw1)中的每个点存在如下关系:According to the method in the submitted invention patent "A New Synchronous Calibration Method for a Single Camera and a Single Projection Light Source", it is assumed that each point (x c1 , y c1 , z c1 ) in the coordinate system of the left camera is aligned with the object space coordinate system Each point in (x w1 , y w1 , z w1 ) has the following relationship:

xx cc 11 ythe y cc 11 zz cc 11 == RR 11 ·&Center Dot; xx ww 11 ythe y ww 11 zz ww 11 ++ TT 11 -- -- -- (( 11 ))

投影光源在与左面摄像机所构成的三维测量系统中,其坐标系中的每一个点(xp1,yp1,zp1)与物空间坐标系(xw1,yw1,zw1)中的每个点存在如下关系:In the three-dimensional measurement system composed of the projection light source and the left camera, each point (x p1 , y p1 , z p1 ) in its coordinate system and each point in the object space coordinate system (x w1 , y w1 , z w1 ) The points have the following relationship:

xx pp 11 ythe y pp 11 zz pp 11 == RR 22 ·&Center Dot; xx ww 11 ythe y ww 11 zz ww 11 ++ TT 22 -- -- -- (( 22 ))

右面摄像机坐标系中的每一个点(xc2,yc2,zc2)与物空间坐标系(xw2,yw2,zw2)中的每个点存在如下关系:Each point (x c2 , y c2 , z c2 ) in the right camera coordinate system has the following relationship with each point in the object space coordinate system (x w2 , y w2 , z w2 ):

xx cc 22 ythe y cc 22 zz cc 22 == RR 33 ·&Center Dot; xx ww 22 ythe y ww 22 zz ww 22 ++ TT 33 -- -- -- (( 33 ))

投影光源在与右面摄像机所构成的三维测量系统中,其坐标系中的每一个点(xp2,yp2,zp2)与物空间坐标系(xw2,yw2,zw2)中的每个点存在如下关系:In the three-dimensional measurement system formed by the projection light source and the right camera, each point (x p2 , y p2 , z p2 ) in its coordinate system and each point in the object space coordinate system (x w2 , y w2 , z w2 ) The points have the following relationship:

xx pp 22 ythe y pp 22 zz pp 22 == RR 44 ·&Center Dot; xx ww 22 ythe y ww 22 zz ww 22 ++ TT 44 -- -- -- (( 44 ))

为了简化公式,将两个摄像机与投影光源的进行详细说明,放置在投影光源左面的彩色或者黑白摄像机称为左摄像机,放置于投影光源右面的彩色或者黑白摄像机称为右摄像机,投影光源虽然只有一个,但是其与左摄像机和右摄像机均可以构成单目三维测量系统,投影光源与左摄像机构成三维测量系统时,投影光源称为左投影光源,投影光源与右摄像机构成三维测量系统时,投影光源称为右投影光源。设左摄像机坐标系为XC1,右摄像机坐标系为XC2,左投影光源坐标系为XP1,右投影光源坐标系为XP2,左右摄像机分别标定时的物空间坐标系分别为XW1和XW2,则上面的坐标关系可以表示为如下一系列公式:In order to simplify the formula, the two cameras and the projection light source are described in detail. The color or black-and-white camera placed on the left side of the projection light source is called the left camera, and the color or black-and-white camera placed on the right side of the projection light source is called the right camera. Although the projection light source has only One, but it can form a monocular three-dimensional measurement system with the left camera and the right camera. When the projection light source and the left camera form a three-dimensional measurement system, the projection light source is called the left projection light source. When the projection light source and the right camera form a three-dimensional measurement system, the projection light source The light source is called a right projection light source. Let the left camera coordinate system be X C1 , the right camera coordinate system be X C2 , the left projection light source coordinate system be X P1 , the right projection light source coordinate system be X P2 , and the object space coordinate systems when the left and right cameras are calibrated respectively be X W1 and X W2 , then the above coordinate relationship can be expressed as a series of formulas as follows:

XC1=R1XW1+T1                (5)X C1 =R 1 X W1 +T 1 (5)

其中:R1为左摄像机坐标系XC1和物空间坐标系XW1坐标系之间的旋转矩阵;Where: R1 is the rotation matrix between the left camera coordinate system X C1 and the object space coordinate system X W1 coordinate system;

T1为左摄像机坐标系XC1和物空间坐标系XW1坐标系之间的平移矩阵;T 1 is the translation matrix between the left camera coordinate system X C1 and the object space coordinate system X W1 coordinate system;

XP1=R2XW1+T2                (6)X P1 =R 2 X W1 +T 2 (6)

其中:R2为投影光源在与左摄像机所构成的三维测量系统中的坐标XP1和物空间坐标系XW2坐标系之间的旋转矩阵;Wherein: R2 is the rotation matrix between the coordinate X P1 of the projection light source in the three-dimensional measurement system formed by the left camera and the object space coordinate system X W2 coordinate system;

T2为投影光源在与左摄像机所构成的三维测量系统中的坐标XP1和物空间坐标系XW2坐标系之间的平移矩阵; T2 is the translation matrix between the coordinate X P1 of the projection light source and the coordinate system X W2 of the object space coordinate system in the three-dimensional measurement system constituted by the left camera;

XC2=R3XW2+T3                (7)X C2 =R 3 X W2 +T 3 (7)

其中:R3为右摄像机坐标系XC2和物空间坐标系XW2坐标系之间的旋转矩阵;Where: R3 is the rotation matrix between the right camera coordinate system X C2 and the object space coordinate system X W2 coordinate system;

T3为右摄像机坐标系XC2和物空间坐标系XW2坐标系之间的平移矩阵;T 3 is the translation matrix between the right camera coordinate system X C2 and the object space coordinate system X W2 coordinate system;

XP2=R4XW2+T4                (8)X P2 =R 4 X W2 +T 4 (8)

其中:R4为投影光源在与右摄像机所构成的三维测量系统中的坐标XP2和物空间坐标系XW2坐标系之间的旋转矩阵;Wherein: R4 is the rotation matrix between the coordinate X P2 of the projection light source in the three-dimensional measurement system formed with the right camera and the object space coordinate system X W2 coordinate system;

T4为投影光源在与右摄像机所构成的三维测量系统中XP2和物空间坐标系XW2坐标系之间的平移矩阵; T4 is the translation matrix between X P2 and the object space coordinate system X W2 coordinate system in the three-dimensional measurement system formed by the projection light source and the right camera;

通过公式XC1=R1XW1+T1,可以获得如下公式:Through the formula X C1 =R 1 X W1 +T 1 , the following formula can be obtained:

Xx WW 11 == RR 11 -- 11 (( Xx CC 11 -- TT 11 )) -- -- -- (( 99 ))

因此XP1=R2XW1+T2可以改写为如下公式:Therefore, X P1 = R 2 X W1 + T 2 can be rewritten as the following formula:

Xx PP 11 == RR 22 RR 11 -- 11 (( Xx CC 11 -- TT 11 )) ++ TT 22 -- -- -- (( 1010 ))

通过公式XC2=R3XW2+T3,可以获得如下公式:Through the formula X C2 = R 3 X W2 + T 3 , the following formula can be obtained:

Xx WW 22 == RR 22 -- 11 (( Xx CC 22 -- TT 22 )) -- -- -- (( 1111 ))

因此公式XP2=R4XW2+T4可以改写为如下公式:Therefore, the formula X P2 =R 4 X W2 +T 4 can be rewritten as the following formula:

Xx PP 22 == RR 44 RR 33 -- 11 (( Xx CC 22 -- TT 33 )) ++ TT 44 -- -- -- (( 1212 ))

由于XP1=XP2,所以可以获得如下关系:Since X P1 =X P2 , the following relationship can be obtained:

RR 22 RR 11 -- 11 (( Xx CC 11 -- TT 11 )) ++ TT 22 == RR 44 RR 33 -- 11 (( Xx CC 22 -- TT 33 )) ++ TT 44 -- -- -- (( 1313 ))

因此:therefore:

Xx CC 22 == RR 44 -- 11 RR 33 (( RR 22 RR 11 -- 11 Xx CC 11 ++ TT 22 -- TT 44 ++ RR 44 RR 33 -- 11 TT 33 -- RR 22 RR 11 -- 11 TT 11 )) (( 1414 ))

== RR 44 -- 11 RR 33 RR 22 RR 11 -- 11 Xx CC 11 ++ RR 44 -- 11 RR 33 (( TT 22 -- TT 44 ++ RR 44 RR 33 -- 11 TT 33 -- RR 22 RR 11 -- 11 TT 11 ))

如果将右摄像机所采集到的右面视图所得到的三维坐标与左面视图拼接在一起,则需要获得左面坐标系与右面坐标系之间的旋转平移矩阵。If the 3D coordinates obtained from the right view captured by the right camera are stitched together with the left view, the rotation and translation matrix between the left coordinate system and the right coordinate system needs to be obtained.

XC2=RC2-C1XC1+TC2-C1                (15)X C2 =R C2-C1 X C1 +T C2-C1 (15)

其中:RC2-C1为XC2和XC1坐标系之间的旋转矩阵;Wherein: R C2-C1 is the rotation matrix between X C2 and X C1 coordinate systems;

TC2-C1为XC2和XC1坐标系之间的平移矩阵;T C2-C1 is the translation matrix between the X C2 and X C1 coordinate systems;

根据前面的推导,可知:According to the previous derivation, we know that:

RR CC 22 -- CC 11 == RR 44 -- 11 RR 33 RR 22 RR 11 -- 11 -- -- -- (( 1616 ))

TT CC 22 -- CC 11 == RR 44 -- 11 RR 33 (( TT 22 -- TT 44 ++ RR 44 RR 33 -- 11 TT 33 -- RR 22 RR 11 -- 11 TT 11 )) -- -- -- (( 1717 ))

综上所述,本发明所设计的两个摄像机和单个投影光源同步标定方法,具体操作步骤如下:In summary, the method for synchronous calibration of two cameras and a single projection light source designed in the present invention, the specific operation steps are as follows:

步骤1:将两个彩色或者黑白摄像机与投影光源(所述的投射光源的分辨率为LR×LC)固定在扫描平台上,并确定在标定结束后,三维测量时,所述的彩色或者黑白摄像机与所述的投影光源的位置也不会被改变,其中放置在所述投影光源左面的彩色或者黑白摄像机称为左摄像机,放置于所述投影光源右面的彩色或者黑白摄像机称为右摄像机,所述的投影光源虽然只有一个,但是其与左摄像机和右摄像机均可以构成单目三维测量系统,所述投影光源与左摄像机构成三维测量系统时,所述投影光源称为左投影光源,所述投影光源与右摄像机构成三维测量系统时,所述的投影光源称为右投影光源,物空间坐标系在与左摄像机构成的三维测量系统称为左物空间坐标系,与右摄像机构成的三维测量系统时称为右物空间坐标系;将事先加工好的标定靶标放置于与被测物体距离相近的位置,即:距离被测物体±500mm范围的位置,摆放好所述的标定靶标,并确定所述的标定靶标能够被所述的两个彩色或者黑白摄像机拍摄完全,且所述的投影光源能够投射的光信号范围能够覆盖所述的标定靶标所在的位置;调整好所述的两个彩色或者黑白摄像机以及所述的投影光源的焦距,使之处于最佳状态;Step 1: Fix two color or black-and-white cameras and a projection light source (the resolution of the projection light source is L R × L C ) on the scanning platform, and determine that the color Or the positions of the black-and-white camera and the projection light source will not be changed, wherein the color or black-and-white camera placed on the left side of the projection light source is called the left camera, and the color or black-and-white camera placed on the right side of the projection light source is called the right camera. Camera, although there is only one projection light source, it can form a monocular three-dimensional measurement system with the left camera and the right camera. When the projection light source and the left camera form a three-dimensional measurement system, the projection light source is called the left projection light source , when the projection light source and the right camera form a three-dimensional measurement system, the projection light source is called the right projection light source, and the object space coordinate system is called the left object space coordinate system in the three-dimensional measurement system formed with the left camera, and the right camera constitutes The three-dimensional measurement system is called the right object space coordinate system; place the pre-processed calibration target at a position close to the measured object, that is, within the range of ±500mm from the measured object, and place the calibration target target, and make sure that the calibration target can be completely photographed by the two color or black-and-white cameras, and that the light signal range that can be projected by the projection light source can cover the location of the calibration target; adjust the The focal length of the two color or black-and-white cameras and the projection light source, so that it is in the best condition;

步骤2:将所述的标定靶标调整超过3次以上的位置,最好为5-8次,并确保所述的标定靶标调整后的每个位置,都能被所述的两个彩色或者黑白摄像机拍摄完全,且所述的投影光源能够投射的光信号范围能够覆盖所述的标定靶标所在的位置;每次靶标调整位置后,都要利用所述的两个彩色或者黑白相机进行靶标图像的采集,并利用所述的投影光源向所述的标定靶标投射一系列的格雷码加6步相移图像,通过所述的两个彩色或者黑白相机采集所述的投影光源投射后的每幅图像;Step 2: Adjust the position of the calibration target more than 3 times, preferably 5-8 times, and ensure that each position of the calibration target can be adjusted by the two color or black and white The camera is fully photographed, and the light signal range that the projection light source can project can cover the position of the calibration target; each time the target is adjusted, the two color or black and white cameras must be used to perform target image capture. Collect and use the projection light source to project a series of gray code plus 6-step phase shift images to the calibration target, and collect each image projected by the projection light source through the two color or black and white cameras ;

步骤3:利用张正友的平板标定方法,获得左摄像机坐标系XC1、右摄像机坐标系XC2、左投影光源坐标系XP1、右投影光源坐标系XP2、左物空间坐标系XW1和右物空间坐标系XW2之间的坐标关系如下公式所示:Step 3: Using Zhang Zhengyou’s tablet calibration method, obtain the left camera coordinate system X C1 , the right camera coordinate system X C2 , the left projected light source coordinate system X P1 , the right projected light source coordinate system X P2 , the left object space coordinate system X W1 and the right The coordinate relationship between the object space coordinate system X W2 is shown in the following formula:

XC1=R1XW1+T1                (18)X C1 =R 1 X W1 +T 1 (18)

XP1=R2XW1+T2                (19)X P1 =R 2 X W1 +T 2 (19)

XC2=R3XW2+T3                (20)X C2 =R 3 X W2 +T 3 (20)

XP2=R4XW2+T4                (21)X P2 =R 4 X W2 +T 4 (21)

步骤4:利用下面公式将右摄像机坐标系转换到左摄像机坐标系,实现两个视图的坐标统一:Step 4: Use the following formula to convert the right camera coordinate system to the left camera coordinate system to unify the coordinates of the two views:

Xx CC 22 == RR 44 -- 11 RR 33 RR 22 RR 11 -- 11 Xx CC 11 ++ RR 44 -- 11 RR 33 (( TT 22 -- TT 44 ++ RR 44 RR 33 -- 11 TT 33 -- RR 22 RR 11 -- 11 TT 11 )) -- -- -- (( 22twenty two ))

至此,标定过程结束。So far, the calibration process is over.

本发明所设计的两个摄像机和单个投影光源同步标定方法流程图如图2所示。The flowchart of the synchronous calibration method for two cameras and a single projection light source designed by the present invention is shown in FIG. 2 .

本发明与现有的双目视觉标定方法的最大区别是:已有的双目视觉系统只能获得两个摄像机拍摄到三维信息的交集,测量范围小;本发明所提供的双目视觉标定方法,可以获得两个摄像机拍摄到的三维信息的并集,测量范围大,在大物体测量时,可以减少测量次数。The biggest difference between the present invention and the existing binocular vision calibration method is: the existing binocular vision system can only obtain the intersection of three-dimensional information captured by two cameras, and the measurement range is small; the binocular vision calibration method provided by the present invention , the union of the three-dimensional information captured by the two cameras can be obtained, the measurement range is large, and the measurement times can be reduced when measuring large objects.

综上所述,本发明所述双目标定方法的优点是:In summary, the advantages of the bi-objective positioning method of the present invention are:

(1)无需增加硬件成本,即可获得两个视角三维测量数据的并集;(1) The union of 3D measurement data from two perspectives can be obtained without increasing hardware costs;

(2)可以同步获得两个摄像机及投影光源之间的坐标关系,测量范围优于已有的双目视觉测量方法;(2) The coordinate relationship between the two cameras and the projection light source can be obtained synchronously, and the measurement range is better than the existing binocular vision measurement method;

以上示意性的对本发明及其实施方式进行了描述,该描述没有局限性,附图中所示的也只是本发明的实施方式之一。所以,如果本领域的普通技术人员受其启示,在不脱离本发明创造宗旨的情况下,采用其它形式的同类部件或其它形式的各部件布局方式,不经创造性的设计出与该技术方案相似的技术方案与实施例,均应属于本发明的保护范围。The above schematically describes the present invention and its embodiments, and the description is not limiting, and what is shown in the drawings is only one of the embodiments of the present invention. Therefore, if a person of ordinary skill in the art is inspired by it, without departing from the inventive concept of the present invention, adopt other forms of similar components or other forms of layout of each component, without creatively designing a structure similar to the technical solution. The technical solutions and embodiments should all belong to the protection scope of the present invention.

Claims (1)

1.一种双目摄像机和单个投影光源同步标定方法,其特征是,包括下列步骤:1. A binocular camera and a single projection light source synchronous calibration method, is characterized in that, comprises the following steps: 步骤1:将两个彩色或者黑白摄像机与投影光源(所述的投射光源的分辨率为LR×LC)固定在扫描平台上,并确定在标定结束后,三维测量时,所述的彩色或者黑白摄像机与所述的投影光源的位置也不会被改变,其中放置在所述投影光源左面的彩色或者黑白摄像机称为左摄像机,放置于所述投影光源右面的彩色或者黑白摄像机称为右摄像机,所述的投影光源虽然只有一个,但是其与左摄像机和右摄像机均可以构成单目三维测量系统,所述投影光源与左摄像机构成三维测量系统时,所述投影光源称为左投影光源,所述投影光源与右摄像机构成三维测量系统时,所述的投影光源称为右投影光源,物空间坐标系在与左摄像机构成的三维测量系统称为左物空间坐标系,与右摄像机构成的三维测量系统时称为右物空间坐标系;将事先加工好的标定靶标放置于与被测物体距离相近的位置,即:距离被测物体±500mm范围的位置,摆放好所述的标定靶标,并确定所述的标定靶标能够被所述的两个彩色或者黑白摄像机拍摄完全,且所述的投影光源能够投射的光信号范围能够覆盖所述的标定靶标所在的位置;调整好所述的两个彩色或者黑白摄像机以及所述的投影光源的焦距,使之处于最佳状态;Step 1: Fix two color or black-and-white cameras and a projection light source (the resolution of the projection light source is L R × L C ) on the scanning platform, and determine that the color Or the positions of the black-and-white camera and the projection light source will not be changed, wherein the color or black-and-white camera placed on the left side of the projection light source is called the left camera, and the color or black-and-white camera placed on the right side of the projection light source is called the right camera. Camera, although there is only one projection light source, it can form a monocular three-dimensional measurement system with the left camera and the right camera. When the projection light source and the left camera form a three-dimensional measurement system, the projection light source is called the left projection light source , when the projection light source and the right camera form a three-dimensional measurement system, the projection light source is called the right projection light source, and the object space coordinate system is called the left object space coordinate system in the three-dimensional measurement system formed with the left camera, and the right camera constitutes The three-dimensional measurement system is called the right object space coordinate system; place the pre-processed calibration target at a position close to the measured object, that is, within ±500mm from the measured object, and place the calibration target target, and make sure that the calibration target can be completely photographed by the two color or black-and-white cameras, and that the light signal range that can be projected by the projection light source can cover the location of the calibration target; adjust the The focal length of the two color or black-and-white cameras and the projection light source, so that it is in the best condition; 步骤2:将所述的标定靶标调整超过3次以上的位置,最好为5-8次,并确保所述的标定靶标调整后的每个位置,都能被所述的两个彩色或者黑白摄像机拍摄完全,且所述的投影光源能够投射的光信号范围能够覆盖所述的标定靶标所在的位置;每次靶标调整位置后,都要利用所述的两个彩色或者黑白相机进行靶标图像的采集,并利用所述的投影光源向所述的标定靶标投射一系列的格雷码加6步相移图像,通过所述的两个彩色或者黑白相机采集所述的投影光源投射后的每幅图像;Step 2: Adjust the position of the calibration target more than 3 times, preferably 5-8 times, and ensure that each position of the calibration target can be adjusted by the two color or black and white The camera is fully photographed, and the light signal range that the projection light source can project can cover the position of the calibration target; each time the target is adjusted, the two color or black and white cameras must be used to perform target image capture. Collect and use the projection light source to project a series of gray code plus 6-step phase shift images to the calibration target, and collect each image projected by the projection light source through the two color or black and white cameras ; 步骤3:利用张正友的平板标定方法,获得左摄像机坐标系XC1、右摄像机坐标系XC2、左投影光源坐标系XP1、右投影光源坐标系XP2、左物空间坐标系XW1和右物空间坐标系XW2之间的坐标关系如下公式所示:Step 3: Using Zhang Zhengyou’s tablet calibration method, obtain the left camera coordinate system X C1 , the right camera coordinate system X C2 , the left projected light source coordinate system X P1 , the right projected light source coordinate system X P2 , the left object space coordinate system X W1 and the right The coordinate relationship between the object space coordinate system X W2 is shown in the following formula: XC1=R1XW1+T1            (1)X C1 =R 1 X W1 +T 1 (1) XP1=R2XW1+T2            (2)X P1 =R 2 X W1 +T 2 (2) XC2=R3XW2+T3            (3)X C2 =R 3 X W2 +T 3 (3) XP2=R4XW2+T4            (4)X P2 =R 4 X W2 +T 4 (4) 步骤4:利用下面公式将右摄像机坐标系转换到左摄像机坐标系,实现两个视图的坐标统一:Step 4: Use the following formula to convert the right camera coordinate system to the left camera coordinate system to unify the coordinates of the two views: Xx CC 22 == RR 44 -- 11 RR 33 RR 22 RR 11 -- 11 Xx CC 11 ++ RR 44 -- 11 RR 33 (( TT 22 -- TT 44 ++ RR 44 RR 33 -- 11 TT 33 -- RR 22 RR 11 -- 11 TT 11 )) -- -- -- (( 55 )) 至此,标定过程结束。So far, the calibration process is over.
CN 201210344108 2012-09-18 2012-09-18 Synchronous calibration method for binocular video cameras and single projection light source Pending CN102878925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210344108 CN102878925A (en) 2012-09-18 2012-09-18 Synchronous calibration method for binocular video cameras and single projection light source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210344108 CN102878925A (en) 2012-09-18 2012-09-18 Synchronous calibration method for binocular video cameras and single projection light source

Publications (1)

Publication Number Publication Date
CN102878925A true CN102878925A (en) 2013-01-16

Family

ID=47480348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210344108 Pending CN102878925A (en) 2012-09-18 2012-09-18 Synchronous calibration method for binocular video cameras and single projection light source

Country Status (1)

Country Link
CN (1) CN102878925A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414910A (en) * 2013-08-20 2013-11-27 浙江大学 Low-distortion three-dimensional picture outer polar line correcting method
CN104154875A (en) * 2014-08-20 2014-11-19 深圳大学 Three-dimensional data acquisition system and acquisition method based on two-axis rotation platform
CN106225676A (en) * 2016-09-05 2016-12-14 凌云光技术集团有限责任公司 Method for three-dimensional measurement, Apparatus and system
CN106247940A (en) * 2016-09-08 2016-12-21 大连理工大学 A kind of measuring method measuring molded line three-dimensional position at quarter
CN106556356A (en) * 2016-12-07 2017-04-05 西安知象光电科技有限公司 A kind of multi-angle measuring three-dimensional profile system and measuring method
CN106991702A (en) * 2017-03-03 2017-07-28 浙江华睿科技有限公司 A kind of projector calibrating method and device
CN107478172A (en) * 2017-06-20 2017-12-15 南京航空航天大学 Laser three-D curved profile positioning projection method based on binocular vision
CN107621226A (en) * 2017-07-18 2018-01-23 深圳大学 Three-dimensional scanning method and system for multi-eye stereo vision
WO2022082896A1 (en) * 2020-10-22 2022-04-28 光华临港工程应用技术研发(上海)有限公司 Apparatus for line structured light three-dimensional measurement
CN114812429A (en) * 2022-03-06 2022-07-29 南京理工大学 Binocular vision metal gear three-dimensional appearance measuring device and method based on Gray code structured light

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414910B (en) * 2013-08-20 2015-05-20 浙江大学 Low-distortion three-dimensional picture outer polar line correcting method
CN103414910A (en) * 2013-08-20 2013-11-27 浙江大学 Low-distortion three-dimensional picture outer polar line correcting method
CN104154875A (en) * 2014-08-20 2014-11-19 深圳大学 Three-dimensional data acquisition system and acquisition method based on two-axis rotation platform
CN106225676A (en) * 2016-09-05 2016-12-14 凌云光技术集团有限责任公司 Method for three-dimensional measurement, Apparatus and system
CN106225676B (en) * 2016-09-05 2018-10-23 凌云光技术集团有限责任公司 Method for three-dimensional measurement, apparatus and system
CN106247940B (en) * 2016-09-08 2018-06-08 大连理工大学 It is a kind of to measure the measuring method for carving molded line three-dimensional position
CN106247940A (en) * 2016-09-08 2016-12-21 大连理工大学 A kind of measuring method measuring molded line three-dimensional position at quarter
CN106556356A (en) * 2016-12-07 2017-04-05 西安知象光电科技有限公司 A kind of multi-angle measuring three-dimensional profile system and measuring method
CN106991702B (en) * 2017-03-03 2020-06-23 浙江华睿科技有限公司 Projector calibration method and device
CN106991702A (en) * 2017-03-03 2017-07-28 浙江华睿科技有限公司 A kind of projector calibrating method and device
CN107478172A (en) * 2017-06-20 2017-12-15 南京航空航天大学 Laser three-D curved profile positioning projection method based on binocular vision
CN107478172B (en) * 2017-06-20 2019-08-16 南京航空航天大学 Laser three-D curved profile positioning projection method based on binocular vision
CN107621226A (en) * 2017-07-18 2018-01-23 深圳大学 Three-dimensional scanning method and system for multi-eye stereo vision
WO2022082896A1 (en) * 2020-10-22 2022-04-28 光华临港工程应用技术研发(上海)有限公司 Apparatus for line structured light three-dimensional measurement
CN114812429A (en) * 2022-03-06 2022-07-29 南京理工大学 Binocular vision metal gear three-dimensional appearance measuring device and method based on Gray code structured light
CN114812429B (en) * 2022-03-06 2022-12-13 南京理工大学 Binocular vision metal gear three-dimensional appearance measuring device and method based on Gray code structured light

Similar Documents

Publication Publication Date Title
CN102878925A (en) Synchronous calibration method for binocular video cameras and single projection light source
US11003897B2 (en) Three-dimensional real face modeling method and three-dimensional real face camera system
US9322643B2 (en) Apparatus and method for 3D surface measurement
CN103559735B (en) A kind of three-dimensional rebuilding method and system
CN108020175B (en) A multi-grating projection binocular vision tongue surface three-dimensional overall imaging method
CN109307483B (en) Phase unwrapping method based on geometric constraint of structured light system
CN102654391B (en) Stripe projection three-dimensional measurement system based on bundle adjustment principle and calibration method thereof
CN102155923A (en) Splicing measuring method and system based on three-dimensional target
JP5633058B1 (en) 3D measuring apparatus and 3D measuring method
CN106127745A (en) The combined calibrating method of structure light 3 D visual system and line-scan digital camera and device
CN101308012A (en) Calibration method of dual-monocular white light three-dimensional measurement system
CN109727290A (en) Dynamic calibration method of zoom camera based on monocular vision triangulation method
CN105716542A (en) Method for three-dimensional data registration based on flexible feature points
CN101603812A (en) An ultra-high-speed real-time three-dimensional vision measurement device and method
JP2012058076A (en) Three-dimensional measurement device and three-dimensional measurement method
KR20140136042A (en) Apparatus for mobile pattern projection and the use thereof
CN102708566B (en) Novel single-camera and single-projection light source synchronous calibrating method
CN102538708A (en) Measurement system for three-dimensional shape of optional surface
CN105004324A (en) Monocular vision sensor with triangulation ranging function
CN106500626A (en) A kind of mobile phone stereoscopic imaging method and three-dimensional imaging mobile phone
CN105403173A (en) Calibration mirror of light field deflection measuring system and application method of calibration mirror
CN104197846B (en) Method for measuring displacement of reflector based on characteristic pattern reflection
JP2017098859A (en) Calibration device of image and calibration method
CN101476882A (en) Structured light three-dimensional detection method based on homography matrix
CN103344196B (en) The device of single-lens structure light three-dimensional imaging and to the method for scene three-dimensional imaging in pipeline

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130116