[go: up one dir, main page]

CN112033286B - A measurement method of a structural six-degree-of-freedom motion measurement system based on binocular vision - Google Patents

A measurement method of a structural six-degree-of-freedom motion measurement system based on binocular vision Download PDF

Info

Publication number
CN112033286B
CN112033286B CN202010837812.7A CN202010837812A CN112033286B CN 112033286 B CN112033286 B CN 112033286B CN 202010837812 A CN202010837812 A CN 202010837812A CN 112033286 B CN112033286 B CN 112033286B
Authority
CN
China
Prior art keywords
image
camera
point
measuring
measurement
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
Application number
CN202010837812.7A
Other languages
Chinese (zh)
Other versions
CN112033286A (en
Inventor
单宝华
熊亚凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN202010837812.7A priority Critical patent/CN112033286B/en
Publication of CN112033286A publication Critical patent/CN112033286A/en
Application granted granted Critical
Publication of CN112033286B publication Critical patent/CN112033286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/028Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by measuring lateral position of a boundary of the object
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/26Measuring arrangements characterised by the use of optical techniques for measuring angles or tapers; for testing the alignment of axes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
    • G01B21/04Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness by measuring coordinates of points
    • G01B21/042Calibration or calibration artifacts

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses a binocular vision-based structural six-degree-of-freedom motion measurement system and a measurement method thereof. Step 1: pasting a round target on the surface of the structure, and arranging at least three measuring points by taking the center of the round target as the measuring points; step 2: calibrating the vision measuring system by using a checkerboard calibration method; and step 3: capturing target motion with two cameras; and 4, step 4: carrying out image point coordinate optimization on the target motion captured in the step 3; and 5: and finishing the six-degree-of-freedom measurement of the structure. The method aims to solve the problems of inconvenient technical operation, low measurement precision, higher cost, low applicability, complex operation and low engineering practicability when the traditional measurement method is used for processing six-degree-of-freedom motion measurement.

Description

一种基于双目视觉的结构六自由度运动测量系统的测量方法A measurement method of a structural six-degree-of-freedom motion measurement system based on binocular vision

技术领域technical field

本发明属于结构六自由度运动测量的技术领域;具体涉及一种基于双目视觉的结构六自由度运动测量系统的测量方法。The invention belongs to the technical field of structural six-degree-of-freedom motion measurement, and particularly relates to a measurement method for a structural six-degree-of-freedom motion measuring system based on binocular vision.

背景技术Background technique

目前,测量方式可以分为接触式测量和非接触测量。拉线式位移计、百分表、线性可变差动变压式传感器等测量方法为常见的接触式测量方法,这些方法有很高的精度并有较高的可靠性,但是这些方法传感器布置麻烦、效率低,受场地和环境的影响大。当测量条件恶劣时,如构件变形剧烈、在高温或温度变化剧烈的环境下,接触式传感器的精度难以保证。At present, measurement methods can be divided into contact measurement and non-contact measurement. The measurement methods such as pull-wire displacement meter, dial indicator, linear variable differential pressure sensor are common contact measurement methods. These methods have high precision and high reliability, but these methods have troublesome sensor layout. , low efficiency, greatly affected by the site and the environment. When the measurement conditions are harsh, such as severe deformation of components, high temperature or severe temperature changes, the accuracy of the contact sensor is difficult to guarantee.

非接触测量不与构件直接接触,对结构影响小,测量效率高,能在复杂条件下稳定工作并提供较高精度,正成为学者们关注的热点。计算机视觉测量方法则是一种重要的非接触测量方法。视觉测量方法能提供丰富地测量信息,实现实时高精度测量,操作简单。现在,计算机技术和摄像技术越来越多地应用到测量领域。Non-contact measurement is not in direct contact with components, has little impact on the structure, high measurement efficiency, can work stably under complex conditions and provide high accuracy, and is becoming a focus of attention of scholars. Computer vision measurement method is an important non-contact measurement method. The visual measurement method can provide abundant measurement information, realize real-time high-precision measurement, and be easy to operate. Nowadays, computer technology and camera technology are increasingly applied to the field of measurement.

在进行浪潮试验时,需要测量的六自由度运动,即测量结构的三维位移及三维转角。传统的测量方法难以获得结构的六自由度运动。而且试验中,结构需要布置在水面上,接触式传感器难以布置。In the wave test, the six-degree-of-freedom motion that needs to be measured, that is, the three-dimensional displacement and three-dimensional rotation angle of the structure are measured. It is difficult to obtain the six-degree-of-freedom motion of the structure by traditional measurement methods. Moreover, in the test, the structure needs to be arranged on the water surface, and it is difficult to arrange the contact sensor.

发明内容SUMMARY OF THE INVENTION

发明的目的是为了解决传统测量方法在处理六自由度运动测量时,技术操作不便、测量精度不高、成本较高、应用性不高、操作复杂以及工程实用性不强的问题而提出的基于双目视觉的结构六自由度运动测量系统的测量方法。The purpose of the invention is to solve the problems of inconvenient technical operation, low measurement accuracy, high cost, low applicability, complex operation and low engineering practicability when the traditional measurement method handles the six-degree-of-freedom motion measurement. The measurement method of the structural six-degree-of-freedom motion measurement system of binocular vision.

本发明通过以下技术方案实现:The present invention is achieved through the following technical solutions:

一种基于双目视觉的结构六自由度运动测量系统的测量方法,所述测量系统包括两台相机和计算机,所述两台相机通过网线与计算机相连接,所述计算机与同步触发器相连接,通过计算机控制同步触发器向相机同步发送采集信号;A measurement method for a structural six-degree-of-freedom motion measurement system based on binocular vision, the measurement system includes two cameras and a computer, the two cameras are connected with a computer through a network cable, and the computer is connected with a synchronization trigger , send the acquisition signal to the camera synchronously through the computer-controlled synchronization trigger;

所述两台相机安装在三脚架上,使所述两台相机的画面中心对准待测结构。The two cameras are mounted on a tripod, so that the center of the images of the two cameras is aligned with the structure to be tested.

一种基于双目视觉的结构六自由度运动测量系统的测量方法,所述测量系统的配置方法包括以下步骤:A measurement method of a six-degree-of-freedom motion measurement system based on binocular vision, the configuration method of the measurement system comprises the following steps:

步骤1:在结构表面粘贴圆靶标,以圆靶标中心为测点,布置至少三个测点;在测点前方布置两台相机,两台相机分别设置在测点左前方与测点右前方,测点在左侧相机与右侧相机的视场内;Step 1: Paste a circular target on the surface of the structure, take the center of the circular target as the measuring point, and arrange at least three measuring points; two cameras are arranged in front of the measuring point, and the two cameras are respectively set in the left front of the measuring point and the right front of the measuring point. The measuring point is within the field of view of the left camera and the right camera;

步骤2:使用棋盘格标定方法对视觉测量系统进行标定;将棋盘格标定板布置在视场内,选定当标定板紧贴在结构表面时,此时棋盘格标定板所在的平面为结构参考面;Step 2: Use the checkerboard calibration method to calibrate the visual measurement system; arrange the checkerboard calibration plate in the field of view, and select the plane on which the checkerboard calibration plate is located when the calibration plate is close to the surface of the structure as the structural reference. noodle;

步骤3:利用两台相机捕捉靶标运动;采集运动图像,完成第一张图像中圆靶标的识别,并在运动过程中跟踪捕捉圆靶标运动,得到测点在左侧相机与右侧相机图像上的像素坐标;Step 3: Use two cameras to capture the movement of the target; collect moving images, complete the identification of the circular target in the first image, and track and capture the movement of the circular target during the movement, and obtain the measuring points on the images of the left camera and the right camera. the pixel coordinates of ;

步骤4:将步骤3捕捉的标靶运动进行像点坐标优化;由标定结果计算左侧相机与右侧相机匹配像点的对应极线,由极线方程对像点坐标进行优化,得到优化后像点坐标;Step 4: Perform image point coordinate optimization on the target motion captured in step 3; calculate the corresponding epipolar line of the matching image point between the left camera and the right camera from the calibration result, and optimize the image point coordinate by the epipolar line equation. image point coordinates;

步骤5:完成结构六自由度测量;由优化后的像点坐标计算测点的三维位移,选择三个测点计算结构的三维转角,完成结构六自由度测量。Step 5: Complete the six-degree-of-freedom measurement of the structure; calculate the three-dimensional displacement of the measuring point from the optimized image point coordinates, select three measuring points to calculate the three-dimensional rotation angle of the structure, and complete the six-degree-of-freedom measurement of the structure.

进一步的,所述步骤2具体为,由采集的标定图像计算视觉测量系统的左侧相机的内参数矩阵Al,右侧相机的内参数矩阵Ar;左侧相机参考系转换到右侧相机参考系的旋转矩阵Rl2r与平移向量Tl2r;结构参考面转换到左侧相机参考系的旋转矩阵R与平移向量T;Further, the step 2 is specifically: calculating the internal parameter matrix A l of the left camera of the visual measurement system and the internal parameter matrix A r of the right camera from the collected calibration image; the left camera reference system is converted to the right camera. The rotation matrix R l2r of the reference frame and the translation vector T l2r ; the structural reference plane is converted to the rotation matrix R and the translation vector T of the left camera reference frame;

Al、Ar、Rl2r与Tl2r的表达式为:The expressions of A l , A r , R l2r and T l2r are:

Figure GDA0003402372690000021
Figure GDA0003402372690000021

Figure GDA0003402372690000022
Figure GDA0003402372690000022

其中,

Figure GDA0003402372690000023
分别为左侧相机在图像平面u、v轴上的等效焦距,
Figure GDA0003402372690000024
分别为右侧相机在u、v轴上的等效焦距,(ul,vl)和(ur,vr)分别为左侧相机主点和右侧相机主点在图像平面的坐标,ri(i=1,2...,9)为左侧相机参考系到右侧相机参考系的旋转矩阵参数,tx,ty,tz分别为左侧相机参考系到右侧相机参考系的平移矩阵参数。in,
Figure GDA0003402372690000023
are the equivalent focal lengths of the left camera on the u and v axes of the image plane, respectively,
Figure GDA0003402372690000024
are the equivalent focal lengths of the right camera on the u and v axes, respectively, (u l , v l ) and (u r , v r ) are the coordinates of the left camera principal point and the right camera principal point on the image plane, respectively, r i (i=1,2...,9) is the rotation matrix parameter from the left camera reference frame to the right camera reference frame, t x , ty , t z are the left camera reference frame to the right camera respectively The translation matrix parameter of the reference frame.

进一步的,所述步骤3捕捉靶标运动的具体过程为:Further, the specific process of capturing the movement of the target in the step 3 is:

步骤3.1:在左相机采集的第一张图像中框选测点区域,使用Niblack算法将图像二值化;Step 3.1: In the first image captured by the left camera, frame the measurement point area, and use the Niblack algorithm to binarize the image;

步骤3.2:计算二值化图像中的封闭区域的等效离心率,并与设定的阈值进行对比;Step 3.2: Calculate the equivalent eccentricity of the closed area in the binarized image and compare it with the set threshold;

步骤3.3:采用Canny-Zernike算法提取圆形靶标的亚像素边缘,以提取到的亚像素边缘拟合得到椭圆方程,由椭圆方程计算得到椭圆中心坐标,以椭圆中心坐标作为左侧相机测点的初始坐标;Step 3.3: Use the Canny-Zernike algorithm to extract the sub-pixel edge of the circular target, fit the extracted sub-pixel edge to obtain the ellipse equation, and calculate the ellipse center coordinate from the ellipse equation, and use the ellipse center coordinate as the left camera measuring point. initial coordinates;

步骤3.4:输入预估测点的位移,得到各测点的搜索子区;Step 3.4: Input the displacement of the estimated measuring point to obtain the search sub-area of each measuring point;

步骤3.5:使用与步骤3.1至步骤3.4同样的方法,完成右侧相机采集图像的时序匹配,并根据测点编号,完成左侧相机与右侧相机采集图像的匹配;由此得到左侧相机与右侧相机图像匹配像点的坐标pl、prStep 3.5: Use the same method as Step 3.1 to Step 3.4 to complete the timing matching of the images captured by the right camera, and complete the matching of the images captured by the left camera and the right camera according to the measurement point number; The right camera image matches the coordinates p l , pr of the image point.

进一步的,所述步骤3.5的具体过程为,由采集左侧相机的内参数矩阵Al,右侧相机的内参数矩阵Ar,左侧相机转换到右侧相机的旋转矩阵Rl2r与平移向量Tl2r计算得到相机的基本矩阵F,Further, the specific process of step 3.5 is, by collecting the internal parameter matrix A l of the left camera, the internal parameter matrix A r of the right camera, the left camera is converted to the rotation matrix R l2r and translation vector of the right camera. T l2r calculates the fundamental matrix F of the camera,

F=Ar -T[Tl2r]×Rl2rAl -1 F=A r -T [T l2r ] × R l2r A l -1

由基本矩阵F与匹配像点的坐标pl、pr求出对应极线的方程ll、lrFrom the fundamental matrix F and the coordinates p l and p r of the matched image points, the equations l l and l r of the corresponding polar lines are obtained:

ll=Fpr l l = Fpr

lr=Fpl l r = Fp l

由极线的方程ll、lr与像点的坐标pl、pr求出像点到极线的距离dl与dr;过像点作极线的垂线,由像点指向极线的方向向量为Dl,Dr,优化后像点的坐标p′l、p′r为:Calculate the distances d l and d r from the image point to the epipolar line from the equations l l and l r of the epipolar line and the coordinates p l and pr of the image point; The direction vectors of the line are D l , D r , and the coordinates p′ l and p′ r of the image point after optimization are:

Figure GDA0003402372690000031
Figure GDA0003402372690000031

进一步的,所述步骤5结构六自由度测量方法的具体过程为:首先计算优化后像点的归一化坐标Xnl=[xnl,ynl]T,Xnr=[xnr,ynr]TFurther, the specific process of the six-degree-of-freedom measurement method of the structure in step 5 is: firstly calculate the normalized coordinates of the optimized image point X nl =[x nl ,y nl ] T ,X nr =[x nr ,y nr ] T :

Figure GDA0003402372690000032
Figure GDA0003402372690000032

进而求出测点的在左相机参考系中的三维坐标X=[xw,yw,zw]TThen, the three-dimensional coordinates X=[x w , y w , z w ] T of the measuring point in the left camera reference system are obtained:

Figure GDA0003402372690000033
Figure GDA0003402372690000033

为了将坐标系转换至结构参考面,得到最终的测点的三维坐标P:In order to convert the coordinate system to the structural reference plane, the 3D coordinates P of the final survey point are obtained:

P=R-1(X-T)P=R -1 (XT)

得到各测点的三维坐标后,选择三个测点,命名为测点1、测点2、测点3,得到三个测点初始三维坐标为Pi(i=1,2,3),运动过程中某一时刻的三维坐标为Pi′(i=1,2,3);以测点2为旋转中心,由这三个测点计算结构的三维位移与三维转角。三维位移与三维转角使用旋转矩阵r和平移矢量t表示;After obtaining the three-dimensional coordinates of each measuring point, select three measuring points and name them as measuring point 1, measuring point 2, and measuring point 3, and obtain the initial three-dimensional coordinates of the three measuring points as Pi ( i =1,2,3), The three-dimensional coordinates at a certain moment in the movement process are P i ' (i=1, 2, 3); with measuring point 2 as the rotation center, the three-dimensional displacement and three-dimensional rotation angle of the structure are calculated from these three measuring points. The three-dimensional displacement and three-dimensional rotation angle are represented by the rotation matrix r and the translation vector t;

由此可得:Therefore:

t=P′2-P2 t=P' 2 -P 2

P′i=r·Pi+tP′ i =r·P i +t

进而得到:and get:

[P′1-t,P′2-t,P′3-t]=r·[P1,P2,P3][P' 1 -t, P' 2 -t, P' 3 -t]=r·[P 1 , P 2 , P 3 ]

由上式可以解出旋转矩阵r,将旋转矩阵r分解成横摇α、纵摇β与艏摇γ,由此得到结构的六自由度测量结果。From the above formula, the rotation matrix r can be solved, and the rotation matrix r can be decomposed into roll α, pitch β and bow γ, thereby obtaining the six-degree-of-freedom measurement result of the structure.

本发明的有益效果是:The beneficial effects of the present invention are:

使用视觉测量方法,有效地完成了结构六自由度运动视觉测量。实现了结构六自由度运动视觉测量系统对圆靶标的初识别与跟踪,得到圆靶标中心的亚像素坐标,满足高精度测量需求。Using the visual measurement method, the visual measurement of the six-degree-of-freedom motion of the structure is effectively completed. The initial recognition and tracking of the circular target by the structural six-degree-of-freedom motion vision measurement system is realized, and the sub-pixel coordinates of the center of the circular target are obtained, which meets the requirements of high-precision measurement.

视觉测量的最后一个环节是三维重建。三维重建的精度直接影响了测量的精度。由于在标定、图像目标定位等过程中积累了误差,如何合理的消除误差是提高空间点坐标三维测量精度的关键内容。本发明在进行三维重建前对像点坐标进行了优化,能有效提高测量精度。The final step in visual measurement is 3D reconstruction. The accuracy of 3D reconstruction directly affects the accuracy of measurement. Due to the accumulation of errors in the process of calibration and image target positioning, how to eliminate errors reasonably is the key content to improve the accuracy of three-dimensional measurement of spatial point coordinates. The invention optimizes the coordinates of the image point before performing the three-dimensional reconstruction, and can effectively improve the measurement accuracy.

附图说明Description of drawings

图1本发明系统的硬件结构示意图。FIG. 1 is a schematic diagram of the hardware structure of the system of the present invention.

图2本发明测量软件界面图。FIG. 2 is an interface diagram of the measurement software of the present invention.

图3本发明的测量软件流程图。Figure 3 is a flow chart of the measurement software of the present invention.

图4本发明第一张图像中圆靶标的识别结果图。FIG. 4 is a diagram of the recognition result of the circular target in the first image of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

一种基于双目视觉的结构六自由度运动测量系统的测量方法,所述测量系统包括两台相机和计算机,所述两台相机通过网线与计算机相连接,所述计算机与同步触发器相连接,通过计算机控制同步触发器向相机同步发送采集信号;A measurement method for a structural six-degree-of-freedom motion measurement system based on binocular vision, the measurement system includes two cameras and a computer, the two cameras are connected with a computer through a network cable, and the computer is connected with a synchronization trigger , send the acquisition signal to the camera synchronously through the computer-controlled synchronization trigger;

所述两台相机安装在三脚架上,调整相机姿态,使所述两台相机的画面中心对准待测结构。The two cameras are mounted on a tripod, and the postures of the cameras are adjusted so that the center of the images of the two cameras is aligned with the structure to be measured.

一种基于双目视觉的结构六自由度运动测量系统的测量方法,所述测量系统的配置方法包括以下步骤:A measurement method of a six-degree-of-freedom motion measurement system based on binocular vision, the configuration method of the measurement system comprises the following steps:

步骤1:在结构表面粘贴圆靶标,以圆靶标中心为测点,布置至少三个测点;在测点前方布置两台相机,两台相机分别设置在测点左前方与测点右前方,测点在左侧相机与右侧相机的视场内;Step 1: Paste a circular target on the surface of the structure, take the center of the circular target as the measuring point, and arrange at least three measuring points; two cameras are arranged in front of the measuring point, and the two cameras are respectively set in the left front of the measuring point and the right front of the measuring point. The measuring point is within the field of view of the left camera and the right camera;

步骤2:使用棋盘格标定方法对视觉测量系统进行标定;将棋盘格标定板布置在视场内,变换棋盘格标定板的姿态,使用左侧相机与右侧相机采集多张图像用于相机标定,选定当标定板紧贴在结构表面时,此时棋盘格标定板所在的平面为结构参考面;Step 2: Use the checkerboard calibration method to calibrate the visual measurement system; arrange the checkerboard calibration plate in the field of view, change the posture of the checkerboard calibration plate, and use the left camera and the right camera to collect multiple images for camera calibration , select when the calibration plate is close to the surface of the structure, the plane where the checkerboard calibration plate is located is the reference surface of the structure;

步骤3:利用两台相机捕捉靶标运动;采集运动图像,完成第一张图像中圆靶标的识别,并在运动过程中跟踪捕捉圆靶标运动,得到测点在左侧相机与右侧相机图像上的像素坐标;Step 3: Use two cameras to capture the movement of the target; collect moving images, complete the identification of the circular target in the first image, and track and capture the movement of the circular target during the movement, and obtain the measuring points on the images of the left camera and the right camera. the pixel coordinates of ;

步骤4:将步骤3捕捉的标靶运动进行像点坐标优化;由标定结果计算左侧相机与右侧相机匹配像点的对应极线,由极线方程对像点坐标进行优化,得到优化后像点坐标;Step 4: Perform image point coordinate optimization on the target motion captured in step 3; calculate the corresponding epipolar line of the matching image point between the left camera and the right camera from the calibration result, and optimize the image point coordinate by the epipolar line equation. image point coordinates;

步骤5:完成结构六自由度测量;由优化后的像点坐标计算测点的三维位移,选择三个测点计算结构的三维转角,完成结构六自由度测量。Step 5: Complete the six-degree-of-freedom measurement of the structure; calculate the three-dimensional displacement of the measuring point from the optimized image point coordinates, select three measuring points to calculate the three-dimensional rotation angle of the structure, and complete the six-degree-of-freedom measurement of the structure.

进一步的,所述步骤2具体为,由采集的标定图像计算视觉测量系统的左侧相机的内参数矩阵Al,右侧相机的内参数矩阵Ar;左侧相机参考系转换到右侧相机参考系的旋转矩阵Rl2r与平移向量Tl2r;结构参考面转换到左侧相机参考系的旋转矩阵R与平移向量T;Further, the step 2 is specifically: calculating the internal parameter matrix A l of the left camera of the visual measurement system and the internal parameter matrix A r of the right camera from the collected calibration image; the left camera reference system is converted to the right camera. The rotation matrix R l2r of the reference frame and the translation vector T l2r ; the structural reference plane is converted to the rotation matrix R and the translation vector T of the left camera reference frame;

Al、Ar、Rl2r与Tl2r的表达式为:The expressions of A l , A r , R l2r and T l2r are:

Figure GDA0003402372690000051
Figure GDA0003402372690000051

Figure GDA0003402372690000052
Figure GDA0003402372690000052

进一步的,所述步骤3捕捉靶标运动即实现圆靶标跟踪识别的具体过程为:Further, the specific process of capturing the target movement in the step 3, that is, realizing the tracking and identification of the circular target, is:

步骤3.1:在左相机采集的第一张图像中框选测点区域,使用Niblack算法将图像二值化;Step 3.1: In the first image captured by the left camera, frame the measurement point area, and use the Niblack algorithm to binarize the image;

步骤3.2:计算二值化图像中的封闭区域的等效离心率,并与设定的阈值进行对比;若封闭区域与一个椭圆有相同的面积距,则该椭圆的离心率为该封闭区域椭圆的等效离心率。如果封闭区域的等效离心率小于设定的阈值,则将此区域剔除;如果封闭区域的等效离心率大于设定的阈值,则认为该封闭区域为圆靶标图像;Step 3.2: Calculate the equivalent eccentricity of the closed area in the binarized image and compare it with the set threshold; if the closed area and an ellipse have the same area distance, the eccentricity of the ellipse is the ellipse of the closed area. the equivalent eccentricity. If the equivalent eccentricity of the closed area is less than the set threshold, the area will be removed; if the equivalent eccentricity of the closed area is greater than the set threshold, the closed area will be considered as a round target image;

步骤3.3:采用Canny-Zernike算法提取圆形靶标的亚像素边缘,以提取到的亚像素边缘拟合得到椭圆方程,由椭圆方程计算得到椭圆中心坐标,以椭圆中心坐标作为左侧相机测点的初始坐标;Step 3.3: Use the Canny-Zernike algorithm to extract the sub-pixel edge of the circular target, fit the extracted sub-pixel edge to obtain the ellipse equation, and calculate the ellipse center coordinate from the ellipse equation, and use the ellipse center coordinate as the left camera measuring point. initial coordinates;

步骤3.4:输入预估测点的位移,得到各测点的搜索子区;在搜索子区内使用IC-GN算法完成左相机采集图像的时序匹配;Step 3.4: Input the displacement of the estimated measuring point to obtain the search sub-area of each measuring point; use the IC-GN algorithm in the search sub-area to complete the timing matching of the images collected by the left camera;

步骤3.5:使用与步骤3.1至步骤3.4同样的方法,完成右侧相机采集图像的时序匹配,并根据测点编号,完成左侧相机与右侧相机采集图像的匹配;由此得到左侧相机与右侧相机图像匹配像点的坐标pl、prStep 3.5: Use the same method as Step 3.1 to Step 3.4 to complete the timing matching of the images captured by the right camera, and complete the matching of the images captured by the left camera and the right camera according to the measurement point number; The right camera image matches the coordinates p l , pr of the image point.

进一步的,所述步骤3.5的具体过程为,由采集左侧相机的内参数矩阵Al,右侧相机的内参数矩阵Ar,左侧相机转换到右侧相机的旋转矩阵Rl2r与平移向量Tl2r计算得到相机的基本矩阵F,Further, the specific process of step 3.5 is, by collecting the internal parameter matrix A l of the left camera, the internal parameter matrix A r of the right camera, the left camera is converted to the rotation matrix R l2r and translation vector of the right camera. T l2r calculates the fundamental matrix F of the camera,

F=Ar -T[Tl2r]×Rl2rAl -1 F=A r -T [T l2r ] × R l2r A l -1

由基本矩阵F与匹配像点的坐标pl、pr求出对应极线的方程ll、lrFrom the fundamental matrix F and the coordinates p l and p r of the matched image points, the equations l l and l r of the corresponding polar lines are obtained:

ll=Fpr l l = Fpr

lr=Fpl l r = Fp l

由极线的方程ll、lr与像点的坐标pl、pr求出像点到极线的距离dl与dr;过像点作极线的垂线,由像点指向极线的方向向量为Dl,Dr,优化后像点的坐标p′l、p′r为:Calculate the distances d l and d r from the image point to the epipolar line from the equations l l and l r of the epipolar line and the coordinates p l and pr of the image point; The direction vectors of the line are D l , D r , and the coordinates p′ l and p′ r of the image point after optimization are:

Figure GDA0003402372690000061
Figure GDA0003402372690000061

进一步的,所述步骤5结构六自由度测量方法的具体过程为:首先计算优化后像点的归一化坐标Xnl=[xnl,ynl]T,Xnr=[xnr,ynr]TFurther, the specific process of the six-degree-of-freedom measurement method of the structure in step 5 is: firstly calculate the normalized coordinates of the optimized image point X nl =[x nl ,y nl ] T ,X nr =[x nr ,y nr ] T :

Figure GDA0003402372690000062
Figure GDA0003402372690000062

进而求出测点的在左相机参考系中的三维坐标X=[xw,yw,zw]TThen, the three-dimensional coordinates X=[x w , y w , z w ] T of the measuring point in the left camera reference system are obtained:

Figure GDA0003402372690000063
Figure GDA0003402372690000063

为了将坐标系转换至结构参考面,得到最终的测点的三维坐标P:In order to convert the coordinate system to the structural reference plane, the 3D coordinates P of the final survey point are obtained:

P=R-1(X-T)P=R -1 (XT)

得到各测点的三维坐标后,选择三个测点,命名为测点1、测点2,测点3,得到三个测点初始三维坐标为Pi(i=1,2,3),运动过程中某一时刻的三维坐标为Pi′(i=1,2,3);以测点2为旋转中心,由这三个测点计算结构的三维位移与三维转角。三维位移与三维转角使用旋转矩阵r和平移矢量t表示;After obtaining the three-dimensional coordinates of each measuring point, select three measuring points and name them as measuring point 1, measuring point 2, and measuring point 3, and obtain the initial three-dimensional coordinates of the three measuring points as Pi ( i =1,2,3), The three-dimensional coordinates at a certain moment in the movement process are P i ' (i=1, 2, 3); with measuring point 2 as the rotation center, the three-dimensional displacement and three-dimensional rotation angle of the structure are calculated from these three measuring points. The three-dimensional displacement and three-dimensional rotation angle are represented by the rotation matrix r and the translation vector t;

由此可得:Therefore:

t=P′2-P2 t=P' 2 -P 2

P′i=r·Pi+tP′ i =r·P i +t

进而得到:and get:

[P′1-t,P′2-t,P′3-t]=r·[P1,P2,P3][P' 1 -t, P' 2 -t, P' 3 -t]=r·[P 1 , P 2 , P 3 ]

由上式可以解出旋转矩阵r,将旋转矩阵r分解成横摇α、纵摇β与艏摇γ,由此得到结构的六自由度测量结果。From the above formula, the rotation matrix r can be solved, and the rotation matrix r can be decomposed into roll α, pitch β and bow γ, thereby obtaining the six-degree-of-freedom measurement result of the structure.

系统采用的设备为CCD相机,型号为AVTGX1050,使用GigEVision接口协议。为了适用于不同的测量范围,采用M3Z1228C-MP系列变焦镜头与LM5JCM系列定焦镜头。相机图像数据通过RJ-45网线接口连接千兆网卡,千兆网卡型号为PCIe-PoE74。PCIe-PoE74采集卡生产商为凌华科技有限公司,可以同时接上4根千兆网线,满足两台相机高速采集时数据的带宽。计算机型号为戴尔OptiPlex7070商用台式机,计算机CPU主频为3GHz,内存大小为32G。图像采集卡通过计算机主板上的PCIe接口与计算机相连接。The equipment used in the system is a CCD camera, model AVTGX1050, using the GigEVision interface protocol. In order to apply to different measurement ranges, M3Z1228C-MP series zoom lens and LM5JCM series fixed focus lens are used. The camera image data is connected to a gigabit network card through an RJ-45 network cable interface, and the model of the gigabit network card is PCIe-PoE74. The manufacturer of the PCIe-PoE74 capture card is ADLINK Technology Co., Ltd. It can be connected to 4 Gigabit Ethernet cables at the same time to meet the data bandwidth of two cameras during high-speed capture. The computer model is a Dell OptiPlex7070 commercial desktop computer, the computer CPU is clocked at 3GHz, and the memory size is 32G. The frame grabber is connected to the computer through the PCIe interface on the computer motherboard.

结构六自由度运动视觉测量软件界面如图2所示。使用测量软件控制相机完成六自由度运动测量。结构六自由度运动视觉测量软件能实现图像的采集、图像实时显示与保存、结构六自由度运动分析与计算结果输出等功能。The interface of the six-degree-of-freedom motion vision measurement software is shown in Figure 2. Use the measurement software to control the camera to complete the six-degree-of-freedom motion measurement. The six-degree-of-freedom structural motion visual measurement software can realize the functions of image acquisition, real-time image display and storage, structural six-degree-of-freedom motion analysis and calculation result output.

结构六自由度运动视觉测量流程如图3所示。根据测量需要,结构六自由度运动视觉测量软件主要分为四个模块,分别是图像采集、相机标定、靶标跟踪、结果输出。每个模块下均有相应的操作按钮和输入框,用户根据实际条件输入相应参数,便可得到六自由运动测量结果。Figure 3 shows the process of visual measurement of structural six-degree-of-freedom motion. According to the measurement needs, the structural six-degree-of-freedom motion vision measurement software is mainly divided into four modules, namely image acquisition, camera calibration, target tracking, and result output. There are corresponding operation buttons and input boxes under each module. Users can input corresponding parameters according to actual conditions, and then the measurement results of six free motions can be obtained.

Claims (4)

1. A measuring method of a structure six-degree-of-freedom motion measuring system based on binocular vision is characterized in that the measuring system comprises two cameras and a computer, the two cameras are connected with the computer through a network cable, the computer is connected with a synchronous trigger, and the synchronous trigger is controlled by the computer to synchronously send acquisition signals to the cameras;
the two cameras are arranged on a tripod, so that the picture centers of the two cameras are aligned to the structure to be detected;
the configuration method of the measuring system comprises the following steps:
step 1: pasting a round target on the surface of the structure, and arranging at least three measuring points by taking the center of the round target as the measuring points; two cameras are arranged in front of the measuring point, the two cameras are respectively arranged in the left front of the measuring point and the right front of the measuring point, and the measuring point is in the visual fields of the left camera and the right camera;
step 2: calibrating the vision measuring system by using a checkerboard calibration method; arranging the chessboard pattern calibration plate in a view field, and selecting a plane where the chessboard pattern calibration plate is positioned as a structure reference surface when the calibration plate is tightly attached to the structure surface;
and step 3: capturing target motion with two cameras; collecting a moving image, completing the identification of the circle target in the first image, tracking and capturing the motion of the circle target in the motion process, and obtaining pixel coordinates of a measuring point on the left camera image and the right camera image;
and 4, step 4: carrying out image point coordinate optimization on the target motion captured in the step 3; calculating corresponding polar lines of matched image points of the left camera and the right camera according to the calibration result, and optimizing the coordinates of the image points by a polar line equation to obtain optimized coordinates of the image points;
the specific process of the step 4 is that an internal parameter matrix A of the left camera is acquiredlInner parameter matrix A of the right-hand camerarLeft-hand camera to right-hand camera rotation matrix Rl2rAnd a translation vector Tl2rCalculating to obtain a basic matrix F, F ═ A of the camerar -T[Tl2r]×Rl2rAl -1
From the basic matrix F and the coordinates p of the matching image pointsl、prSolving the equation l corresponding to the polar linel、lr
ll=Fpr
lr=Fpl
Equation l from polar linel、lrCoordinates p with the image pointl、prDetermining the distance d from the image point to the epipolar linelAnd dr(ii) a The left camera and the right camera cross the image point to be taken as the vertical line of the polar line, and the direction vector pointing to the polar line from the image point is Dl,DrCoordinates p 'of post-optimization image points'l、p′rComprises the following steps:
Figure FDA0003656402820000011
and 5: completing the six-degree-of-freedom measurement of the structure; and calculating the three-dimensional displacement of the measuring points by the optimized image point coordinates, and selecting three measuring points to calculate the three-dimensional corner of the structure to finish the six-degree-of-freedom measurement of the structure.
2. The measurement method according to claim 1, wherein step 2 is to calculate an intrinsic parameter matrix A of a left camera of the vision measurement system from the acquired calibration imagelInner parameter matrix A of the right-hand camerar(ii) a Left camera reference frame rotationRotation matrix R transformed to the reference frame of the right cameral2rAnd a translation vector Tl2r(ii) a Converting the structural reference surface into a rotation matrix R and a translation vector T of a left camera reference system;
Al、Ar、Rl2rand Tl2rThe expression of (c) is:
Figure FDA0003656402820000021
Figure FDA0003656402820000022
wherein,
Figure FDA0003656402820000023
respectively equivalent focal lengths of the left camera on the u and v axes of an image plane,
Figure FDA0003656402820000024
the equivalent focal lengths of the right camera on the u and v axes respectively, (u)l,vl) And (u)r,vr) The coordinates of the left camera principal point and the right camera principal point in the image plane, ri(i 1,2.., 9) is a rotation matrix parameter from the left camera reference frame to the right camera reference frame, tx,ty,tzThe parameters of the translation matrix from the left camera reference frame to the right camera reference frame are respectively.
3. The measurement method according to claim 1, wherein the step 3 of capturing the target motion comprises the following specific processes:
step 3.1: selecting a point area in a first image collected by a left camera, and binarizing the image by using a Niblack algorithm;
step 3.2: calculating the equivalent eccentricity of a closed area in the binary image, and comparing the equivalent eccentricity with a set threshold value;
step 3.3: extracting sub-pixel edges of the circular target by adopting a Canny-Zernike algorithm, fitting the extracted sub-pixel edges to obtain an elliptic equation, calculating by using the elliptic equation to obtain an elliptic center coordinate, and taking the elliptic center coordinate as an initial coordinate of a left camera measuring point;
step 3.4: inputting the displacement of the predicted measuring points to obtain a search subarea of each measuring point;
step 3.5: completing the time sequence matching of the images acquired by the right camera by using the same method as the steps from 3.1 to 3.4, and completing the matching of the images acquired by the left camera and the right camera according to the measuring point numbers; thereby obtaining the coordinates p of the matched image points of the left camera image and the right camera imagel、pr
4. The measurement method according to claim 1, wherein the step 5 structure six-degree-of-freedom measurement method comprises the following specific processes: firstly, calculating the normalized coordinate X of the optimized image pointnl=[xnl,ynl]T,Xnr=[xnr,ynr]T
Figure FDA0003656402820000025
Then, three-dimensional coordinates X ═ X [ X ] of the measuring points in the reference system of the left camera is obtainedw,yw,zw]T
Figure FDA0003656402820000031
To convert the coordinate system to the structural reference surface, the three-dimensional coordinates P of the final measurement point are obtained:
P=R-1(X-T)
after the three-dimensional coordinates of each measuring point are obtained, three measuring points are selected and named as measuring point 1, measuring point 2 and measuring point 3, and the initial three-dimensional coordinates of the three measuring points are obtained and are Pi(i is 1,2,3), and the three-dimensional coordinate at a certain moment in the motion process is Pi' (i ═ 1,2, 3); to be provided withMeasuring point 2 is a rotation center, three-dimensional displacement and three-dimensional rotation angle of the structure are calculated by the three measuring points, and the three-dimensional displacement and the three-dimensional rotation angle are expressed by using a rotation matrix r and a translation vector t;
this gives:
t=P′2-P2
P′i=r·Pi+t
further obtaining:
[P′1-t,P′2-t,P′3-t]=r·[P1,P2,P3]
the rotation matrix r can be solved by the above formula, and the rotation matrix r is decomposed into rolling alpha, pitching beta and yawing gamma, thereby obtaining the six-degree-of-freedom measurement result of the structure.
CN202010837812.7A 2020-08-19 2020-08-19 A measurement method of a structural six-degree-of-freedom motion measurement system based on binocular vision Active CN112033286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010837812.7A CN112033286B (en) 2020-08-19 2020-08-19 A measurement method of a structural six-degree-of-freedom motion measurement system based on binocular vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010837812.7A CN112033286B (en) 2020-08-19 2020-08-19 A measurement method of a structural six-degree-of-freedom motion measurement system based on binocular vision

Publications (2)

Publication Number Publication Date
CN112033286A CN112033286A (en) 2020-12-04
CN112033286B true CN112033286B (en) 2022-07-05

Family

ID=73576934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010837812.7A Active CN112033286B (en) 2020-08-19 2020-08-19 A measurement method of a structural six-degree-of-freedom motion measurement system based on binocular vision

Country Status (1)

Country Link
CN (1) CN112033286B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114608465B (en) * 2022-03-01 2024-04-12 浙江工业大学 Real-time measurement method of spatial displacement of multiple measuring points in civil engineering structures based on computer vision
CN115790387A (en) * 2022-11-03 2023-03-14 东南大学 Method and system for synchronous real-time monitoring of bridge displacement and rotation angle based on online camera

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5546808A (en) * 1994-09-06 1996-08-20 Harris Instrument Corporation Apparatus and method for binocular measurement system
CN105043250B (en) * 2015-05-29 2017-08-11 南京邮电大学 A kind of double-visual angle data alignment method based on 1 common indicium points
CN106017321A (en) * 2016-06-16 2016-10-12 沈阳飞机工业(集团)有限公司 Binocular vision-based large-dimensional geometric quantity measurement method
CN108613628B (en) * 2018-05-16 2020-05-15 国网湖北省电力有限公司电力科学研究院 Overhead transmission line sag measurement method based on binocular vision
CN109360246B (en) * 2018-11-02 2021-10-29 哈尔滨工业大学 Stereo vision 3D displacement measurement method based on synchronous sub-region search
CN111243033B (en) * 2020-01-10 2022-09-20 大连理工大学 Method for optimizing external parameters of binocular camera

Also Published As

Publication number Publication date
CN112033286A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN104463108B (en) A kind of monocular real time target recognitio and pose measuring method
CN106969723B (en) High speed dynamic object key point method for three-dimensional measurement based on low speed camera array
CN108492017B (en) Product quality information transmission method based on augmented reality
CN103839277A (en) Mobile augmented reality registration method of outdoor wide-range natural scene
CN110992487B (en) Fast 3D map reconstruction device and reconstruction method for handheld aircraft fuel tank
CN109758756B (en) Gymnastics video analysis method and system based on 3D camera
CN111260720A (en) A target height determination system based on deep learning method
CN106500625B (en) A kind of telecentricity stereo vision measurement method
CN112033286B (en) A measurement method of a structural six-degree-of-freedom motion measurement system based on binocular vision
CN116245921A (en) A fine registration method for 3D measurement point clouds with low overlap rate and weak features by introducing plane constraints
Ma et al. Binocular vision object positioning method for robots based on coarse-fine stereo matching
CN117893610B (en) Aviation assembly robot gesture measurement system based on zoom monocular vision
CN103903279B (en) Parallel tracking system and method based on bionic binocular vision airborne platform
CN118297936A (en) Workpiece defect detection method and system based on three-dimensional reconstruction and image processing computer
Fan et al. Human-m3: A multi-view multi-modal dataset for 3d human pose estimation in outdoor scenes
CN112652020A (en) Visual SLAM method based on AdaLAM algorithm
CN111832542A (en) Trinocular visual recognition and positioning method and device
CN105719290A (en) Binocular stereo depth matching method adopting time domain visual sensor
CN110477921A (en) The height measurement method returned based on skeleton broken line Ridge
CN118258377A (en) A bridge rotation monitoring method and system based on three-dimensional orthogonal cursor
CN116989689A (en) Full-field three-dimensional strain measurement method of unmarked structure integrating neural network and binocular vision
CN212256332U (en) Three-eye visual identification and positioning device
CN110189267B (en) A real-time positioning device and system based on machine vision
CN114581503A (en) Coal mine underground environment modeling method and system
CN113421286A (en) Motion capture system and method

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