CN111091599A - A calibration method of multi-camera-projector system based on spherical calibration object - Google Patents
A calibration method of multi-camera-projector system based on spherical calibration object Download PDFInfo
- Publication number
- CN111091599A CN111091599A CN201911111027.7A CN201911111027A CN111091599A CN 111091599 A CN111091599 A CN 111091599A CN 201911111027 A CN201911111027 A CN 201911111027A CN 111091599 A CN111091599 A CN 111091599A
- Authority
- CN
- China
- Prior art keywords
- camera
- projector
- sphere
- calibration object
- phase
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 239000011159 matrix material Substances 0.000 claims abstract description 11
- 238000005259 measurement Methods 0.000 claims description 33
- 238000013507 mapping Methods 0.000 claims description 7
- 230000003287 optical effect Effects 0.000 claims description 6
- 230000010363 phase shift Effects 0.000 claims description 5
- 239000013256 coordination polymer Substances 0.000 claims description 3
- 238000010587 phase diagram Methods 0.000 claims description 3
- 238000003384 imaging method Methods 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 2
- 239000000919 ceramic Substances 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 238000001314 profilometry Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000011426 transformation method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
- G06T7/85—Stereo camera calibration
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种多相机多投影仪的同时标定技术,特别涉及一种基于球体标定物的多相机-投影仪系统标定方法,属于光学精密测量技术领域。The invention relates to a simultaneous calibration technology of multi-camera and multi-projector, in particular to a multi-camera-projector system calibration method based on a spherical calibration object, belonging to the technical field of optical precision measurement.
背景技术Background technique
随着工业测量需求的不断增长,光学三维测量以其操作简便和数据精确的特点越来越受到关注。在诸多的光学三维测量技术中,条纹投影轮廓术(Fringe ProjectionProfilometry,FPP)由于其高速度、高精度和大视野的突出优点得到了广泛的研究和应用。通常,基于FPP原理的结构光测量系统与传统立体视觉不同之处在于它用数字投影仪取代了其中一个相机。投影仪的作用是用于向被测物体投射编码好的图案模板,由相机拍摄这些物体上的图案通过相应的解码算法建立相机像素与投影仪像素之间的对应关系,再结合标定参数利用三角法重建出目标物体的三维形状。对于此类相机/投影仪对的测量系统,每个组件的正确标定对于准确重建三维形状至关重要。With the continuous growth of industrial measurement requirements, optical 3D measurement has attracted more and more attention due to its easy operation and accurate data. Among many optical 3D measurement techniques, Fringe Projection Profilometry (FPP) has been widely studied and applied due to its outstanding advantages of high speed, high precision and large field of view. In general, a structured light measurement system based on the FPP principle differs from traditional stereo vision in that it replaces one of the cameras with a digital projector. The function of the projector is to project the encoded pattern template to the measured object, and the pattern on these objects is captured by the camera to establish the corresponding relationship between the camera pixel and the projector pixel through the corresponding decoding algorithm, and then combine the calibration parameters to use the triangle. method to reconstruct the three-dimensional shape of the target object. For measurement systems of such camera/projector pairs, proper calibration of each component is critical for accurate reconstruction of the 3D shape.
由于涉及到投影仪的使用,使得此类结构光系统的标定更加复杂。比较经典的方法是将投影仪当作一种逆向的相机,通过相移方法获得绝对相位值来建立相机与投影仪之间像素级别的映射,再由一般的相机标定方法对系统进行标定。但是这种方法都需要平面的标定板,在应用多个相机和投影仪时,平面标定板不能保证在多个角度下被系统“看到”,因此很难适用于标定多相机-投影仪系统。此外,若将多个平面标定板组成立方体标定物,一方面组装的精度不够,另一方面由于在标定过程中需要不断变换标定物的位置姿态,可能导致相机每次拍摄到标定物的平面数量不统一,因此很难确定每个面上标志点的对应,导致标定失败。The calibration of such structured light systems is more complicated due to the use of projectors. The more classic method is to regard the projector as an inverse camera, obtain the absolute phase value through the phase shift method to establish the pixel-level mapping between the camera and the projector, and then calibrate the system by the general camera calibration method. However, this method requires a flat calibration board. When multiple cameras and projectors are used, the flat calibration board cannot be guaranteed to be "seen" by the system at multiple angles, so it is difficult to apply to the calibration of multi-camera-projector systems. . In addition, if multiple plane calibration plates are assembled into a cube calibration object, on the one hand, the assembly accuracy is not enough. It is not uniform, so it is difficult to determine the correspondence of the marker points on each surface, resulting in the failure of the calibration.
发明内容SUMMARY OF THE INVENTION
针对上述技术问题,本发明提供一种基于球体标定物的多相机-投影仪系统标定方法。该方法利用了球体在任何角度都可视的各向同性,通过球体在各个相机和投影仪相平面上的投影轮廓来同时系统中的相机和投影仪。In view of the above technical problems, the present invention provides a calibration method for a multi-camera-projector system based on a spherical calibration object. The method takes advantage of the isotropy that the sphere is visible at any angle, and the cameras and projectors in the system are synchronized by the projection profiles of the sphere on the phase planes of the respective cameras and projectors.
本发明为解决上述技术问题采用以下技术方案:The present invention adopts the following technical solutions for solving the above-mentioned technical problems:
本发明提供一种基于球体标定物的多相机-投影仪系统标定方法,在所述多相机-投影仪系统中,将单个相机和单个投影仪组成一个结构光测量单元,所述多相机-投影仪系统中的若干结构光测量单元以测量区域为中心环形放置,每个相机和每个投影仪的光轴均对准测量区域;每个结构光测量单元独立工作,每个结构光测量单元中投影仪的投影幅面覆盖相机的拍摄幅面;The present invention provides a calibration method for a multi-camera-projector system based on a spherical calibration object. In the multi-camera-projector system, a single camera and a single projector are combined into a structured light measurement unit, and the multi-camera-projector system is composed of a single camera and a single projector. Several structured light measurement units in the instrument system are placed in a ring with the measurement area as the center, and the optical axis of each camera and each projector is aligned with the measurement area; each structured light measurement unit works independently, and each structured light measurement unit in The projection format of the projector covers the shooting format of the camera;
该标定方法具体为:The calibration method is specifically:
步骤1,将球体标定物置于多相机-投影仪系统的测量区域中,启动每个结构光测量单元对球体标定物依次进行图案投影和拍摄,并分别获得各个相机及投影仪下球体标定物的投影曲线;Step 1, place the spherical calibration object in the measurement area of the multi-camera-projector system, start each structured light measurement unit to perform pattern projection and photography on the spherical calibration object in turn, and obtain the sphere calibration objects under each camera and projector respectively. projection curve;
步骤2,变换球体标定物在中央测量区域中的位置并重复执行步骤1,获得各个相机及投影仪下各自相平面内至少3幅不同的投影曲线,由这些投影曲线求得各个相机和投影仪的内参数;Step 2, transform the position of the spherical calibration object in the central measurement area and repeat step 1 to obtain at least 3 different projection curves in the respective phase planes of each camera and projector, and obtain each camera and projector from these projection curves. the internal parameters;
步骤3,在每个相机/投影仪坐标系下,利用以下公式求出球体标定物的球心在该坐标系下的坐标:Step 3, in each camera/projector coordinate system, use the following formula to find the coordinates of the center of the sphere calibration object in this coordinate system:
其中,α=tan(θ/2),θ为圆锥角,K为相机/投影仪的内参数,r为球体标定物的半径,o为球体标定物的球心的投影坐标;Among them, α=tan(θ/2), θ is the cone angle, K is the internal parameter of the camera/projector, r is the radius of the spherical calibration object, and o is the projected coordinate of the spherical center of the spherical calibration object;
步骤4,利用全局匹配方法将每个相机/投影仪坐标系下的球心坐标进行匹配,获得相机/投影仪之间的相对旋转矩阵和相对平移向量,最终将所有相机和投影仪统一到同一个世界坐标系下,完成标定。Step 4: Use the global matching method to match the spherical center coordinates in each camera/projector coordinate system to obtain the relative rotation matrix and relative translation vector between the cameras/projectors, and finally unify all cameras and projectors into the same system. In a world coordinate system, the calibration is completed.
作为本发明的进一步技术方案,步骤1中各个相机及投影仪下球体标定物的投影曲线获得方法,具体为:As a further technical solution of the present invention, in step 1, the method for obtaining the projection curve of the spherical calibration object under each camera and the projector is specifically:
步骤1.1,通过每个结构光测量单元中的相机拍摄球体标定物,提取出球体标定物在相机上成像的亚像素级外轮廓,并使用最小二乘方法将亚像素级外轮廓拟合为椭圆曲线,该椭圆曲线即为相机下球体标定物的投影曲线;Step 1.1, shoot the spherical calibration object through the camera in each structured light measurement unit, extract the sub-pixel-level outer contour of the spherical calibration object imaged on the camera, and use the least squares method to fit the sub-pixel-level outer contour to an ellipse curve, the elliptic curve is the projection curve of the sphere calibration object under the camera;
步骤1.2,每个结构光测量单元中的投影仪依次向球体标定物投射一组相移正弦条纹和格雷码图案,并由对应的相机拍摄,通过相位展开方法求解出相机每个像素的绝对相位值,再使用八点法由相位映射计算出相机和投影仪之间的对极几何关系,获得相机的相平面和投影仪的相平面内的极点坐标;Step 1.2, the projector in each structured light measurement unit projects a set of phase-shifted sinusoidal fringes and Gray code patterns to the sphere calibration object in turn, and the corresponding camera takes pictures, and the absolute phase of each pixel of the camera is solved by the phase unwrapping method. value, and then use the eight-point method to calculate the polar geometric relationship between the camera and the projector by phase mapping, and obtain the polar coordinates in the phase plane of the camera and the phase plane of the projector;
步骤1.3,将1.2中求解出的每个相机像素的绝对相位值作为图像的灰度值得到相位图,在此相位图中定位1.1中拟合的椭圆曲线内因投影仪光线被遮挡导致的无相位值区域,提取出该无相位值区域偏向椭圆曲线中心一侧的外边界,并将此外边界拟合成二次曲线,该二次曲线与椭圆曲线相交于两点,这两点即为视在轮廓线交点在相机平面内的两个像点;Step 1.3, use the absolute phase value of each camera pixel obtained in 1.2 as the gray value of the image to obtain a phase map, and locate the phase-free phase in the elliptic curve fitted in 1.1 due to the occlusion of the projector light in this phase map. value area, extract the outer boundary of the non-phase value area that is biased towards the center of the elliptic curve, and fit the outer boundary into a quadratic curve, the quadratic curve and the elliptic curve intersect at two points, these two points are the apparent Two image points where the intersection of the contour lines is in the camera plane;
步骤1.4,将1.3中的两个像点通过其绝对相位值对应到投影仪平面内,获得两个交点,这两个交点iP1,iP2所在直线l=iP1×iP2与投影仪的相平面内的极点坐标er和投影仪下球体标定物的投影曲线CP满足l=CP·er,且iP1,iP2位于CP上,由此求得投影仪下球体标定物的投影曲线CP。In step 1.4, the two image points in 1.3 are corresponding to the projector plane through their absolute phase values , and two intersection points are obtained. The pole coordinates er in the phase plane and the projection curve C P of the spherical calibration object under the projector satisfy l=C P · er , and i P1 , i P2 are located on C P , thus the spherical calibration object under the projector is obtained. The projection curve C P .
作为本发明的进一步技术方案,步骤2中相机/投影仪的内参数K为:As a further technical solution of the present invention, the internal parameter K of the camera/projector in step 2 is:
其中,fu,fv分别为u,v轴方向的焦距,s为u,v轴之间的偏移度,(u0,v0)为相平面主点坐标。Among them, f u , f v are the focal lengths in the directions of the u and v axes, respectively, s is the offset between the u and v axes, and (u 0 , v 0 ) are the coordinates of the principal point of the phase plane.
作为本发明的进一步技术方案,步骤2中应用双切线、半正定规划或者正交约束方法求得各个相机和投影仪的内参数。As a further technical solution of the present invention, in step 2, the double tangent, positive semi-definite programming or orthogonal constraint method is applied to obtain the internal parameters of each camera and projector.
作为本发明的进一步技术方案,步骤3中α的值通过式KTCK的特征值唯一确定,C为相机投影曲线。As a further technical solution of the present invention, the value of α in step 3 is uniquely determined by the eigenvalue of the formula K T CK, and C is the camera projection curve.
本发明采用以上技术方案与现有技术相比,具有以下技术效果:本发明克服了传统平面标定方法无法适用于多相机-投影仪系统标定的技术瓶颈,使得多个角度下的相机和投影仪能够同时进行标定。该方法操作简单,仅使用球体标定物即可完成标定,无需其他额外设备和步骤。此外,多个视角下的相机和投影仪一经标定,其重建出的点云无需额外的算法即可自动拼合,因此该本发明提出的标定方法对构建多相机-投影仪快速测量系统具有重要意义,经该法标定的快速系统能够实时测量运动物体的多角度三维形状,实时拼接成全貌三维形状Compared with the prior art, the present invention adopts the above technical solution and has the following technical effects: the present invention overcomes the technical bottleneck that the traditional plane calibration method cannot be applied to the calibration of a multi-camera-projector system, so that the cameras and projectors under multiple angles are can be calibrated at the same time. The method is simple to operate and can be calibrated using only spheroid calibrators without additional equipment and steps. In addition, once the cameras and projectors under multiple viewing angles are calibrated, the reconstructed point clouds can be automatically combined without additional algorithms. Therefore, the calibration method proposed in the present invention is of great significance for building a multi-camera-projector fast measurement system. , the fast system calibrated by this method can measure the multi-angle three-dimensional shape of the moving object in real time, and stitch it into a full-view three-dimensional shape in real time.
附图说明Description of drawings
图1为球体在相机-投影仪系统下的成像示意图;Fig. 1 is the imaging schematic diagram of the sphere under the camera-projector system;
图2为两视角下视在轮廓线的交点在两个相平面内投影成像的几何关系示意图;2 is a schematic diagram of the geometric relationship of the projected imaging of the intersection of the apparent contour lines in two phase planes under two viewing angles;
图3为右成像平面内极点-极线关系示意图;FIG. 3 is a schematic diagram of the relationship between poles and poles in the right imaging plane;
图4为采用球体标定4个相机-投影仪对组成的系统及其重建结果,其中,(a)为4个相机-投影仪对组成的系统,(b)为多角度下4片点云的重建结果。Figure 4 shows a system composed of four camera-projector pairs using sphere calibration and its reconstruction results, where (a) is a system composed of four camera-projector pairs, and (b) is a multi-angle image of four point clouds. Rebuild the result.
具体实施方式Detailed ways
下面结合附图对本发明的技术方案做进一步的详细说明:Below in conjunction with accompanying drawing, the technical scheme of the present invention is described in further detail:
一、多相机多投影仪系统配置及模型描述:1. Multi-camera multi-projector system configuration and model description:
本发明将单个相机和单个投影仪组成一个结构光测量单元,投影仪的投影幅面需要覆盖相机拍摄的幅面。每个测量单元独立工作,可以对其所覆盖的区域进行三维重建。多个测量单元围绕着中央测量区域环形放置,每个器件的光轴都大致对准中央的测量区域。In the present invention, a single camera and a single projector are formed into a structured light measurement unit, and the projection width of the projector needs to cover the width captured by the camera. Each measurement unit works independently, enabling 3D reconstruction of the area it covers. A plurality of measurement units are arranged in a ring around the central measurement area, and the optical axis of each device is approximately aligned with the central measurement area.
在本发明中,我们将投影仪当作一个反向的相机,并且都用小孔模型来描述相机和投影仪的参数模型。因此每个器件的参数均已投影矩阵P=K[R|t]表示。其中,In the present invention, we regard the projector as a reverse camera, and use the pinhole model to describe the parameter models of the camera and the projector. Therefore, the parameters of each device have been represented by the projection matrix P=K[R|t]. in,
K为器件内参数,包含u,v轴方向的焦距fu,fv,u,v轴之间的偏移度s,以及相平面主点坐标(u0,v0)。R,t分别代表从该器件坐标系到世界坐标系旋转矩阵和平移向量。K is an internal parameter of the device, including the focal lengths f u , f v in the u and v axes, the offset s between the u and v axes, and the coordinates of the principal point of the phase plane (u 0 , v 0 ). R, t represent the rotation matrix and translation vector from the device coordinate system to the world coordinate system, respectively.
二、投影仪平面的球体投影提取2. Spherical projection extraction of the projector plane
图1为球体在一个结构光测量单元(包含一个相机和一个投影仪)中的成像示意图,由投影几何知识可知,球体在相机的相平面上的像是一个椭圆。椭圆的外轮廓可以拟合为一条二次曲线,其矩阵表示形式记为CC。该外轮廓是由球体表面的视在轮廓线ΓC经小孔投影形成。由于球体在相机上的成像可以通过拍摄直接获得,而其在投影仪上的成像无法直接获得。并且如附图1中所示,同一个球在相机和投影仪中的成像的轮廓曲线CC,CP是由不同的视在轮廓线ΓC,ΓP投影产生,彼此之间无法建立直接的对应关系,因此无法应用传统的相位映射来获得球体在投影仪下的成像曲线。Figure 1 is a schematic diagram of the imaging of a sphere in a structured light measurement unit (including a camera and a projector). From the knowledge of projection geometry, it can be known that the sphere on the phase plane of the camera is like an ellipse. The outer contour of the ellipse can be fitted to a quadratic curve, whose matrix representation is denoted as C C . The outer contour is formed by the projection of the apparent contour line Γ C of the surface of the sphere through the small hole. Since the imaging of the sphere on the camera can be directly obtained by shooting, the imaging of the sphere on the projector cannot be directly obtained. And as shown in Figure 1, the contour curves C C , C P of the imaging of the same ball in the camera and the projector are generated by the projection of different apparent contour lines Γ C , Γ P , which cannot be directly established with each other. Therefore, the traditional phase mapping cannot be applied to obtain the imaging curve of the sphere under the projector.
本发明从对极几何与成像曲线的关系出发推导球体在投影仪平面的投影曲线,具体步骤如下:The present invention derives the projection curve of the sphere on the projector plane from the relationship between the epipolar geometry and the imaging curve, and the specific steps are as follows:
步骤2.1:首先通过相机拍摄球体,提取出球体在相机上成像的亚像素级外轮廓,并使用最小二乘方法将其拟合为椭圆曲线CC。Step 2.1: First, shoot the sphere through the camera, extract the subpixel-level outer contour of the sphere imaged on the camera, and use the least squares method to fit it to the elliptic curve C C .
步骤2.2:使用投影仪依次向球体投射一组相移正弦条纹和格雷码图案,并由相机拍摄。通过相位展开方法求解出相机每个像素的绝对相位值。Step 2.2: A set of phase-shifted sinusoidal fringes and Gray code patterns are sequentially projected onto the sphere using a projector and captured by a camera. The absolute phase value of each pixel of the camera is solved by the phase unwrapping method.
以上相位展开方法会计算得到每个像素的绝对相位值,而在投影仪中每个像素已有预设好的绝对相位值。相机的像素和投影仪的像素拥有相同相位值的表示他们是对应点。通过这种相位映射可以知道相机和投影仪之间对应的像素点,从而进一步计算得到对极几何关系。The above phase unwrapping method will calculate the absolute phase value of each pixel, and each pixel has a preset absolute phase value in the projector. Camera pixels and projector pixels have the same phase value indicating that they are corresponding points. Through this phase mapping, the corresponding pixel points between the camera and the projector can be known, and the epipolar geometric relationship can be obtained by further calculation.
再使用八点法由相位映射计算出相机和投影仪之间的对极几何关系,获得两个相平面内的极点坐标。Then use the eight-point method to calculate the antipolar geometric relationship between the camera and the projector from the phase mapping, and obtain the coordinates of the poles in the two phase planes.
步骤2.3:求解出的每个相机像素的绝对相位值作为图像的灰度值得到相位图,在相位图中定位椭圆曲线CC内因投影仪光线被遮挡导致的无相位值区域(相机和投影仪存在一定的视角差,使得相机拍摄到的球体上某部分区域不能被投影仪光线照射到,因此该区域没有相位值)。提取出该区域偏向椭圆CC中心一侧的外边界,并拟合成二次曲线,该曲线与椭圆曲线CC相交于两点。由相关几何知识可知,这两点即为视在轮廓线ΓC,ΓP交点在相机平面内的像点,如附图2所示。Step 2.3: The obtained absolute phase value of each camera pixel is used as the gray value of the image to obtain a phase map, and the phase - free area (camera and There is a certain viewing angle difference, so that a certain area of the sphere captured by the camera cannot be illuminated by the projector light, so this area has no phase value). The outer boundary of the region, which is biased towards the center of the ellipse C C , is extracted and fitted into a quadratic curve, which intersects the elliptic curve C C at two points. It can be known from the relevant geometric knowledge that these two points are the image points of the intersection of the apparent contour lines Γ C , Γ P in the camera plane, as shown in Fig. 2 .
步骤2.4:将两个像点通过其绝对相位值(亚像素点通过邻域内具有有效相位值的像素点插值获得)对应到投影仪平面内,获得交点iP1,iP2,如附图3中所示。假设投影仪置于相机的右边,投影仪平面内右极点坐标为er,映射得到的两交点为iP1,iP2。由iP1,iP2两点确定一条直线l=iP1×iP2。易证明,该直线与球体在投影仪下的像CP和极点er满足极点与极线关系(pole-polar relationship),即Step 2.4: Corresponding two image points to the projector plane through their absolute phase values (sub-pixel points are obtained by interpolation of pixel points with valid phase values in the neighborhood), and obtain intersection points i P1 , i P2 , as shown in Figure 3 shown. Assuming that the projector is placed on the right side of the camera, the coordinate of the right pole in the projector plane is er , and the two intersection points obtained by mapping are i P1 , i P2 . A straight line l=i P1 ×i P2 is determined by two points i P1 , i P2 . It is easy to prove that the image C P and the pole er of the line and the sphere under the projector satisfy the pole-polar relationship, that is,
l=CP·er (2)l=C P · er (2)
注意,这里的曲线、直线和点均使用齐次坐标表示。Note that the curves, lines and points here are all represented by homogeneous coordinates.
其中,iP1,iP2与极点er的连线与曲线CP相切,并且切点即为iP1,iP2。因为曲线CP有5个未知数,方程(2)可以提供关于CP的3个约束,同时iP1,iP2分别位于CP上提供另外两个独立的约束,因此曲线CP可以求得解析解。Among them, the line connecting i P1 , i P2 and the pole er is tangent to the curve CP, and the tangent point is i P1 , i P2 . Because the curve C P has 5 unknowns, equation (2) can provide 3 constraints on C P , and i P1 and i P2 are located on C P to provide two other independent constraints, so the curve C P can be obtained analytically untie.
三、多相机-投影仪系统标定3. Multi-camera-projector system calibration
按照上述内容获得球体在投影仪下的成像曲线后即可利用传统的球体方法进行参数标定。通常,一个半径为r球心位于坐标a的球体Q在小孔模型下的成像公式可表示为,After obtaining the imaging curve of the sphere under the projector according to the above content, the parameters can be calibrated using the traditional sphere method. Generally, the imaging formula of a sphere Q with a radius r whose center is located at the coordinate a can be expressed as,
其中C*,Q*分别是相机投影曲线C和球体Q的对偶形式,其在表达式上即为它们各自的逆。设定世界坐标系与相机坐标系重合,因此上式最终简化为where C * and Q * are the dual forms of the camera projection curve C and the sphere Q respectively, which are their respective inverses in expression. Set the world coordinate system to coincide with the camera coordinate system, so the above formula is finally simplified to
βC*=KKT-ooT (4)βC * = KK T -oo T (4)
参数β为尺度因子,K为器件内参数矩阵,o为球心的投影坐标(这里的投影是指空间中的点投影到相机/投影仪的相平面中某点,相平面内的点即为空间点投影坐标)。对于方程(4)中内参数矩阵的求解可应用双切线、半正定规划或者正交约束等方法。The parameter β is the scale factor, K is the parameter matrix in the device, and o is the projection coordinate of the center of the sphere (the projection here refers to the projection of a point in space to a point in the phase plane of the camera/projector, and the point in the phase plane is spatial point projection coordinates). For the solution of the internal parameter matrix in equation (4), methods such as bitangent, positive semi-definite programming or orthogonal constraints can be applied.
标定的具体步骤如下:The specific steps of calibration are as follows:
步骤3.1:将标定球置于多相机-投影仪系统的测量区域中,启动每个测量单元对球体依次进行图案投影和拍摄,并按照前文球体投影提取的步骤分别获得各个相机及投影仪下的球体投影曲线。Step 3.1: Place the calibration sphere in the measurement area of the multi-camera-projector system, start each measurement unit to perform pattern projection and photography on the sphere in turn, and obtain the spheres under each camera and projector according to the previous steps of sphere projection extraction. Sphere projection curve.
步骤3.2:多次变换标定球的位置执行步骤3.1。每个相机和投影仪都至少获得各自相平面内3幅不同的投影曲线,由这些投影曲线应用双切线、半正定规划或者正交约束等方法求得各自器件的内参数K。Step 3.2: Perform step 3.1 by changing the position of the calibration ball multiple times. Each camera and projector obtains at least 3 different projection curves in their respective phase planes, and the internal parameters K of their respective devices are obtained from these projection curves using methods such as bitangent, positive semi-definite programming or orthogonal constraints.
步骤3.3:在每个器件坐标系下,我们利用公式(5)可求出球心在该器件坐标下的坐标。Step 3.3: In each device coordinate system, we can use formula (5) to find the coordinates of the center of the sphere in the device coordinates.
其中,α=tan(θ/2),θ为附图1中的圆锥角。α的值可以通过式KTCK的特征值唯一确定。由于变换了球体的多个位置,因此每个器件坐标系下都可以获得一组球心坐标。Wherein, α=tan(θ/2), and θ is the cone angle in FIG. 1 . The value of α can be uniquely determined by the eigenvalues of the formula K T CK. Since multiple positions of the sphere are transformed, a set of spherical center coordinates can be obtained in each device coordinate system.
步骤3.4:利用全局匹配方法将每个器件坐标系下的球心坐标进行匹配,获得器件之间的相对旋转矩阵和相对平移向量,最终将所有相机和投影仪统一到同一个世界坐标系下,完成标定。Step 3.4: Use the global matching method to match the spherical center coordinates under the coordinate system of each device, obtain the relative rotation matrix and relative translation vector between the devices, and finally unify all cameras and projectors into the same world coordinate system, Calibration is complete.
例举本发明标定单个相机-投影仪系统和多个相机-投影仪系统的两个实施例,具体如下:As an example, two embodiments of the present invention for calibrating a single camera-projector system and a plurality of camera-projector systems are as follows:
实施例1:标定单相机-投影仪系统Example 1: Calibrating a single camera-projector system
步骤1:将四个直径为50.80mm的哑光陶瓷球安装在固定支架上,并置于相机和投影仪的公共视场中。本实施例中采用8步相移法,依照相移步数向球体投射相应条纹和格雷码图案,解相生成相位图。Step 1: Mount four matte ceramic balls with a diameter of 50.80mm on the fixing bracket and place them in the common field of view of the camera and projector. In this embodiment, an 8-step phase shift method is adopted, and corresponding fringes and Gray code patterns are projected onto a sphere according to the number of phase shift steps, and a phase map is generated by de-phasing.
步骤2:利用相机图片提取四个球的外轮廓,分别应用最小二乘方法拟合成4条椭圆曲线CC;同时应用相位图和极点-极线关系求出四个球在投影仪下的椭圆曲线CP。Step 2: Use the camera picture to extract the outer contours of the four spheres, and use the least squares method to fit them into 4 elliptic curves C C respectively; at the same time, apply the phase diagram and the pole-polar line relationship to obtain the four spheres under the projector. Elliptic curve C P .
步骤3:对相机和投影仪下的两组曲线应用正交约束方法求出各自的内参数矩阵K。Step 3: Apply the orthogonal constraint method to the two sets of curves under the camera and the projector to obtain their respective internal parameter matrices K.
步骤4:求取4个球分别在相机和投影仪坐标系下的位置,使用刚体变换方法对两个点集进行配准,获得相机和投影仪之间的相对旋转矩阵和平移向量,完成标定。Step 4: Find the positions of the four balls in the camera and projector coordinate systems respectively, use the rigid body transformation method to register the two point sets, obtain the relative rotation matrix and translation vector between the camera and the projector, and complete the calibration .
实施例2:标定多相机-投影仪系统Example 2: Calibrating a multi-camera-projector system
步骤1:将4个由相机和投影仪组成结构光测量单元围绕测量区域放置。Step 1: Place 4 structured light measurement units consisting of cameras and projectors around the measurement area.
步骤2:为避免同时使用多个球时可能在某些视角下出现的球体相互遮挡情况,本实施例中仅使用一个直径为50.80mm的哑光陶瓷球,并将其置于测量视场中。Step 2: In order to avoid the situation that the spheres may block each other at some viewing angles when using multiple spheres at the same time, in this embodiment, only one matte ceramic sphere with a diameter of 50.80mm is used, and it is placed in the measurement field of view .
步骤3:依次启动各测量单元对球体进行扫描。Step 3: Start each measurement unit in turn to scan the sphere.
步骤4:多次变换球体位置,重复步骤3,直至每个器件获得3条以上的投影曲线。Step 4: Transform the position of the sphere several times, and repeat Step 3 until more than 3 projection curves are obtained for each device.
步骤5:使用各器件下的投影曲线标定各器件的内参数。Step 5: Use the projection curve under each device to calibrate the internal parameters of each device.
步骤4:求取球体在各个位置下其球心在各个相机和投影仪坐标系下的位置,使用全局配准方法对所有点集同时进行配准,获得所有相机和投影仪之间的相对旋转矩阵和平移向量,将所有器件统一到同一个坐标系下,完成标定。Step 4: Find the position of the sphere's center in each camera and projector coordinate system at each position, use the global registration method to register all point sets at the same time, and obtain the relative rotation between all cameras and projectors The matrix and translation vector unify all devices into the same coordinate system to complete the calibration.
采用如图4中的(a)所示的球体标定4个相机-投影仪对组成的系统,得到如图4中的(b)所示多角度下4片点云的重建结果。The system consisting of 4 camera-projector pairs is calibrated using a sphere as shown in (a) of Figure 4, and the reconstruction results of 4 point clouds under multi-angle as shown in (b) of Figure 4 are obtained.
以上所述,仅为本发明中的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉该技术的人在本发明所揭露的技术范围内,可理解想到的变换或替换,都应涵盖在本发明的包含范围之内,因此,本发明的保护范围应该以权利要求书的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited to this, any person familiar with the technology can understand the transformation or replacement that comes to mind within the technical scope disclosed by the present invention, All should be included within the scope of the present invention, therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911111027.7A CN111091599B (en) | 2019-11-14 | 2019-11-14 | Multi-camera-projector system calibration method based on sphere calibration object |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911111027.7A CN111091599B (en) | 2019-11-14 | 2019-11-14 | Multi-camera-projector system calibration method based on sphere calibration object |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111091599A true CN111091599A (en) | 2020-05-01 |
CN111091599B CN111091599B (en) | 2022-11-18 |
Family
ID=70393491
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911111027.7A Active CN111091599B (en) | 2019-11-14 | 2019-11-14 | Multi-camera-projector system calibration method based on sphere calibration object |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111091599B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111798413A (en) * | 2020-06-10 | 2020-10-20 | 郑徵羽 | Tire tangent plane positioning method and system |
CN112610231A (en) * | 2020-12-09 | 2021-04-06 | 上海隧道工程有限公司 | Segment assembling method and system of full-automatic shield tunneling machine |
CN113393579A (en) * | 2021-08-17 | 2021-09-14 | 天津云圣智能科技有限责任公司 | Multi-machine cooperative scanning method and device and electronic equipment |
CN113470117A (en) * | 2021-06-28 | 2021-10-01 | 上海交通大学 | Unit attitude three-dimensional structured light calibration system and method based on spherical reverse perspective projection |
CN114241059A (en) * | 2021-12-17 | 2022-03-25 | 东南大学 | Synchronous calibration method for camera and light source in photometric stereo vision system |
CN117351526A (en) * | 2023-12-05 | 2024-01-05 | 深圳纯和医药有限公司 | Intravascular ultrasound image automatic identification method for intima |
CN118505500A (en) * | 2024-07-19 | 2024-08-16 | 柏意慧心(杭州)网络科技有限公司 | Point cloud data splicing method, point cloud data splicing device, medium and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090245690A1 (en) * | 2008-03-26 | 2009-10-01 | City University Of Hong Kong | Auto-calibration method for a projector-camera system |
CN107146254A (en) * | 2017-04-05 | 2017-09-08 | 西安电子科技大学 | Camera Extrinsic Parameter Calibration Method for Multi-camera System |
CN107680137A (en) * | 2017-09-20 | 2018-02-09 | 东南大学 | A kind of polyphaser demarcation and parameter optimization method based on spheroid projection common tangent |
KR101943046B1 (en) * | 2017-09-18 | 2019-01-28 | 한국과학기술연구원 | Calibration Method of Projector-Camera using Auxiliary RGB-D camera |
-
2019
- 2019-11-14 CN CN201911111027.7A patent/CN111091599B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090245690A1 (en) * | 2008-03-26 | 2009-10-01 | City University Of Hong Kong | Auto-calibration method for a projector-camera system |
CN107146254A (en) * | 2017-04-05 | 2017-09-08 | 西安电子科技大学 | Camera Extrinsic Parameter Calibration Method for Multi-camera System |
KR101943046B1 (en) * | 2017-09-18 | 2019-01-28 | 한국과학기술연구원 | Calibration Method of Projector-Camera using Auxiliary RGB-D camera |
CN107680137A (en) * | 2017-09-20 | 2018-02-09 | 东南大学 | A kind of polyphaser demarcation and parameter optimization method based on spheroid projection common tangent |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111798413A (en) * | 2020-06-10 | 2020-10-20 | 郑徵羽 | Tire tangent plane positioning method and system |
CN111798413B (en) * | 2020-06-10 | 2024-03-12 | 郑徵羽 | Tire tangential plane positioning method and system |
CN112610231A (en) * | 2020-12-09 | 2021-04-06 | 上海隧道工程有限公司 | Segment assembling method and system of full-automatic shield tunneling machine |
CN113470117A (en) * | 2021-06-28 | 2021-10-01 | 上海交通大学 | Unit attitude three-dimensional structured light calibration system and method based on spherical reverse perspective projection |
CN113393579A (en) * | 2021-08-17 | 2021-09-14 | 天津云圣智能科技有限责任公司 | Multi-machine cooperative scanning method and device and electronic equipment |
CN114241059A (en) * | 2021-12-17 | 2022-03-25 | 东南大学 | Synchronous calibration method for camera and light source in photometric stereo vision system |
CN114241059B (en) * | 2021-12-17 | 2024-04-05 | 东南大学 | Synchronous calibration method for camera and light source in photometric stereo vision system |
CN117351526A (en) * | 2023-12-05 | 2024-01-05 | 深圳纯和医药有限公司 | Intravascular ultrasound image automatic identification method for intima |
CN117351526B (en) * | 2023-12-05 | 2024-03-22 | 深圳纯和医药有限公司 | Intravascular ultrasound image automatic identification method for intima |
CN118505500A (en) * | 2024-07-19 | 2024-08-16 | 柏意慧心(杭州)网络科技有限公司 | Point cloud data splicing method, point cloud data splicing device, medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111091599B (en) | 2022-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111091599B (en) | Multi-camera-projector system calibration method based on sphere calibration object | |
CN110514143B (en) | Stripe projection system calibration method based on reflector | |
CN110880185B (en) | High-precision dynamic real-time 360-degree omnidirectional point cloud acquisition method based on fringe projection | |
CN107063129B (en) | A kind of array parallel laser projection three-dimensional scan method | |
CN103559735B (en) | A kind of three-dimensional rebuilding method and system | |
CN111750806B (en) | A multi-view three-dimensional measurement system and method | |
CN109919876B (en) | Three-dimensional real face modeling method and three-dimensional real face photographing system | |
CN102364299B (en) | Calibration technology for multiple structured light projected three-dimensional profile measuring heads | |
CN106056620B (en) | Line laser camera measurement system calibrating method | |
CN107346425B (en) | A three-dimensional texture camera system, calibration method and imaging method | |
CN106595528B (en) | A kind of micro- binocular stereo vision measurement method of telecentricity based on digital speckle | |
CN102155923B (en) | Splicing measuring method and system based on three-dimensional target | |
CN113108721B (en) | High-reflectivity object three-dimensional measurement method based on multi-beam self-adaptive complementary matching | |
CN110793464B (en) | Large-field fringe projection vision three-dimensional measurement system and method | |
CN107170043A (en) | A kind of three-dimensional rebuilding method | |
CN109118545A (en) | 3-D imaging system scaling method and system based on rotary shaft and binocular camera | |
CN108036740B (en) | High-precision real-time three-dimensional color measurement system and method based on multiple viewing angles | |
CN104596439A (en) | Speckle matching and three-dimensional measuring method based on phase information aiding | |
WO2020199439A1 (en) | Single- and dual-camera hybrid measurement-based three-dimensional point cloud computing method | |
CN102980513B (en) | Monocular full-view stereo vision sensor centered by thing | |
CN107576280A (en) | Fringe projection 3 D measuring method and device based on parallel four Color Channel | |
CN106447733A (en) | Method, system and device for determining the range of motion of the cervical spine and the position of the axis of motion | |
CN105374067A (en) | Three-dimensional reconstruction method based on PAL cameras and reconstruction system thereof | |
CN110349257A (en) | A kind of binocular measurement missing point cloud interpolating method based on the mapping of phase puppet | |
CN110146032B (en) | Synthetic aperture camera calibration method based on light field distribution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
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 |