CN103985121B - Method for calibrating structural light of underwater projector - Google Patents
Method for calibrating structural light of underwater projector Download PDFInfo
- Publication number
- CN103985121B CN103985121B CN201410200408.3A CN201410200408A CN103985121B CN 103985121 B CN103985121 B CN 103985121B CN 201410200408 A CN201410200408 A CN 201410200408A CN 103985121 B CN103985121 B CN 103985121B
- Authority
- CN
- China
- Prior art keywords
- projector
- target
- camera
- image
- waterproof
- 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.)
- Active
Links
Landscapes
- Projection Apparatus (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种水下投影仪结构光标定方法,属于测量技术领域。The invention relates to a structural cursor calibration method for an underwater projector, belonging to the technical field of measurement.
背景技术Background technique
投影仪与摄像机结合的结构光模式,是视觉测量中一种重要的三维测量方法和技术。其原理是采用投影仪结构光传感器,投影仪根据测量需要主动投射特征,如点阵、光栅条纹、编码格网等等,摄像机捕获的图像包含因物体表面形貌变化而产生形变的投射特征,根据结构光三角测量原理恢复物体表面的三维信息。由于摄像机拍摄的一幅图像可以包含大量特征信息,因此对于近距离的水下三维测量应用,投影仪结构光技术是一种恢复被测物体三维信息的有效手段。The structured light mode combined with projector and camera is an important three-dimensional measurement method and technology in visual measurement. The principle is to use a projector structured light sensor. The projector actively projects features according to the measurement needs, such as dot matrix, grating stripes, coding grid, etc. The image captured by the camera contains projection features that are deformed due to changes in the surface topography of the object. According to the principle of structured light triangulation, the three-dimensional information of the object surface is recovered. Since an image captured by a camera can contain a large amount of feature information, for short-distance underwater 3D measurement applications, projector structured light technology is an effective means to restore the 3D information of the measured object.
水下投影仪结构光测量环境有别于陆地上的空气介质环境。水下环境作业的投影仪需要固定在密封的防水装置内,通过位于投影仪镜头前的透明窗口向位于水中的被测物体投射特征。由于防水装置的使用,使得被测物体与投影仪图像平面分别位于不同介质中,即被测物体位于水介质中,而投影仪图像平面位于防水装置内的空气介质中,光线从投影仪光心经过窗口平面进入水介质时会产生折射现象。此时,建立在光线沿直线传播基础上的单视点模型已不再适用。The underwater projector structured light measurement environment is different from the air medium environment on land. The projector for the underwater environment needs to be fixed in a sealed waterproof device, and project features to the measured object in the water through the transparent window in front of the projector lens. Due to the use of the waterproof device, the measured object and the image plane of the projector are located in different media, that is, the measured object is located in the water medium, while the projector image plane is located in the air medium in the waterproof device, and the light from the optical center of the projector When entering the water medium through the window plane, refraction occurs. At this time, the single-view model based on the propagation of light along a straight line is no longer applicable.
投影仪的投射过程与摄像机的成像过程相反,可以看做逆向的摄像机。由于折射使光线发生了折弯,用单视点模型描述的投影仪光心位置和实际光心位置不一致。Treibitz等在文章“Flat Refractive Geometry.IEEE Transactions on PatternAnalysis and Machine Intelligence,2012,34(1):51-65”分析指出,折射产生的畸变取决于被测物体与摄像机之间的距离,若采用单视点模型或用径向畸变模型表示这种畸变,则会产生较大误差,因此单视点模型不能准确描述水下投影仪投射过程。但该文只考虑了光轴与窗口平面法向向量平行时的情况,当光轴与窗口平面法向向量不平行时,基于该文分析建立模型仍会有偏差。The projection process of the projector is opposite to the imaging process of the camera, which can be regarded as a reverse camera. Due to the bending of light due to refraction, the position of the optical center of the projector described by the single-viewpoint model is inconsistent with the actual position of the optical center. Treibitz et al pointed out in the article "Flat Refractive Geometry.IEEE Transactions on Pattern Analysis and Machine Intelligence, 2012,34(1):51-65" that the distortion caused by refraction depends on the distance between the measured object and the camera. If the viewpoint model or radial distortion model is used to represent this distortion, a large error will occur, so the single-viewpoint model cannot accurately describe the projection process of the underwater projector. However, this paper only considers the case when the optical axis is parallel to the normal vector of the window plane. When the optical axis is not parallel to the normal vector of the window plane, the model based on the analysis in this paper will still have deviations.
从上述分析可知,由于防水装置窗口对光线产生的折射效应,以及投影仪光轴与窗口平面法向向量不平行的影响,传统的投影仪单视点模型已不再适用。因此,研究一种适用于水下投影仪结构光视觉测量传感器的模型和标定方法具有重要意义。From the above analysis, it can be seen that due to the refraction effect of the waterproof device window on the light and the non-parallel effect of the optical axis of the projector and the normal vector of the window plane, the traditional single-viewpoint model of the projector is no longer applicable. Therefore, it is of great significance to study a model and calibration method suitable for the underwater projector structured light vision measurement sensor.
发明内容Contents of the invention
本发明所要解决的技术问题是:提供一种用于水下投影仪结构光传感器的投影仪参数和结构参数的优化标定方法。The technical problem to be solved by the present invention is to provide an optimal calibration method for projector parameters and structural parameters of an underwater projector structured light sensor.
本发明的技术解决方案为:一种水下投影仪标定方法,其特征在于该方法包含以下步骤:The technical solution of the present invention is: a kind of underwater projector calibration method, it is characterized in that this method comprises the following steps:
1.1、调整位于水下的投影仪结构光传感器,保证摄像机在测量范围内能够拍摄清晰图像且投影仪在测量范围内能够投射清晰图像,在投影仪和已标定摄像机的公共视场范围内,采用一附有防水靶标的平板,同时投影仪对该平板投射另一靶标,称为投射靶标,调整平板位置,直到两个靶标特征点都位于公共视场范围内;自由移动靶标至少三个位置,每移动一个位置,拍摄含有两个靶标的图像对;1.1. Adjust the structured light sensor of the projector located underwater to ensure that the camera can capture clear images within the measurement range and the projector can project clear images within the measurement range. Within the common field of view of the projector and the calibrated camera, use A flat panel with a waterproof target, and the projector projects another target on the flat panel, which is called a projected target. Adjust the position of the flat panel until the two target feature points are within the common field of view; move the target freely at least three positions, Every time a position is moved, an image pair containing two targets is taken;
1.2、提取图像中防水靶标特征点的图像坐标,根据已标定摄像机的参数,求取平板所在平面在摄像机坐标系下的法向向量;1.2. Extract the image coordinates of the waterproof target feature points in the image, and obtain the normal vector of the plane where the plate is located in the camera coordinate system according to the parameters of the calibrated camera;
1.3、提取图像中投射靶标特征点的图像坐标,利用步骤1.2中求得的法向向量,由摄像机参数和特征点的图像坐标,计算投射靶标投射在平板上的对应空间点位于摄像机坐标系下的三维坐标;1.3. Extract the image coordinates of the projected target feature points in the image, and use the normal vector obtained in step 1.2 to calculate the corresponding space point of the projected target projected on the flat panel by the camera parameters and the image coordinates of the feature points under the camera coordinate system three-dimensional coordinates;
1.4、根据投射靶标在图像坐标,以及步骤1.3中求得的其对应空间点的三维坐标,利用单视点模型初步标定投影仪参数以及投影仪与摄像机之间的结构参数;1.4. According to the image coordinates of the projection target and the three-dimensional coordinates of its corresponding space point obtained in step 1.3, use the single-viewpoint model to initially calibrate the projector parameters and the structural parameters between the projector and the camera;
1.5、使用步骤1.4中得到的结构参数,将步骤1.2中所求的法向向量表示在投影仪坐标系下;1.5. Using the structural parameters obtained in step 1.4, the normal vector obtained in step 1.2 is expressed in the projector coordinate system;
1.6、在投影仪坐标系下,给定投影仪光心沿光轴方向到防水装置窗口平面的距离初值,建立投影仪图像上每个特征点发出的光线在防水装置中的空气介质传播时光线模型,称为入射光线;1.6. In the coordinate system of the projector, given the initial value of the distance from the optical center of the projector to the window plane of the waterproof device along the optical axis, establish the time when the light emitted by each feature point on the projector image propagates in the air medium in the waterproof device The ray model, called the incident ray;
1.7、建立折射光线的单位向量,根据几何约束求解出尺度因子,确定折射光线长度,求解投影仪坐标系下投影靶标特征点的三维坐标;1.7. Establish the unit vector of the refracted ray, solve the scale factor according to the geometric constraints, determine the length of the refracted ray, and solve the three-dimensional coordinates of the projected target feature points in the coordinate system of the projector;
1.8、将步骤1.3中计算出的三维坐标利用步骤1.4中的结构参数转换至投影仪坐标系下作为参考值;1.8. Convert the three-dimensional coordinates calculated in step 1.3 to the projector coordinate system using the structural parameters in step 1.4 as reference values;
1.9、给定投影仪光轴相对于窗口平面法向向量之间偏角和转角的初值,以步骤1.7中所述的三维坐标与1.8所述的参考值之间的距离建立目标函数,对投影仪参数和结构参数进行优化,并进行递归优化,即求得的结构参数用于步骤1.5~1.8,直到目标函数值满足设定阈值,阈值根据测量精度要求设定,一般为10-5至0.1mm。1.9. Given the initial value of the deflection angle and rotation angle between the optical axis of the projector and the normal vector of the window plane, the objective function is established with the distance between the three-dimensional coordinates described in step 1.7 and the reference value described in 1.8. The projector parameters and structural parameters are optimized and recursively optimized, that is, the obtained structural parameters are used in steps 1.5 to 1.8 until the objective function value meets the set threshold, which is set according to the measurement accuracy requirements, generally 10 -5 to 0.1mm.
2、所述的一种水下投影仪标定方法,其特征在于:2, a kind of underwater projector calibration method described, it is characterized in that:
2.1、步骤1.1所述的防水靶标为防水材质制成的平面靶标,固定在一平板上,防水靶标厚度与测量距离相比可忽略不计,靶标特征点为平面上的格点,格点之间距离的设计由实际测量距离和摄像机视场等确定,一般为10~100mm;所述的投射靶标,其格点之间的图像坐标距离根据投影仪图像的分辨率确定,一般为10~100像素;2.1. The waterproof target described in step 1.1 is a planar target made of waterproof material, which is fixed on a flat plate. The thickness of the waterproof target is negligible compared with the measurement distance. The target feature points are grid points on the plane. The design of the distance is determined by the actual measurement distance and the field of view of the camera, etc., generally 10-100mm; the image coordinate distance between the grid points of the projection target is determined according to the resolution of the projector image, generally 10-100 pixels ;
2.2、步骤1.1所述的防水靶标和投射靶标,在摄像机合理使滤光器件如滤光片的前提下,两靶标在平板上所占区域可重叠;当平板在同一位置时,摄像机不使用滤光器件且投影仪不投射靶标时,摄像机拍摄只得到防水靶标图像,当摄像机使用滤光器件且投影仪投射靶标时,该靶标与防水靶标有重叠区域,摄像机拍摄只得到投射靶标图像;2.2. For the waterproof target and projection target described in step 1.1, on the premise that the camera uses a reasonable filter device such as a filter, the areas occupied by the two targets on the plate can overlap; when the plate is at the same position, the camera does not use a filter When the optical device is used and the projector does not project the target, the camera will only get the image of the waterproof target. When the camera uses a filter device and the projector projects the target, the target and the waterproof target have an overlapping area, and the camera will only get the image of the projected target;
2.3、步骤1.1所述的拍摄含有两个靶标的图像对,其特征在于,当使用滤光器件时,每一个位置拍摄两幅图像,为分别含有防水靶标和投射靶标的图像对。2.3. The photographing of the image pair containing two targets described in step 1.1 is characterized in that when using a filter device, two images are photographed at each position, which are image pairs containing the waterproof target and the projection target respectively.
本发明的优点是:The advantages of the present invention are:
第一,考虑投影仪在水下作业时光线从防水装置中的空气介质传播至防水装置外的水介质时产生的折射现象,建立了投影仪光线折射模型;First, considering the refraction phenomenon when the projector works underwater from the air medium in the waterproof device to the water medium outside the waterproof device, a light refraction model of the projector is established;
第二,考虑投影仪光轴与防水装置窗口平面法向向量不平行时的情况,以光轴相对于法向向量的偏角和转角描述该现象,并通过优化方法得出两个角度的值;Second, consider the situation when the optical axis of the projector is not parallel to the normal vector of the window plane of the waterproof device, describe this phenomenon with the deflection angle and rotation angle of the optical axis relative to the normal vector, and obtain the values of the two angles through an optimization method ;
第三,合理使用滤光器件,采用了可重叠的防水靶标和投射靶标,让两个靶标能够同时尽量占满视场,提高了标定精度。Third, reasonable use of optical filters, the use of overlapping waterproof targets and projection targets, so that the two targets can occupy the field of view as much as possible at the same time, improving the calibration accuracy.
附图说明Description of drawings
图1是本发明建立的水下投影仪光线折射模型示意图。Fig. 1 is a schematic diagram of an underwater projector light refraction model established by the present invention.
图2是水下投影仪光轴与窗口平面法向向量不平行的示意图。Fig. 2 is a schematic diagram showing that the optical axis of the underwater projector is not parallel to the normal vector of the window plane.
图3是水下投影仪标定方法流程图。Fig. 3 is a flow chart of the underwater projector calibration method.
图4是标定水下投影仪使用的靶标位置示意图。Fig. 4 is a schematic diagram of the target position used for calibrating the underwater projector.
具体实施方式detailed description
下面对本发明做进一步详细说明。本发明建立水下投影仪的光线折射模型,对光轴与防水装置窗口平面法向向量存在旋转角度时的投影仪参数和结构参数进行优化标定,实现了高精度的水下投影仪标定。The present invention will be described in further detail below. The invention establishes the light refraction model of the underwater projector, optimizes and calibrates the projector parameters and structural parameters when there is a rotation angle between the optical axis and the normal vector of the window plane of the waterproof device, and realizes high-precision underwater projector calibration.
图1所示为水下投影仪光线折射模型示意图。以投影仪光心为原点建立投影仪坐标系Op-XpYpZp,原图像坐标系为ou-uv,(u0,v0)为主点的坐标。以投影仪图像上的主点位置为原点建立图像坐标系o-xy,有x=u-u0,y=v-v0。定义ox||OpXp,oy||OpYp。x=[x,y]T表示投影仪图像平面上的一点的理想图像坐标,xd=[xd,yd]T为实际受到镜头畸变影响的图像坐标。从投影仪图像平面上的点xd=[xd,yd]T投射出的光线,经过防水装置窗口平面时发生折射,记入射光线为Rin,折射光线为Rout。用n=[w1 -w2 0]T表示投影仪坐标系下窗口平面的单位法向向量,其中w1和w2分别表示投影仪光轴相对于窗口平面法向向量之间的偏角和转角,如图2所示,且满足表示光轴与法向向量之间的夹角。窗口平面的法向向量还可以表示为:Figure 1 shows a schematic diagram of the light refraction model of an underwater projector. The projector coordinate system O p -X p Y p Z p is established with the optical center of the projector as the origin, the original image coordinate system is o u -uv, and (u 0 , v 0 ) is the coordinate of the main point. The image coordinate system o-xy is established with the principal point position on the projector image as the origin, and x=uu 0 , y=vv 0 . Define ox||O p X p , oy||O p Y p . x=[x,y] T represents the ideal image coordinates of a point on the image plane of the projector, and x d =[x d ,y d ] T represents the image coordinates actually affected by lens distortion. The light projected from the point x d = [x d , y d ] T on the image plane of the projector is refracted when it passes through the window plane of the waterproof device. Record the incident light as R in and the refracted light as R out . Use n=[w 1 -w 2 0] T to represent the unit normal vector of the window plane in the projector coordinate system, where w 1 and w 2 respectively represent the deflection angles between the optical axis of the projector and the normal vector of the window plane and corners, as shown in Figure 2, and satisfy Indicates the angle between the optical axis and the normal vector. The normal vector of the window plane can also be expressed as:
式中d表示从投影仪光心沿光轴方向到窗口平面的距离。In the formula, d represents the distance from the optical center of the projector to the window plane along the optical axis.
假设畸变中心和主点重合,考虑二阶的径向和切向畸变,有如下畸变模型:Assuming that the distortion center coincides with the principal point, considering the second-order radial and tangential distortion, the following distortion model is available:
式中k1,k2为径向畸变系数,p1,p2为切向畸变系数,且有:In the formula, k 1 and k 2 are radial distortion coefficients, p 1 and p 2 are tangential distortion coefficients, and there are:
其中fx和fy为投影仪镜头焦距在x和y方向上的分量。where f x and f y are the x and y components of the focal length of the projector lens.
如图1所示,从投影仪光心至图像平面上的点(xd,yd)发出入射光线Rin,经过折射后光线沿Rout方向继续传播直到与被测物体表面相交于点P(Xp,Yp,Zp)。用γ表示入射角,γ'表示折射角,根据折射定律有:As shown in Figure 1, the incident light R in is emitted from the optical center of the projector to the point (x d , y d ) on the image plane, and after refraction, the light continues to propagate along the R out direction until it intersects the surface of the measured object at point P (X p , Y p , Z p ). Use γ to represent the angle of incidence, γ' to represent the angle of refraction, according to the law of refraction:
式中表示入射光线方向的单位向量,表示窗口平面法向向量的单位向量。入射光线Rin可以表示为:In the formula a unit vector representing the direction of the incident ray, A unit vector representing the window plane normal vector. The incident ray R in can be expressed as:
式中k为一尺度因子。入射光线Rin与窗口平面法向向量n满足:where k is a scaling factor. The incident ray R in and the window plane normal vector n satisfy:
Rin·n=1 [6]R in n = 1 [6]
将式[1]和[5]代入[6]可以解出尺度因子k。因为防水装置窗口的厚度相比于d可以忽略,则折射光线的单位向量可以表示为:Substituting equations [1] and [5] into [6] can solve the scaling factor k. Since the thickness of the flashing window is negligible compared to d, the unit vector of the refracted ray is It can be expressed as:
其中m1和m2为:where m1 and m2 are :
其中rfn为水介质的折射率。where rfn is the refractive index of the aqueous medium.
折射光线继续传播,与被测物体表面相交于点P,在投影仪坐标系下,点P的坐标可以表示为:The refracted light continues to propagate and intersects the surface of the measured object at point P. In the coordinate system of the projector, the coordinates of point P can be expressed as:
上式表示了光线传播的过程,其中β为尺度因子,决定了折射光线的长度,β的值由特征点的折射光线与成像在摄像机图像上像点确定的摄像机光线共同决定。The above formula expresses the process of light propagation, where β is the scale factor, which determines the length of the refracted ray, and the value of β is determined by the refracted ray of the feature point and the camera ray determined by the image point on the camera image.
根据上述模型,水下投影仪的标定包含投影仪参数(焦距、主点坐标、畸变系数、投影仪光心沿光轴方向到窗口平面的距离和投影仪光轴与窗口平面法向向量之间的偏角和转角)以及投影仪与摄像机之间结构参数(旋转和平移关系)的标定,具体步骤如下:According to the above model, the calibration of the underwater projector includes the parameters of the projector (focal length, principal point coordinates, distortion coefficient, the distance from the optical center of the projector to the window plane along the optical axis, and the distance between the optical axis of the projector and the normal vector of the window plane. The declination and rotation angle) and the calibration of the structural parameters (rotation and translation relationship) between the projector and the camera, the specific steps are as follows:
1、利用已经标定好的摄像机,与投影仪组成结构光传感器,即摄像机的焦距、主点坐标和畸变系数已知,摄像机标定方法见Zhang的文章“A Flexible New Technique forCamera Calibration.IEEE Transactions on Pattern Analysis and MachineIntelligence,2000,22(11):1330-1334”。1. Use the camera that has been calibrated to form a structured light sensor with a projector, that is, the focal length of the camera, the principal point coordinates and the distortion coefficient are known. For the camera calibration method, see Zhang’s article "A Flexible New Technique for Camera Calibration.IEEE Transactions on Pattern Analysis and Machine Intelligence, 2000, 22(11): 1330-1334".
2、如图4所示,制作红白相间的防水棋盘格靶标(防水靶标)贴在一平板上,该靶标上的特征点即角点间距已知,角点间距的设定由摄像机视场和工作距离共同决定,一般为10~100mm;投影仪投射红黑相间的棋盘格靶标(投射靶标),该靶标上的角点在投影仪图像坐标系下的坐标已知,记为xp=(xpi,ypi),i=1…,m,角点间距的设定由投影仪图像的分辨率确定,一般为10~100像素。具体的图像采集步骤为:2. As shown in Figure 4, make a red and white waterproof checkerboard target (waterproof target) and paste it on a flat plate. The feature points on the target, namely the corner spacing, are known, and the setting of the corner spacing is determined by the field of view of the camera. It is determined together with the working distance, generally 10-100mm; the projector projects a red and black checkerboard target (projection target), and the coordinates of the corner points on the target in the projector image coordinate system are known, denoted as x p = (x pi , y pi ), i=1 . . . , m, the setting of the corner point spacing is determined by the resolution of the projector image, generally 10-100 pixels. The specific image acquisition steps are:
1)将防水靶标置于摄像机和投影仪公共视场范围内,并尽量占满摄像机视场。打开投影仪投射红黑棋盘格靶标,调整平板位置,直到投射靶标和防水靶标都位于公共视场范围内;1) Place the waterproof target within the common field of view of the camera and projector, and try to fill the field of view of the camera. Turn on the projector to project a red and black checkerboard target, and adjust the position of the tablet until both the projection target and the waterproof target are within the public field of view;
2)将红色滤光纸放在摄像机前方,由于红色滤光纸能将防水靶标中的红色吸收,因此该防水靶标在带有红色滤光纸的摄像机中呈现为统一的背景色。用摄像机采集图像,该图像只含有投射靶标的成像,记为pi,(i=1,2,3,…g);2) Put the red filter paper in front of the camera. Since the red filter paper can absorb the red in the waterproof target, the waterproof target will appear as a uniform background color in the camera with the red filter paper. Use a camera to collect an image, the image only contains the imaging of the projected target, denoted as p i , (i=1,2,3,...g);
3)将投影仪关掉,移开红色滤光纸,并采集红白棋盘格防水靶标图像,该图像只含有防水靶标的成像,记为ci,(i=1,2,3,…g);3) Turn off the projector, remove the red filter paper, and collect the image of the red and white checkerboard waterproof target, which only contains the image of the waterproof target, denoted as c i , (i=1,2,3,...g );
4)重复进行1)~3)步,直到采集足够的图幅数,需至少采集3对图像。4) Repeat steps 1) to 3) until enough images are collected, and at least 3 pairs of images need to be collected.
采用红白棋盘格防水靶标和红黑棋盘格投射靶标为本发明所述合理使用滤光器件的例子之一,任何以类似方式使用滤光器件的标定方式均在保护范围内。The use of red and white checkerboard waterproof targets and red and black checkerboard projection targets is one of the examples of rational use of optical filter devices in the present invention, and any calibration method that uses optical filter devices in a similar manner is within the scope of protection.
3、提取图像ci中角点的图像坐标,根据已标定的摄像机,计算图像ci中平板所在平面在摄像机坐标系下的法向向量计算方法参见Hartley R.I.,Zisserman所著的“Multiple view geometry in computer vision,Cambridge University Press,2004”。3. Extract the image coordinates of the corner points in the image c i , and calculate the normal vector of the plane where the plate in the image c i is located in the camera coordinate system according to the calibrated camera For the calculation method, see "Multiple view geometry in computer vision, Cambridge University Press, 2004" by Hartley RI, Zisserman.
4、提取图像pi中角点的图像坐标,由摄像机参数和角点的图像坐标确定一条射线,利用该射线和步骤3中求得的平面法向向量,可以求得投射在平板上的投射靶标在摄像机坐标系下的三维坐标 4. Extract the image coordinates of the corner points in the image p i , determine a ray from the camera parameters and the image coordinates of the corner points, and use the ray and the plane normal vector obtained in step 3 to obtain the projection projected on the plate The three-dimensional coordinates of the target in the camera coordinate system
5、根据投射靶标角点的投影仪图像坐标xp,以及步骤4中求得的其对应的空间点的三维坐标利用单视点模型,初步标定投影仪参数以及投影仪到摄像机之间的结构参数,具体方法参见周富强著“《双目立体视觉检测的关键技术研究》,北京航空航天大学博士后研究工作报告,2002”。5. According to the projector image coordinate x p of the corner point of the projected target, and the three-dimensional coordinates of the corresponding space point obtained in step 4 Use the single-view point model to preliminarily calibrate the parameters of the projector and the structural parameters between the projector and the camera. For specific methods, please refer to Zhou Fuqiang's "Research on Key Technologies of Binocular Stereo Vision Detection", Postdoctoral Research Work Report of Beihang University, 2002 ".
6、使用步骤5中得到的结构参数,表示平板所在平面在投影仪坐标系下的法向向量 6. Use the structural parameters obtained in step 5 to represent the normal vector of the plane where the plate is located in the coordinate system of the projector
式中结构参数R和T分别为摄像机坐标系到投影仪坐标系的旋转矩阵和平移向量。In the formula, the structural parameters R and T are the rotation matrix and translation vector from the camera coordinate system to the projector coordinate system, respectively.
7、给定投影仪光心沿光轴方向到窗口平面的距离d初值,例如当投影仪镜头距离窗口平面很近时,可以令d=0;设定投影仪光轴相对于窗口平面法向向量之间的偏角w1和转角w2的初值均为0。利用图像pi中的角点的图像坐标,由式[1]~式[6]建立每个角点发出的光线在防水装置中的空气介质传播时的光线模型,称为入射光线Rin。7. Given the initial value of the distance d from the optical center of the projector to the window plane along the optical axis direction, for example, when the projector lens is very close to the window plane, d=0 can be set; the method of setting the projector optical axis relative to the window plane The initial values of the deflection angle w 1 and the rotation angle w 2 between the direction vectors are both 0. Using the image coordinates of the corner points in the image pi , the light model of the light emitted by each corner point when propagating through the air medium in the waterproof device is established by formula [1] ~ formula [6], which is called the incident light R in .
8、根据步骤7中建立的每条入射光线Rin,由式[7]和式[8]建立对应的折射光线的单位向量确定了每个角点所对应的光线轨迹,接下来需要确定式[9]中的尺度因子β,从而确定折射光线在何处与平板相交。8. According to each incident ray R in established in step 7, the unit vector of the corresponding refracted ray is established by formula [7] and formula [8] After determining the ray trajectory corresponding to each corner point, it is necessary to determine the scale factor β in formula [9] to determine where the refracted ray intersects the plate.
9、根据几何约束有:9. According to geometric constraints:
将式[9]代入式[11],由下式可以求解出尺度因子β。Substituting Equation [9] into Equation [11], the scaling factor β can be obtained from the following equation.
10、将步骤9中求得的尺度因子β代入[9]式,即可求得投影仪坐标系下投影靶标所投射在平板上所对应的空间点的三维坐标Xp。10. Substituting the scale factor β obtained in step 9 into the formula [9], the three-dimensional coordinate X p of the corresponding spatial point projected on the flat plate by the projected target in the coordinate system of the projector can be obtained.
11、将步骤4中计算出的三维坐标利用步骤6中的结构参数转换至投影仪坐标系下即为 11. The three-dimensional coordinates calculated in step 4 Using the structural parameters in step 6 to convert to the coordinate system of the projector is
12、将作为参考值,用其与步骤10中所得的三维坐标Xp之间的距离建立目标函数:12. will As a reference value, use the distance between it and the three-dimensional coordinate Xp obtained in step 10 to establish the objective function:
以步骤5中标定得到的投影仪参数和结构参数作为优化搜索的初值,畸变系数初值均设为0,其它参数初值参见步骤7。利用Levenberg-Marquardt算法对公式[13]进行非线性优化,将优化取得的结构参数R,T应用于步骤6和步骤11的坐标转换,进行递归搜索参数的最优值,直到目标函数值小于设定的距离误差阈值,阈值根据测量精度要求设置,一般为1E-5至0.1mm。The projector parameters and structural parameters calibrated in step 5 are used as the initial value of the optimization search, the initial value of the distortion coefficient is set to 0, and the initial value of other parameters is referred to in step 7. Use the Levenberg-Marquardt algorithm to nonlinearly optimize the formula [13], apply the optimized structural parameters R and T to the coordinate transformation in step 6 and step 11, and recursively search for the optimal value of the parameters until the objective function value is less than the set value A certain distance error threshold, the threshold is set according to the measurement accuracy requirements, generally 1E-5 to 0.1mm.
实施例Example
采用3500流明的投影仪,分辨率为1024像素×768像素。将投影仪装入防水装置中固定,并与分辨率为1024像素×768像素的光纤摄像机组成结构光传感器。投影仪和摄像机相对位置固定。Using a 3500 lumens projector, the resolution is 1024 pixels x 768 pixels. Install the projector into a waterproof device and fix it, and form a structured light sensor with a fiber optic camera with a resolution of 1024 pixels × 768 pixels. The relative positions of the projector and the camera are fixed.
制作的防水靶标为红白棋盘格靶标,靶标的角点之间距离为34.75mm。设计的投射靶标为红黑棋盘格靶标,其角点之间的图像距离为64像素。利用本发明所述图像采集方法,将结构光传感器放入实验水池中采集了10组共20张图像。利用本发明所述方法进行投影仪和结构参数标定,结果见表1。表2为参考值三维坐标与利用模型计算得到三维坐标之间的均方根误差。The waterproof target produced is a red and white checkerboard target, and the distance between the corner points of the target is 34.75mm. The designed projection target is a red and black checkerboard target, and the image distance between its corner points is 64 pixels. Using the image collection method of the present invention, the structured light sensor was put into the experimental pool to collect 10 groups of 20 images in total. Utilize the method described in the present invention to calibrate the projector and structural parameters, and the results are shown in Table 1. Table 2 shows the root mean square error between the three-dimensional coordinates of the reference value and the three-dimensional coordinates calculated by the model.
从表1和表2的数据可以看出,采用本发明提出的水下投影仪标定方法,标定得到的投影仪参数和结构参数结果可靠,该方法的标定精度能够满足水下定性监测和定量测量任务。As can be seen from the data in Table 1 and Table 2, using the underwater projector calibration method proposed by the present invention, the projector parameters and structural parameters obtained by calibration are reliable, and the calibration accuracy of the method can meet the requirements of underwater qualitative monitoring and quantitative measurement. Task.
表1投影仪结构光传感器标定结果Table 1 Calibration results of the projector structured light sensor
表2三维坐标的均方根误差Table 2 Root mean square error of three-dimensional coordinates
以上所述为本发明的实施例,并非用于限定本发明的保护范围。The above descriptions are examples of the present invention, and are not intended to limit the protection scope of the present invention.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410200408.3A CN103985121B (en) | 2014-05-13 | 2014-05-13 | Method for calibrating structural light of underwater projector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410200408.3A CN103985121B (en) | 2014-05-13 | 2014-05-13 | Method for calibrating structural light of underwater projector |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103985121A CN103985121A (en) | 2014-08-13 |
CN103985121B true CN103985121B (en) | 2017-02-01 |
Family
ID=51277079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410200408.3A Active CN103985121B (en) | 2014-05-13 | 2014-05-13 | Method for calibrating structural light of underwater projector |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103985121B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107462184B (en) * | 2017-08-15 | 2019-01-22 | 东南大学 | Parameter recalibration method and equipment for structured light three-dimensional measurement system |
CN110260820B (en) * | 2019-04-29 | 2021-07-06 | 上海大学 | Underwater binocular stereo vision measurement system and method based on dynamic reference coordinate system |
CN111818245B (en) * | 2020-07-03 | 2021-05-04 | 江苏集萃智能光电系统研究所有限公司 | Visual sensor optical optimization device and correction method for outdoor complex environment |
CN113744351B (en) * | 2021-09-03 | 2023-11-28 | 上海交通大学 | Underwater structure light measurement calibration method and system based on multi-medium refraction imaging |
CN116147582B (en) * | 2022-12-26 | 2023-09-01 | 深圳大学 | A method for underwater photogrammetry positioning and orientation |
CN117407636B (en) * | 2023-12-13 | 2024-04-02 | 深圳大学 | A dynamic correction method for underwater imaging refractive index |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6094198A (en) * | 1994-01-10 | 2000-07-25 | Cognitens, Ltd. | System and method for reconstructing surface elements of solid objects in a three-dimensional scene from a plurality of two dimensional images of the scene |
US6501848B1 (en) * | 1996-06-19 | 2002-12-31 | University Technology Corporation | Method and apparatus for three-dimensional reconstruction of coronary vessels from angiographic images and analytical techniques applied thereto |
CN101762243A (en) * | 2010-01-04 | 2010-06-30 | 北京航空航天大学 | Structured light vision method for measuring three-dimensional profile of restricted space |
-
2014
- 2014-05-13 CN CN201410200408.3A patent/CN103985121B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6094198A (en) * | 1994-01-10 | 2000-07-25 | Cognitens, Ltd. | System and method for reconstructing surface elements of solid objects in a three-dimensional scene from a plurality of two dimensional images of the scene |
US6501848B1 (en) * | 1996-06-19 | 2002-12-31 | University Technology Corporation | Method and apparatus for three-dimensional reconstruction of coronary vessels from angiographic images and analytical techniques applied thereto |
CN101762243A (en) * | 2010-01-04 | 2010-06-30 | 北京航空航天大学 | Structured light vision method for measuring three-dimensional profile of restricted space |
Non-Patent Citations (1)
Title |
---|
基于水下三维结构光的视觉测量方法研究;李擎等;《大连海洋大学学报》;20121231;583-586 * |
Also Published As
Publication number | Publication date |
---|---|
CN103985121A (en) | 2014-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103985121B (en) | Method for calibrating structural light of underwater projector | |
CN103971406B (en) | Submarine target three-dimensional rebuilding method based on line-structured light | |
CN103530880B (en) | Based on the camera marking method of projection Gaussian network pattern | |
CN105678742B (en) | A kind of underwater camera scaling method | |
CN109242908B (en) | Calibration method for underwater binocular vision measurement system | |
CN102183214B (en) | Light detection method for large-aperture aspherical mirror structure | |
CN103852060B (en) | A kind of based on single visual visible images distance-finding method felt | |
CN111709985A (en) | A method of underwater target ranging based on binocular vision | |
CN108362469B (en) | Size and surface pressure measurement method and apparatus based on pressure sensitive paint and light-field camera | |
CN107680156B (en) | Three-dimensional reconstruction method based on polarization information | |
CN104155765A (en) | Method and equipment for correcting three-dimensional image in tiled integral imaging display | |
CN104036475A (en) | High-robustness geometric correction method adapted to random projector group and projection screen | |
CN105698767A (en) | Underwater measuring method based on vision | |
CN110728745B (en) | A three-dimensional reconstruction method for underwater binocular stereo vision based on a multi-layer refraction image model | |
CN102878948A (en) | Visual measuring device and visual measuring method for coordinates of surface of target based on round light spot marks | |
CN110879080A (en) | High-precision intelligent measuring instrument and measuring method for high-temperature forge piece | |
CN105469389A (en) | Grid ball target for visual sensor calibration and corresponding calibration method | |
Fernandez et al. | Planar-based camera-projector calibration | |
CN102305598A (en) | Underwater Photogrammetry Method for Surface Accuracy of Semi-rigid Self-rebounding Reflector | |
CN103247048A (en) | Camera mixing calibration method based on quadratic curve and straight lines | |
CN111998823A (en) | Target ranging method based on binocular different light source ranging device | |
CN107560554A (en) | A kind of three-dimensional information vision measuring method based on relay lens | |
CN103942784A (en) | Method for solving parameters in parabolic catadioptric camera through three unparallel straight lines in checkerboard | |
CN216621031U (en) | An omnidirectional three-dimensional scanning system | |
CN115200505A (en) | A three-dimensional point cloud measurement method for muddy water based on infrared diffraction spot and binocular vision |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210129 Address after: 250000 5th floor, building 2, Aosheng building, 1166 Xinluo street, high tech Industrial Development Zone, Jinan City, Shandong Province Patentee after: SHANDONG ZHENGCHEN POLYTRON TECHNOLOGIES Co.,Ltd. Address before: 100191 No. 37, Haidian District, Beijing, Xueyuan Road Patentee before: BEIHANG University |