CN103913131A - Free curve method vector measurement method based on binocular vision - Google Patents
Free curve method vector measurement method based on binocular vision Download PDFInfo
- Publication number
- CN103913131A CN103913131A CN201410149149.6A CN201410149149A CN103913131A CN 103913131 A CN103913131 A CN 103913131A CN 201410149149 A CN201410149149 A CN 201410149149A CN 103913131 A CN103913131 A CN 103913131A
- Authority
- CN
- China
- Prior art keywords
- point
- plane
- image
- spot
- vector
- 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
Landscapes
- Image Processing (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
本发明一种基于双目视觉的自由曲面法矢量测量方法属于计算机视觉测量领域,涉及一种基于双目视觉的曲面法矢量测量方法。测量方法中,由激光投影装置向自由曲面投影的投影图案由两条正交直线与位于两条线上的四个圆形光斑构成;两直线交于一点,四个圆形光斑大小相等且均布在同一圆周上。利用双目视觉系统采集投影图案的图像,通过基于距离的阈值判定条件,估计曲面一点小邻域范围的曲率大小,以选取不同的法矢量测量方案。该测量方法考虑了待测点邻域的曲率大小,测量柔性比较高,适应性强,可实现自由曲面任一点法矢量的在线高效率测量。且其方法简单,算法易于实现。
The invention relates to a binocular vision-based free-form surface method vector measurement method, which belongs to the field of computer vision measurement, and relates to a binocular vision-based curved surface method vector measurement method. In the measurement method, the projection pattern projected by the laser projection device to the free-form surface is composed of two orthogonal straight lines and four circular light spots located on the two lines; the two straight lines intersect at one point, and the four circular light spots are equal in size and uniform in size. distributed on the same circle. The binocular vision system is used to collect the image of the projected pattern, and the curvature of a small neighborhood of the curved surface is estimated through the threshold judgment condition based on the distance, so as to select different normal vector measurement schemes. The measurement method takes into account the curvature of the neighborhood of the point to be measured, has high measurement flexibility and strong adaptability, and can realize online high-efficiency measurement of the normal vector of any point on the free-form surface. And the method is simple, and the algorithm is easy to realize.
Description
技术领域technical field
本发明属于计算机视觉测量领域,涉及一种基于双目视觉的曲面法矢量测量方法。The invention belongs to the field of computer vision measurement, and relates to a vector measurement method based on binocular vision for surface method.
背景技术Background technique
曲面零部件如涡轮叶片、喇叭、曲面腔体、列车蒙皮等正日益成为各应用领域产品不可缺少的重要构成部分。对于这些零件,曲面法矢成为重要的测量参数。蒙皮作为飞机典型复合材料曲面零件具有壁薄、形状复杂、随机变形大、材料性质各向异性、尺寸范围大等特点。蒙皮柔性钻铆工艺对钻铆垂直度有很高要求,而飞机蒙皮铆接件钻孔时,由加工预制件铺放、热压固化以及零件自身重力所引起的变形和定位、协调、夹紧时各种误差的积累使得实际待铆点处法矢量与三维数字模型中理论法矢量产生偏差。若铆接点处法向精度超出范围,会使孔加工质量下降、连接形式为强迫连接、连接处产生应力集中以及蒙皮表面不光滑,进而影响铆接质量和飞机气动外形,并最终导致飞机使役性能下降。因此,如何实现飞机蒙皮表面任意一点法矢量的在线高精度、高效率测量成为亟需解决的重要难题。Curved parts such as turbine blades, horns, curved cavities, train skins, etc. are increasingly becoming an indispensable and important part of products in various application fields. For these parts, the surface normal vector becomes an important measurement parameter. As a typical composite material surface part of aircraft, skin has the characteristics of thin wall, complex shape, large random deformation, anisotropy of material properties, and large size range. The skin flexible drilling and riveting process has high requirements on the verticality of the drilling and riveting, and when the aircraft skin riveting parts are drilled, the deformation, positioning, coordination, clamping, etc. Accumulation of various errors during tightening causes deviation between the normal vector at the actual to-be-riveted point and the theoretical normal vector in the 3D digital model. If the normal accuracy of the riveting point exceeds the range, the hole processing quality will be reduced, the connection form will be forced connection, stress concentration will be generated at the connection, and the skin surface will be rough, which will affect the quality of riveting and the aerodynamic shape of the aircraft, and eventually lead to aircraft service performance. decline. Therefore, how to realize the online high-precision and high-efficiency measurement of the normal vector of any point on the aircraft skin surface has become an important problem that needs to be solved urgently.
李原、余剑锋发明的专利号为CN201120358775的“一种测量自由曲面任意点处法向矢量的装置”发明一种利用球形触头在曲面上画出相交的曲线,利用曲线的切矢求取法向量的测量方法。此种方法为接触式测量,对于随机变形曲面其法矢量求取精度比较低。姚振强、胡永祥发明的专利号为CN102248450A的“用于大曲率半径曲面法向矢量快速检测方法”发明了利用光学测量技术实现两假想正交平面与曲面交线的获取,利用这两条交线在待测点的法矢量的叉乘积求取曲面一点的法向量,但该方法没有考虑曲面一点处的曲率大小,而单一的利用一种方法求取法矢量,效率低、柔性差。The patent No. CN201120358775 invented by Li Yuan and Yu Jianfeng is "a device for measuring the normal vector at any point on a free-form surface". Invented a method of using a spherical contact to draw intersecting curves on a curved surface, and using the tangent vector of the curve to obtain the method Vector measurement method. This method is a contact measurement, and the accuracy of calculating the normal vector for a randomly deformed surface is relatively low. Yao Zhenqiang and Hu Yongxiang's patent No. CN102248450A "A method for fast detection of normal vectors on curved surfaces with large curvature radii" invented the use of optical measurement technology to obtain the intersection of two imaginary orthogonal planes and curved surfaces. The cross product of the normal vector of the point to be measured is used to obtain the normal vector of a point on the surface, but this method does not consider the curvature of a point on the surface, and a single method is used to obtain the normal vector, which has low efficiency and poor flexibility.
发明内容Contents of the invention
本发明要解决的技术难题是克服现有技术的缺陷,发明一种基于双目视觉的自由曲面法矢量测量方法,采用由双目视觉系统以及投影图案组成的测量系统进行自由曲面任一点法矢量的测量。通过比较所设阈值与待测点到拟合平面的距离大小,选取不同测量方案完成法矢量的高精度快速测量。该测量方法考虑的待测点邻域的曲率的大小,柔性比较高,可实现曲面任一点法矢量的在线高精度与高效率测量。The technical problem to be solved in the present invention is to overcome the defects of the prior art, and to invent a free-form surface method vector measurement method based on binocular vision, which uses a measurement system composed of a binocular vision system and a projection pattern to measure the free-form surface normal vector at any point. Measurement. By comparing the set threshold with the distance from the point to be measured to the fitting plane, different measurement schemes are selected to complete the high-precision and fast measurement of the normal vector. The measurement method considers the size of the curvature of the neighborhood of the point to be measured, and has relatively high flexibility, which can realize online high-precision and high-efficiency measurement of the normal vector of any point on the surface.
本发明所采取的技术方案是一种基于双目视觉的自由曲面法矢量测量方法,其特征是:测量方法中,由激光投影装置向自由曲面投影的投影图案由两条正交直线L1、L2与位于两条线上的四个圆形光斑G构成;两直线交点为P,四个圆形光斑大小相等且均布在同一圆周上;利用双目视觉系统采集投影图案的图像;通过基于距离的阈值判定条件,估计曲面一点小邻域范围的曲率大小,以选取不同的法矢量测量方案:当d≤ε时,选用拟合平面的法向量逼近曲面待测点法矢量;当d>ε时,则利用拟合后的两条空间曲线在待测点处切矢量的叉乘积求取待测点处的法矢量;测量方法的具体步骤如下:The technical solution adopted by the present invention is a free-form surface method vector measurement method based on binocular vision . L 2 is composed of four circular light spots G located on two lines; the intersection point of the two straight lines is P, and the four circular light spots are equal in size and evenly distributed on the same circumference; the image of the projected pattern is collected by the binocular vision system; through Based on the distance threshold judgment condition, estimate the curvature of a small neighborhood of the surface to select different normal vector measurement schemes: when d≤ε, select the normal vector of the fitting plane to approximate the normal vector of the surface to be measured; when d When >ε, then utilize two space curves after fitting to obtain the normal vector at the point to be measured by the cross product of the tangent vector at the point to be measured; the concrete steps of the measurement method are as follows:
(1)基于阈值灰度重心法的光斑中心提取(1) Spot center extraction based on threshold gray-scale center of gravity method
本发明采用Canny算子结合灰度重心法对光斑中心进行高精度提取,灰度图像I(i,j)中目标S的灰度重心为:The present invention uses the Canny operator in combination with the gray-scale center of gravity method to extract the spot center with high precision, and the gray-scale center of gravity of the target S in the gray-scale image I (i, j) is:
式中,(Xk,Yk)为第k个光斑中心点的图像坐标;W(i,j)为所设定的权值;考虑实际背景和目标之间的灰度信息状况,本发明采用阈值灰度重心法,其权值W(i,j)定义为:In the formula, (X k , Y k ) is the image coordinate of the center point of the kth light spot; W(i, j) is the set weight; considering the gray information status between the actual background and the target, the present invention Using the threshold gray-scale center of gravity method, its weight W(i,j) is defined as:
其中,T为区分目标和背景的阈值;灰度重心取W(i,j)=I(i,j);Among them, T is the threshold for distinguishing the target from the background; the gray center of gravity is W(i,j)=I(i,j);
(2)光斑中心点的匹配和重建(2) Matching and reconstruction of spot center point
在完成光斑中心点的提取后对左右摄像机采集的图像上的光斑中心点进行匹配与重建;匹配方法如下:After completing the extraction of the center point of the light spot, match and reconstruct the center point of the light spot on the images collected by the left and right cameras; the matching method is as follows:
首先采用Hartley提出的改进八点归一化算法计算左右摄像机的基本矩阵F,然后通过左右两高速摄像机所采集的二维数字图像之间极线约束关系进行光斑中心点的初匹配,假设左图像光斑中心点xi'与右图像光斑中心点xi''相匹配,即两光斑中心点满足极限约束条件,极限约束方程可表示如下:First, the improved eight-point normalization algorithm proposed by Hartley is used to calculate the basic matrix F of the left and right cameras, and then the initial matching of the center point of the spot is performed through the epipolar constraint relationship between the two-dimensional digital images collected by the left and right high-speed cameras. The center point x i ' of the light spot matches the center point x i' ' of the light spot in the right image, that is, the center points of the two light spots satisfy the limit constraint condition, and the limit constraint equation can be expressed as follows:
其中,xi'为左摄像机采集的图像光斑中心点的像面坐标;xi''为与xi'相匹配由右摄像机所采集图像光斑中心点的像面坐标;F为两摄像机之间的基本矩阵;Among them, x i 'is the image plane coordinates of the center point of the image spot collected by the left camera; x i '' is the image plane coordinates of the center point of the image spot collected by the right camera matching with x i '; F is the distance between the two cameras the basic matrix of
在此基础上对左右图像中所有满足极限约束条件的光斑中心点进行三维重建以得到光斑中心点在世界坐标系下的三维坐标值,重建公式如下:On this basis, three-dimensional reconstruction is performed on all the center points of the light spots in the left and right images that meet the limit constraints to obtain the three-dimensional coordinates of the center points of the light spots in the world coordinate system. The reconstruction formula is as follows:
其中,xi'=(Xi',Yi'),Xi',Yi'分别为左摄像机采集的图像光斑中心点xi'在像面坐标系下的横、纵坐标;xi''=(Xi'',Yi''),Xi'',Yi''分别为右摄像机采集的图像光斑中心点xi‘'在像面坐标系下的横、纵坐标;(xi,yi,zi)为由两匹配光斑中心点xi'、xi‘'重建出来的空间标记点的三维坐标;f1、f2分别为左右摄像机的焦距;为连接左右摄像机关系的旋转矩阵,[txtytz]是右摄像机相对于左摄像机的平移矩阵;Among them, x i '=(X i ', Y i '), Xi ' , Y i ' are respectively the horizontal and vertical coordinates of the center point x i ' of the image spot collected by the left camera in the image plane coordinate system; x i ' '=(X i' ', Y i' '), Xi ' ', Y i' ' are respectively the abscissa and ordinate of the image spot center point x i' ' collected by the right camera in the image plane coordinate system; ( xi , y i , zi ) are the three-dimensional coordinates of the spatial marker points reconstructed from the center points x i ' and xi ' ' of the two matching spots; f 1 and f 2 are the focal lengths of the left and right cameras respectively; is the rotation matrix connecting the left and right cameras, [t x t y t z ] is the translation matrix of the right camera relative to the left camera;
(3)曲率判定(3) Curvature Judgment
1)最小二乘法拟合空间平面1) The least squares method to fit the space plane
以重建出的四个光斑中心点在世界坐标系的三维坐标值为基础,利用最小二乘法拟合空间平面,步骤如下:Based on the three-dimensional coordinate values of the reconstructed center points of the four spots in the world coordinate system, the least square method is used to fit the space plane. The steps are as follows:
平面方程的一般表达式为:The general expression for the plane equation is:
其中(A,B,C)为平面的法向向量;D为原点到平面的距离;记
选用最小二乘法利用n个点(n≥3):(xi,yi,zi),i=0,1…,,n-1拟合上述平面,则使:
其中S为点到直线的距离的平方和;Where S is the sum of the squares of the distance from the point to the line;
要使S取得最小值,应满足:K=0,1,2;即:To make S obtain the minimum value, it should satisfy: K=0,1,2; namely:
将四个重建光斑中心的空间三维坐标(xi,yi,zi),i=0,1,2,3带入上述方程组求得a0,a1,a2;Put the three-dimensional coordinates (x i , y i , z i ) of the centers of the four reconstruction spots into the above equations to obtain a 0 , a 1 , a 2 ;
即拟合平面的方程为:z=a0x+a1y+a2;空间拟合平面的法向量为: That is, the equation of the fitting plane is: z=a 0 x+a 1 y+a 2 ; the normal vector of the space fitting plane is:
2)求待测点P′到拟合平面的距离2) Find the distance from the point P' to be measured to the fitting plane
空间一点到平面的距离公式可表示为:The distance formula from a point to a plane in space can be expressed as:
其中,S平面为空间拟合平面的方程;d为待测点到平面的距离;P′=(x′,y′,z′)为待测点在世界坐标系下的坐标;Q=(xq,yq,zq)为拟合平面上的任意一点;ε为所设阈值;当d≤ε时,认为待测点P′小邻域曲面范围内曲率变化不大;当d>ε时则认为待测点P′小邻域曲面范围内曲率变化较大;Among them, the S plane is the equation of the space fitting plane; d is the distance from the point to be measured to the plane; P'=(x',y',z') is the coordinate of the point to be measured in the world coordinate system; Q=( x q , y q , z q ) is any point on the fitting plane; ε is the set threshold; when d≤ε, it is considered that the curvature of the measured point P′ does not change much within the small neighborhood surface range; when d> When ε, it is considered that the curvature changes in the small neighborhood surface of the point P′ to be measured is relatively large;
(4)法矢量求解(4) Normal vector solution
基于距离阈值约束的法矢量测量方案选择准则,情况一:若位于曲面上的待测点P′到空间拟合平面的距离满足d≤ε,则认为待测点P′小邻域曲面范围内曲率变化不大,此时认为平面的法向量就是曲面上待测点的法矢量,即
情况二:若曲面上待测点P′到空间拟合平面的距离d>ε,则认为待测点P′小邻域曲面范围内曲率变化较大,其近似曲面可能是球面、抛物面、马鞍面等其它二次曲面,此时选用投影到曲面上的两条空间曲线进行法矢量的求解;其步骤如下:Situation 2: If the distance d>ε from the point P′ to be measured on the surface to the space fitting plane, it is considered that the curvature of the point P′ to be measured varies greatly within the small neighborhood surface range, and the approximate surface may be a sphere, a parabola, or a saddle surface and other quadratic surfaces, at this time, two space curves projected onto the surface are selected to solve the normal vector; the steps are as follows:
1)激光条纹中心线点的提取、匹配与重建1) Extraction, matching and reconstruction of laser stripe centerline points
本发明采用基于方向模板的激光条纹中心线检测方法,分别在水平、垂直、左倾斜45。、右倾斜45。方向上布置大小固定方向可变的模板,分别记为K0、K1、K2、K3,用这四个模板对二维数字图像每一行分别进行处理;以对i行处理为例,对于K0模板有:The present invention adopts a laser stripe centerline detection method based on a direction template, which is inclined 45 degrees horizontally, vertically and leftward respectively. , Tilt 45 to the right. Templates with fixed size and variable direction are arranged in the direction, which are respectively recorded as K 0 , K 1 , K 2 , and K 3 , and these four templates are used to process each row of the two-dimensional digital image separately; taking the processing of row i as an example, For the K 0 template there are:
其中M为模板所对应的行数;N为模板对应的列数;K0[s][]t≥0;表示点的灰度值;相应的对于模板K1、K2、K3有Hg1、Hg2、Hg3;求取Hg=max(Hg0,Hg1,Hg2,Hg3),则有第i行激光条纹的中心点的位置在点g处;用该方法对二维数字图像进行逐行逐像素检测可完成激光条纹中心线的提取;在完成激光条纹中心线提取的基础上,采用与本发明(2)中光斑中心点匹配和重建相同的方法进行激光条纹中心点的匹配和重建,得到激光条纹中心线点在世界坐标系下的三维坐标值;Where M is the number of rows corresponding to the template; N is the number of columns corresponding to the template; K 0 [s][]t≥0; express The gray value of the point; correspondingly for the templates K 1 , K 2 , K 3 there are H g1 , H g2 , H g3 ; if H g = max(H g0 , H g1 , H g2 , H g3 ), then there is The position of the center point of the i-th row of laser stripes is at point g; using this method to detect the two-dimensional digital image line by line and pixel by pixel can complete the extraction of the centerline of the laser stripe; on the basis of completing the extraction of the centerline of the laser stripe, use Carry out the matching and reconstruction of the center point of the laser stripe in the same method as the matching and reconstruction of the center point of the light spot in (2) of the present invention, and obtain the three-dimensional coordinate value of the center line point of the laser stripe under the world coordinate system;
2)三次B样条曲线拟合两空间曲线2) Cubic B-spline curve fitting two space curves
本发明采用三次B样条曲线拟合两空间激光条纹曲线,B样条曲线分段函数表达式为:The present invention adopts cubic B-spline curve to fit the two-space laser fringe curve, and the expression of the segmental function of the B-spline curve is:
其中Pi(i=0,1…5)分别表示控制顶点;Nij(i=1…3,j=0,1…4)表示基函数;设有两摄像机重建出的曲线上离散点为b1,b2,???,bn;其中前i个点位于c1段上,k-i个点位于c2段上,n-j个点位于c3段上,则将几点代入上述方程组得:Among them, P i (i=0,1...5) represent control vertices respectively; N ij (i=1...3, j=0,1...4) represent basis functions; if the discrete points on the curve reconstructed by two cameras are b 1 ,b 2 ,???,b n ; where the first i points are located on segment c 1 , ki points are located on segment c 2 , and nj points are located on segment c 3 , then the points are substituted into the above equations have to:
令M为左边的系数矩阵,P为所求的控制顶点的所组成的向量,p为三维重建的激光条纹中心线点,上述方程简写为:Let M be the coefficient matrix on the left, P be the vector composed of the control vertices to be sought, and p be the centerline point of the three-dimensionally reconstructed laser stripe, the above equation can be abbreviated as:
M·P=p (11)M·P=p (11)
由此可得到拟合的法方程为:From this, the fitted normal equation can be obtained as:
M'·M·P=M'·p (12)M'·M·P=M'·p (12)
为提高交点附近曲线的拟合精度,对上述方程引入权值;加权后的方程为:In order to improve the fitting accuracy of the curve near the intersection point, a weight is introduced to the above equation; the weighted equation is:
(M'·H'·M·P)=(M'·H')·M·p (13)(M'·H'·M·P)=(M'·H')·M·p (13)
通过此加权方程即可求取两曲线的方程。在此基础上分别求取两曲线在待测点两个方向的切矢,记为则所求法矢量为: The equations of the two curves can be obtained through this weighted equation. On this basis, the tangent vectors of the two curves in the two directions of the point to be measured are obtained respectively, which are denoted as Then the normal vector obtained is:
本发明的有益效果是所发明的测量方法为非接触、柔性强、实时性高。可适用于曲面不同点的在线高效率测量,且其方法简单,算法易于实现。The beneficial effect of the invention is that the invented measuring method is non-contact, strong in flexibility and high in real-time performance. It is suitable for online high-efficiency measurement of different points on the surface, and its method is simple, and the algorithm is easy to implement.
附图说明:Description of drawings:
图1为曲面法矢量求解方法原理图。其中,L1′-水平投影激光条纹、L2′-竖直投影激光条纹、P′-待测点、G1-第一投影光斑、G2-第二投影光斑、G3-第三投影光斑、G4-第四投影光斑、S-拟合平面、m-拟合平面S的法向量、d-待测点P′到拟合平面S的距离、-曲面在点P′的法矢量、-曲线L1′在点P′的切向量、-曲线L2′在点P′的切向量。Figure 1 is a schematic diagram of the surface method vector solution method. Among them, L 1 ′-horizontal projection laser stripes, L 2 ′-vertical projection laser stripes, P′-points to be measured, G 1 -first projection spot, G 2 -second projection spot, G 3 -third projection Spot, G 4 -the fourth projected spot, S-fitting plane, m-the normal vector of the fitting plane S, d-the distance from the point P' to be measured to the fitting plane S, - the normal vector of the surface at point P′, - the tangent vector of the curve L 1 ' at the point P', - Tangent vector to curve L2 ' at point P'.
图2为发明的投影图案。其中L1-水平投影线、L2-竖直投影线、P-两正交投影线交点、G1-第一圆形光斑、G2-第二圆形光斑、G3-第三圆形光斑、G4-第四圆形光斑。Figure 2 is the projected pattern of the invention. Among them, L 1 - horizontal projection line, L 2 - vertical projection line, P - intersection point of two orthogonal projection lines, G 1 - first circular spot, G 2 - second circular spot, G 3 - third circular Spot, G 4 - the fourth circular spot.
图3为基于双目视觉测量系统的法矢量求解流程图。Fig. 3 is a flow chart of solving the normal vector based on the binocular vision measurement system.
具体实施方式Detailed ways
本发明结合技术方案和附图,为了更好的说明法矢量求解过程,以飞机蒙皮为实例对其详细叙述。按附图3所示的具体流程如下:(1)利用数控系统将激光投影装置移动到飞机蒙皮待测点P′(x′,y′,z′)处,在保证两激光条纹交点为待测点的基础上,将附图2图案投影在飞机蒙皮待测表面上,投射为四个高亮的光斑G1′、G2′、G3′、G4′和两条激光条纹L1′、L2′,与此同时利用双目视觉系统的左右高速摄像机采集投影图案图像。In order to better illustrate the process of solving the normal vector, the present invention takes the aircraft skin as an example to describe it in detail in combination with the technical scheme and the accompanying drawings. The specific process shown in Figure 3 is as follows: (1) Use the numerical control system to move the laser projection device to the point P'(x', y', z') of the aircraft skin to be measured, and ensure that the intersection point of the two laser stripes is On the basis of the points to be measured, project the pattern shown in Figure 2 on the surface of the aircraft skin to be tested, projecting four bright spots G 1 ′, G 2 ′, G 3 ′, G 4 ′ and two laser stripes L 1 ′, L 2 ′, and at the same time use the left and right high-speed cameras of the binocular vision system to collect projected pattern images.
(2)基于阈值灰度重心法的光斑中心的提取(2) Extraction of the spot center based on the threshold gray-scale center of gravity method
选用Canny算子结合阀值灰度重心法对左右相机采集图像中光斑中心进行提取,完成光斑中心的定位。得左图像中四个光斑中心点的像面坐标(Xi,Yi)i=1,2,3,4和右图像的四个光斑中心点的像面坐标为(Xi′,Yi′)i′=1,2,3,4。The Canny operator combined with the threshold gray center of gravity method is used to extract the center of the spot in the images collected by the left and right cameras to complete the location of the center of the spot. The image plane coordinates (X i , Y i )i=1, 2, 3, 4 of the four spot center points in the left image and the image plane coordinates of the four spot center points in the right image are (X i′ , Y i ' )i'=1,2,3,4.
(3)光斑中心点的匹配和重建(3) Matching and reconstruction of spot center point
将左右图像的光斑中心点的像面坐标带入公式(3)和(4)得到相匹配光斑中心点在世界坐标系下的三维坐标值:Bring the image plane coordinates of the spot center points of the left and right images into formulas (3) and (4) to obtain the three-dimensional coordinate values of the matching spot center points in the world coordinate system:
G1′(x1,y1,z1)、G2′(x2,y2,z2)、G3′(x3,y3,z3)、G4′(x4,y4,z4)。G 1 ′(x 1 ,y 1 ,z 1 ), G 2 ′(x 2 ,y 2 ,z 2 ), G 3 ′(x 3 ,y 3 ,z 3 ), G 4 ′(x 4 ,y 4 , z 4 ).
(4)点邻域曲率判定(4) Point neighborhood curvature determination
1)基于光斑中心离散点最小二乘法拟合空间平面1) Fitting the spatial plane based on the least squares method of discrete points in the center of the spot
将重建出的四个光斑中心作为空间点列,利用最小二乘法拟合空间平面S。将四个光斑中心点的三维坐标带入公式(6),得到平面方程为z=a0x+a1y+a2,得到平面的法向量为 The reconstructed four spot centers are taken as the spatial point series, and the spatial plane S is fitted by the least square method. Bring the three-dimensional coordinates of the center points of the four spots into formula (6), and the plane equation is z=a 0 x+a 1 y+a 2 , and the normal vector of the plane is
2)求待测点P′到拟合平面的距离2) Find the distance from the point P′ to be measured to the fitting plane
将点P′(x′,y′,z′)代到空间平面的距离公式(7)求取待测点到拟合平面的距离d并将此距离与所设阈值ε进行比较得到d>ε。此时应选取两空间曲线在待测点P′(x′,y′,z′)的切矢的叉乘积求取法矢量。Substitute the point P'(x',y',z') into the distance formula (7) to the space plane to find the distance d from the point to be measured to the fitting plane, and compare this distance with the set threshold ε to get d> ε. At this time, the cross product of the tangent vectors of the two space curves at the point P′(x′,y′,z′) to be measured should be selected to obtain the normal vector.
(5)曲面任一点法矢量的求解(5) Solving the normal vector of any point on the surface
1)激光条纹中心线点的提取、匹配和重建1) Extraction, matching and reconstruction of laser stripe centerline points
采用基于方向模板的激光条纹中心检测法,完成激光条纹中心线点的提取,如公式(8)。得到左图像中四个光斑中心点的像面坐标(Xi,Yi)i=1,2…n和右图像的四个光斑中心点的像面坐标(Xi′,Yi′)i′=1,2…n。将提取的左右图像的像面坐标代入公式(3)和(4)进行光斑中心线点的匹配和重建,得光斑中心线点的三维坐标值为(xi,yi,zi)i=1,2…n。The laser stripe center detection method based on the direction template is used to complete the extraction of the centerline point of the laser stripe, as shown in formula (8). Get the image plane coordinates (X i , Y i )i=1, 2...n of the four spot center points in the left image and the image plane coordinates (X i′ , Y i′ )i of the four spot center points in the right image '=1,2...n. Substitute the image plane coordinates of the extracted left and right images into formulas (3) and (4) to match and reconstruct the centerline point of the light spot, and obtain the three-dimensional coordinate value of the centerline point of the light spot (x i , y i , z i )i= 1,2...n.
2)基于空间点离散点数据利用三次B样条曲线拟合2) Using cubic B-spline curve fitting based on discrete point data in space
将重建出的激光条纹中心线点的三维坐标值(xi,yi,zi)i=1,2…n代入公式(10)和加权方程(13),求取两曲线的方程。在此基础上分别求取两曲线在待测点两个方向的切向量,记为则所求法矢量为: Substitute the reconstructed three-dimensional coordinates ( xi , y , zi ) i=1, 2...n of the centerline point of the laser stripe into formula (10) and weighting formula (13) to obtain the equations of the two curves. On this basis, the tangent vectors of the two curves in the two directions of the point to be measured are respectively obtained, which is recorded as Then the normal vector obtained is:
本发明的测量方法为非接触式测量,在充分考虑曲面一点邻域的曲率情况下,选取不同的测量方案求取自由曲面任一点法矢量的测量。其方法简单,柔性强、实时性高、算法易于实现,在满足测量精度要求的条件下很好的提高了法矢量求取效率。The measurement method of the present invention is a non-contact measurement, under the condition of fully considering the curvature of a point neighborhood of the curved surface, different measurement schemes are selected to obtain the measurement of the normal vector of any point on the free-form surface. The method is simple, flexible, high real-time, and the algorithm is easy to implement, and the efficiency of calculating the normal vector is well improved under the condition of meeting the measurement accuracy requirements.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410149149.6A CN103913131B (en) | 2014-04-14 | 2014-04-14 | Free curve method vector measurement method based on binocular vision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410149149.6A CN103913131B (en) | 2014-04-14 | 2014-04-14 | Free curve method vector measurement method based on binocular vision |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103913131A true CN103913131A (en) | 2014-07-09 |
CN103913131B CN103913131B (en) | 2017-04-12 |
Family
ID=51039000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410149149.6A Active CN103913131B (en) | 2014-04-14 | 2014-04-14 | Free curve method vector measurement method based on binocular vision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103913131B (en) |
Cited By (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104732553A (en) * | 2015-04-10 | 2015-06-24 | 大连理工大学 | Feature point extraction method based on multiple laser-assisted targets |
CN105043259A (en) * | 2015-08-25 | 2015-11-11 | 大连理工大学 | Numerical control machine tool rotating shaft error detection method based on binocular vision |
CN105081884A (en) * | 2015-08-24 | 2015-11-25 | 成都飞机工业(集团)有限责任公司 | Normal measuring device for rotary scanning 3D molding |
CN105300316A (en) * | 2015-09-22 | 2016-02-03 | 大连理工大学 | Light stripe center rapid extraction method based on gray centroid method |
CN105345600A (en) * | 2015-10-20 | 2016-02-24 | 上海拓璞数控科技有限公司 | Normal measurement and adjustment method for drilling of free-form surface of aviation thin-wall piece |
CN105571518A (en) * | 2016-01-19 | 2016-05-11 | 大连理工大学 | Three dimensional information vision measurement method based on refraction image deviation |
CN105678684A (en) * | 2014-11-18 | 2016-06-15 | 中兴通讯股份有限公司 | Image capture method and device |
CN105698699A (en) * | 2016-01-26 | 2016-06-22 | 大连理工大学 | A binocular visual sense measurement method based on time rotating shaft constraint |
CN105716539A (en) * | 2016-01-26 | 2016-06-29 | 大连理工大学 | Rapid high-precision 3D shape measuring method |
CN106553086A (en) * | 2016-10-27 | 2017-04-05 | 大连理工大学 | The complex-curved drilling point law vector measuring method of quick high accuracy |
CN107121061A (en) * | 2017-03-15 | 2017-09-01 | 大连理工大学 | A kind of drilling point law vector method for solving constrained based on elliptic cone |
CN107238378A (en) * | 2017-07-11 | 2017-10-10 | 武汉大学 | A kind of three-dimensional positioning device and positioning construction method of saddle camber building |
CN107957234A (en) * | 2016-10-17 | 2018-04-24 | 中国航空工业集团公司北京航空制造工程研究所 | A kind of method and device for measuring normal vector of arbitrary point of free-form surface |
CN108195305A (en) * | 2018-02-09 | 2018-06-22 | 京东方科技集团股份有限公司 | A kind of binocular detecting system and its depth detection method |
CN108931186A (en) * | 2018-03-28 | 2018-12-04 | 中国航空制造技术研究院 | Measurement of curved surface, origin reference location method and measuring device based on intersecting laser |
CN109048911A (en) * | 2018-08-31 | 2018-12-21 | 河南工程学院 | A kind of robot vision control method based on rectangular characteristic |
CN109285195A (en) * | 2018-10-18 | 2019-01-29 | 易思维(杭州)科技有限公司 | Distortion correction method and its application pixel-by-pixel of monocular optical projection system based on large scale target |
CN109346849A (en) * | 2018-09-06 | 2019-02-15 | 中国科学院国家空间科学中心 | A device for generating millimeter-wave Bessel beams |
CN109541626A (en) * | 2018-12-12 | 2019-03-29 | 华南农业大学 | Objective plane normal direction amount detecting device and detection method |
CN109774197A (en) * | 2018-07-13 | 2019-05-21 | 中国航空工业集团公司济南特种结构研究所 | A kind of composite material curved surface laying laser-projector method for determining position |
CN110223355A (en) * | 2019-05-15 | 2019-09-10 | 大连理工大学 | A kind of feature mark poiX matching process based on dual epipolar-line constraint |
CN110307806A (en) * | 2018-03-27 | 2019-10-08 | 广东电网有限责任公司 | A kind of cable curvature estimation method and detection device based on binocular stereo vision |
CN110322502A (en) * | 2018-03-27 | 2019-10-11 | 广东电网有限责任公司 | A kind of cable curvature estimation method and system based on binocular stereo vision |
CN110641947A (en) * | 2019-10-16 | 2020-01-03 | 山东中衡光电科技有限公司 | Intelligent inspection robot system for bulk cargo conveyor and detection method thereof |
CN111008602A (en) * | 2019-12-06 | 2020-04-14 | 青岛海之晨工业装备有限公司 | Two-dimensional and three-dimensional visual combined lineation feature extraction method for small-curvature thin-wall part |
CN111652947A (en) * | 2020-08-06 | 2020-09-11 | 上海上飞飞机装备制造有限公司 | Binocular vision normal vector method for automatic hole making and automatic drilling and riveting of aircraft panels |
CN111964612A (en) * | 2020-08-25 | 2020-11-20 | 大连工业大学 | Drilling normal vector alignment method based on the principle of highly reflective imaging |
CN112033307A (en) * | 2020-07-15 | 2020-12-04 | 成都飞机工业(集团)有限责任公司 | Farnet vector measuring device |
CN112419254A (en) * | 2020-11-16 | 2021-02-26 | 重庆长安汽车股份有限公司 | Method for analyzing visual continuity among uniform parting curved surfaces based on human visual limit |
CN112809037A (en) * | 2021-01-04 | 2021-05-18 | 中国航空制造技术研究院 | Method for drilling on curved surface structure |
CN114565565A (en) * | 2022-02-11 | 2022-05-31 | 山西支点科技有限公司 | Method for positioning sub-pixels in center of vision measurement target |
CN114688967A (en) * | 2020-12-29 | 2022-07-01 | 北京机械工业自动化研究所有限公司 | Method, device and operation equipment for normal vector measurement based on machine vision |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101976336A (en) * | 2010-10-21 | 2011-02-16 | 西北工业大学 | Fuzzy enhancement and surface fitting-based image edge characteristic extraction method |
CN103489222A (en) * | 2013-09-06 | 2014-01-01 | 电子科技大学 | Target body surface reconstruction method in three-dimensional image |
CN103558808A (en) * | 2013-09-28 | 2014-02-05 | 大连理工大学 | Kinematics control method for complex-curved-surface five-axis numerical control machining cutter vectors |
CN103592891A (en) * | 2013-09-28 | 2014-02-19 | 大连理工大学 | Method for cutter-axis vector fairing of complex curved surface five-axis numerical control machining based on kinematical constraints |
-
2014
- 2014-04-14 CN CN201410149149.6A patent/CN103913131B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101976336A (en) * | 2010-10-21 | 2011-02-16 | 西北工业大学 | Fuzzy enhancement and surface fitting-based image edge characteristic extraction method |
CN103489222A (en) * | 2013-09-06 | 2014-01-01 | 电子科技大学 | Target body surface reconstruction method in three-dimensional image |
CN103558808A (en) * | 2013-09-28 | 2014-02-05 | 大连理工大学 | Kinematics control method for complex-curved-surface five-axis numerical control machining cutter vectors |
CN103592891A (en) * | 2013-09-28 | 2014-02-19 | 大连理工大学 | Method for cutter-axis vector fairing of complex curved surface five-axis numerical control machining based on kinematical constraints |
Non-Patent Citations (2)
Title |
---|
孙玉文 等: "基于自由曲面点云的快速原型制作技术研究", 《机械工程学报》, vol. 39, no. 1, 31 January 2003 (2003-01-31) * |
马东雄 等: "磁研法在模具曲面中的抛光机理与技术研究", 《机械设计与制造》, no. 3, 31 March 2009 (2009-03-31) * |
Cited By (51)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105678684B (en) * | 2014-11-18 | 2020-11-03 | 中兴通讯股份有限公司 | Method and device for intercepting image |
CN105678684A (en) * | 2014-11-18 | 2016-06-15 | 中兴通讯股份有限公司 | Image capture method and device |
CN104732553A (en) * | 2015-04-10 | 2015-06-24 | 大连理工大学 | Feature point extraction method based on multiple laser-assisted targets |
CN104732553B (en) * | 2015-04-10 | 2017-07-11 | 大连理工大学 | A kind of Feature Points Extraction based on many laser assisted targets |
CN105081884A (en) * | 2015-08-24 | 2015-11-25 | 成都飞机工业(集团)有限责任公司 | Normal measuring device for rotary scanning 3D molding |
CN105081884B (en) * | 2015-08-24 | 2023-08-04 | 成都飞机工业(集团)有限责任公司 | Normal measuring device for rotary scanning 3D molding |
CN105043259B (en) * | 2015-08-25 | 2017-07-11 | 大连理工大学 | Digit Control Machine Tool rotary shaft error detection method based on binocular vision |
CN105043259A (en) * | 2015-08-25 | 2015-11-11 | 大连理工大学 | Numerical control machine tool rotating shaft error detection method based on binocular vision |
CN105300316B (en) * | 2015-09-22 | 2017-10-13 | 大连理工大学 | Optical losses rapid extracting method based on grey scale centre of gravity method |
CN105300316A (en) * | 2015-09-22 | 2016-02-03 | 大连理工大学 | Light stripe center rapid extraction method based on gray centroid method |
CN105345600B (en) * | 2015-10-20 | 2020-02-21 | 上海拓璞数控科技股份有限公司 | Normal measurement and adjustment method for free-form surface drilling of aviation thin-walled part |
CN105345600A (en) * | 2015-10-20 | 2016-02-24 | 上海拓璞数控科技有限公司 | Normal measurement and adjustment method for drilling of free-form surface of aviation thin-wall piece |
CN105571518A (en) * | 2016-01-19 | 2016-05-11 | 大连理工大学 | Three dimensional information vision measurement method based on refraction image deviation |
CN105571518B (en) * | 2016-01-19 | 2017-10-17 | 大连理工大学 | Three-dimensional information vision measuring method based on refraction image deviation |
CN105716539A (en) * | 2016-01-26 | 2016-06-29 | 大连理工大学 | Rapid high-precision 3D shape measuring method |
CN105698699A (en) * | 2016-01-26 | 2016-06-22 | 大连理工大学 | A binocular visual sense measurement method based on time rotating shaft constraint |
CN107957234A (en) * | 2016-10-17 | 2018-04-24 | 中国航空工业集团公司北京航空制造工程研究所 | A kind of method and device for measuring normal vector of arbitrary point of free-form surface |
CN107957234B (en) * | 2016-10-17 | 2023-09-29 | 中国航空制造技术研究院 | Method and device for measuring normal vector at any point of free-form surface |
CN106553086A (en) * | 2016-10-27 | 2017-04-05 | 大连理工大学 | The complex-curved drilling point law vector measuring method of quick high accuracy |
CN107121061A (en) * | 2017-03-15 | 2017-09-01 | 大连理工大学 | A kind of drilling point law vector method for solving constrained based on elliptic cone |
CN107121061B (en) * | 2017-03-15 | 2018-07-13 | 大连理工大学 | A kind of drilling point law vector method for solving based on elliptic cone constraint |
CN107238378A (en) * | 2017-07-11 | 2017-10-10 | 武汉大学 | A kind of three-dimensional positioning device and positioning construction method of saddle camber building |
CN107238378B (en) * | 2017-07-11 | 2019-06-25 | 武汉大学 | A kind of three-dimensional positioning device and positioning construction method of saddle camber building |
CN108195305A (en) * | 2018-02-09 | 2018-06-22 | 京东方科技集团股份有限公司 | A kind of binocular detecting system and its depth detection method |
CN110322502A (en) * | 2018-03-27 | 2019-10-11 | 广东电网有限责任公司 | A kind of cable curvature estimation method and system based on binocular stereo vision |
CN110307806A (en) * | 2018-03-27 | 2019-10-08 | 广东电网有限责任公司 | A kind of cable curvature estimation method and detection device based on binocular stereo vision |
CN108931186A (en) * | 2018-03-28 | 2018-12-04 | 中国航空制造技术研究院 | Measurement of curved surface, origin reference location method and measuring device based on intersecting laser |
CN108931186B (en) * | 2018-03-28 | 2020-06-12 | 中国航空制造技术研究院 | Curved surface measurement and reference positioning method and measurement equipment based on cross laser |
CN109774197A (en) * | 2018-07-13 | 2019-05-21 | 中国航空工业集团公司济南特种结构研究所 | A kind of composite material curved surface laying laser-projector method for determining position |
CN109774197B (en) * | 2018-07-13 | 2021-05-07 | 中国航空工业集团公司济南特种结构研究所 | Method for determining position of laser projector of composite material curved surface layering |
CN109048911A (en) * | 2018-08-31 | 2018-12-21 | 河南工程学院 | A kind of robot vision control method based on rectangular characteristic |
CN109048911B (en) * | 2018-08-31 | 2021-08-24 | 河南工程学院 | A Robot Vision Control Method Based on Rectangle Features |
CN109346849A (en) * | 2018-09-06 | 2019-02-15 | 中国科学院国家空间科学中心 | A device for generating millimeter-wave Bessel beams |
CN109285195B (en) * | 2018-10-18 | 2020-09-04 | 易思维(杭州)科技有限公司 | Monocular projection system pixel-by-pixel distortion correction method based on large-size target and application thereof |
CN109285195A (en) * | 2018-10-18 | 2019-01-29 | 易思维(杭州)科技有限公司 | Distortion correction method and its application pixel-by-pixel of monocular optical projection system based on large scale target |
CN109541626A (en) * | 2018-12-12 | 2019-03-29 | 华南农业大学 | Objective plane normal direction amount detecting device and detection method |
CN110223355A (en) * | 2019-05-15 | 2019-09-10 | 大连理工大学 | A kind of feature mark poiX matching process based on dual epipolar-line constraint |
CN110641947A (en) * | 2019-10-16 | 2020-01-03 | 山东中衡光电科技有限公司 | Intelligent inspection robot system for bulk cargo conveyor and detection method thereof |
CN111008602A (en) * | 2019-12-06 | 2020-04-14 | 青岛海之晨工业装备有限公司 | Two-dimensional and three-dimensional visual combined lineation feature extraction method for small-curvature thin-wall part |
CN112033307B (en) * | 2020-07-15 | 2021-08-03 | 成都飞机工业(集团)有限责任公司 | Farnet vector measuring device |
CN112033307A (en) * | 2020-07-15 | 2020-12-04 | 成都飞机工业(集团)有限责任公司 | Farnet vector measuring device |
CN111652947A (en) * | 2020-08-06 | 2020-09-11 | 上海上飞飞机装备制造有限公司 | Binocular vision normal vector method for automatic hole making and automatic drilling and riveting of aircraft panels |
CN111964612B (en) * | 2020-08-25 | 2021-10-29 | 大连工业大学 | Drilling normal vector alignment method based on the principle of highly reflective imaging |
CN111964612A (en) * | 2020-08-25 | 2020-11-20 | 大连工业大学 | Drilling normal vector alignment method based on the principle of highly reflective imaging |
CN112419254A (en) * | 2020-11-16 | 2021-02-26 | 重庆长安汽车股份有限公司 | Method for analyzing visual continuity among uniform parting curved surfaces based on human visual limit |
CN112419254B (en) * | 2020-11-16 | 2024-02-09 | 重庆长安汽车股份有限公司 | Method for analyzing visual sense continuous sense between uniform parting curved surfaces based on human eye visual limit |
CN114688967A (en) * | 2020-12-29 | 2022-07-01 | 北京机械工业自动化研究所有限公司 | Method, device and operation equipment for normal vector measurement based on machine vision |
CN114688967B (en) * | 2020-12-29 | 2024-08-16 | 北京机械工业自动化研究所有限公司 | Normal vector measurement method, device and operating equipment based on machine vision |
CN112809037A (en) * | 2021-01-04 | 2021-05-18 | 中国航空制造技术研究院 | Method for drilling on curved surface structure |
CN114565565A (en) * | 2022-02-11 | 2022-05-31 | 山西支点科技有限公司 | Method for positioning sub-pixels in center of vision measurement target |
CN114565565B (en) * | 2022-02-11 | 2024-08-27 | 山西支点科技有限公司 | Visual measurement target center sub-pixel positioning method |
Also Published As
Publication number | Publication date |
---|---|
CN103913131B (en) | 2017-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103913131A (en) | Free curve method vector measurement method based on binocular vision | |
CN105300316B (en) | Optical losses rapid extracting method based on grey scale centre of gravity method | |
CN104809738B (en) | A binocular vision-based airbag contour size detection method | |
CN104182982B (en) | Overall optimizing method of calibration parameter of binocular stereo vision camera | |
CN104484648B (en) | Robot variable viewing angle obstacle detection method based on contour recognition | |
CN105066915B (en) | On-machine detection device and detection method for mold surface processing error and surface roughness | |
CN105654483B (en) | The full-automatic method for registering of three-dimensional point cloud | |
CN104406538B (en) | Three-dimensional mark point matching method for point cloud registration and three-dimensional scanning method | |
CN104835158B (en) | 3D Point Cloud Acquisition Method Based on Gray Code Structured Light and Epipolar Constraint | |
CN110310331B (en) | A Pose Estimation Method Based on the Combination of Line Features and Point Cloud Features | |
CN109470149B (en) | A method and device for measuring the pose of a pipeline | |
CN105405119B (en) | Fetus median sagittal plane automatic testing method based on depth confidence network and threedimensional model | |
CN103822581B (en) | A kind of irregularly shaped object volume measuring method based on compressed sensing | |
CN106289240A (en) | A kind of two step coupling method for recognising star map based on primary | |
CN103236043B (en) | A kind of plant organ point cloud restoration method | |
CN116229017A (en) | A Reconstruction Method of 3D Model of Pipe Fittings Based on Reverse Projection | |
CN111126116A (en) | Method and system for identifying river garbage by unmanned boat | |
CN112508766B (en) | An intelligent interpretation method of rock mass structural plane based on point cloud and GPU technology | |
CN105678252A (en) | Iteration interpolation method based on face triangle mesh adaptive subdivision and Gauss wavelet | |
CN107121061A (en) | A kind of drilling point law vector method for solving constrained based on elliptic cone | |
CN116402792A (en) | A 3D Point Cloud-Based Spatial Hole Location Docking Method | |
CN103824323B (en) | A kind of three-dimensional rebuilding method based on single width two dimensional image | |
CN101996415B (en) | Three-dimensional modeling method for eyeball | |
CN107146223A (en) | An analysis system and method for displacement coupling of transmission towers and transmission lines | |
CN113702384A (en) | Surface defect detection device, detection method and calibration method for rotary component |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |