[go: up one dir, main page]

CN118258377A - A bridge rotation monitoring method and system based on three-dimensional orthogonal cursor - Google Patents

A bridge rotation monitoring method and system based on three-dimensional orthogonal cursor Download PDF

Info

Publication number
CN118258377A
CN118258377A CN202410365220.8A CN202410365220A CN118258377A CN 118258377 A CN118258377 A CN 118258377A CN 202410365220 A CN202410365220 A CN 202410365220A CN 118258377 A CN118258377 A CN 118258377A
Authority
CN
China
Prior art keywords
bridge
coordinate system
rotation
cursor
posture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410365220.8A
Other languages
Chinese (zh)
Inventor
柳蓓
王宁波
常柱刚
陈志刚
左勇健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Planning & Design Institute Co ltd
Central South University
Original Assignee
Changsha Planning & Design Institute Co ltd
Central South University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Planning & Design Institute Co ltd, Central South University filed Critical Changsha Planning & Design Institute Co ltd
Priority to CN202410365220.8A priority Critical patent/CN118258377A/en
Publication of CN118258377A publication Critical patent/CN118258377A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • 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/002Measuring arrangements characterised by the use of optical techniques for measuring two or more coordinates
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/06Topological mapping of higher dimensional structures onto lower dimensional surfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Automation & Control Theory (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

本发明公开一种基于三维正交光标的桥梁转体监测方法及系统,该方法包括:布设正交三维光标与图像采集装置,建立坐标系;在转体施工前获取三维正交光标的初始姿态图像,提取光束投影的成像信息,并确定初始姿态时各坐标系之间的变换关系;建立光束与光束投影之间的映射关系,采用变分原理和数值迭代法求解光标初始姿态;桥梁转体过程中连续采集桥梁不同时刻的姿态图像,求解不同时刻桥梁转体姿态;计算桥梁从初始姿态变换至任意时刻姿态的相对旋转矩阵,从中分离得到相对旋转欧拉角。该方法采用三维正交光标作为视觉输入,能够准确计算转体桥梁从初始姿态至任意姿态的相对转角,实现对桥梁转体全过程的实时监测,准确、高效、低成本、安全、无接触。

The present invention discloses a bridge rotation monitoring method and system based on a three-dimensional orthogonal cursor, the method comprising: arranging an orthogonal three-dimensional cursor and an image acquisition device to establish a coordinate system; obtaining an initial posture image of the three-dimensional orthogonal cursor before rotation construction, extracting imaging information of light beam projection, and determining the transformation relationship between various coordinate systems at the initial posture; establishing a mapping relationship between the light beam and the light beam projection, and using the variational principle and numerical iteration method to solve the initial posture of the cursor; continuously collecting posture images of the bridge at different times during the bridge rotation process, and solving the rotation posture of the bridge at different times; calculating the relative rotation matrix of the bridge from the initial posture to the posture at any time, and separating the relative rotation Euler angle therefrom. The method uses a three-dimensional orthogonal cursor as a visual input, can accurately calculate the relative rotation angle of the rotating bridge from the initial posture to any posture, and realizes real-time monitoring of the entire process of bridge rotation, which is accurate, efficient, low-cost, safe, and contactless.

Description

一种基于三维正交光标的桥梁转体监测方法及系统A bridge rotation monitoring method and system based on three-dimensional orthogonal cursor

技术领域Technical Field

本发明涉及一种基于三维正交光标的桥梁转体监测方法及系统,属于桥梁转体施工监测技术领域。The invention relates to a bridge rotation monitoring method and system based on a three-dimensional orthogonal cursor, belonging to the technical field of bridge rotation construction monitoring.

背景技术Background technique

随着我国基础建设的不断发展,立体交叉的线路数量大量增加,其伴随而来的跨线桥施工如何避免对既有线路造成干扰的问题成为工程界研究的热点。桥梁转体施工法作为一种无干扰的跨线桥施工方法,近年来逐渐受到重视并得以广泛应用。该方法已成功应用于全世界数百座桥梁,包括连续梁桥、拱桥、斜拉桥等。转体施工法的采用显著简化并加速了桥梁的施工,具有较高的经济性与时效性。With the continuous development of my country's infrastructure, the number of grade-separated lines has increased significantly. The problem of how to avoid interference with existing lines during the construction of overpasses has become a hot topic in the engineering community. As a non-interference overpass construction method, the bridge rotation construction method has gradually gained attention and been widely used in recent years. This method has been successfully applied to hundreds of bridges around the world, including continuous beam bridges, arch bridges, cable-stayed bridges, etc. The adoption of the rotation construction method significantly simplifies and accelerates the construction of bridges, and has high economic efficiency and timeliness.

一方面,在桥梁的转动牵引过程中,若桥梁转体超过设计角度,则只能采用千斤顶顶推回位,因此对精准转体提出了较高的要求。另一方面,由于固定在上部结构的撑脚与滑道之间存在空隙,转体过程中梁体在绕竖轴转动的同时,还存在绕结构纵、横向的转动,导致转体结构的空间位姿在一定范围内变动。因此,要确保“转得准”,实现转体桥梁跨越障碍、穿越指定空间等精准动作,对桥梁转体施工过程进行监测成为关键研究问题。On the one hand, during the rotation and traction process of the bridge, if the bridge rotation exceeds the designed angle, it can only be pushed back by a jack, which puts forward high requirements for accurate rotation. On the other hand, due to the gap between the support legs fixed on the upper structure and the slideway, the beam body rotates around the vertical axis while rotating around the longitudinal and lateral directions of the structure during the rotation process, causing the spatial posture of the rotating structure to change within a certain range. Therefore, in order to ensure "accurate rotation" and realize precise actions such as the rotating bridge crossing obstacles and passing through designated spaces, monitoring the bridge rotation construction process has become a key research issue.

目前主要使用传统接触式监测手段进行转体桥梁的转动监测,如转盘指针法、传感器技术等方法。转盘指针法的应用最为广泛,通过利用“指针”对位实现对桥梁绕竖轴的转动监测,具有提示转体进程并在一定程度上防止转体过度的作用,但存在人力成本高、实时性差、精度不足的问题。而姿态传感器可以实现自动监控,精度较高,但其灵敏度较高,容易受到磁场干扰及环境变化的影响,同时成本较大。At present, the rotation monitoring of rotating bridges is mainly carried out by traditional contact monitoring methods, such as the turntable pointer method and sensor technology. The turntable pointer method is the most widely used. It uses the "pointer" to align the bridge to monitor the rotation around the vertical axis. It has the function of prompting the rotation process and preventing excessive rotation to a certain extent, but it has the problems of high labor cost, poor real-time performance and insufficient accuracy. The attitude sensor can realize automatic monitoring with high accuracy, but its sensitivity is high and it is easily affected by magnetic field interference and environmental changes. At the same time, the cost is relatively high.

与传统接触式监测方法相比,非接触式转体监测方法具有全方位测量、预测精度高等优点,如卫星定位法、全站仪法等方法。卫星定位系统(GPS)可实现全自动测量,但其设备使用条件要求较高,且通信信号受外界干扰较大、稳定性差,不利于精准转体的实施。全站仪法可利用全站仪监测转体桥梁控制点坐标,由局部坐标变化导出整体结构变化特征,间接获取转体桥梁的空间位姿,但现场测量受梁体转动、光线、人员安全等因素的影响较大,难以高效、实时地获取转体桥梁空间位姿。Compared with traditional contact monitoring methods, non-contact rotation monitoring methods have the advantages of all-round measurement and high prediction accuracy, such as satellite positioning method, total station method and other methods. The satellite positioning system (GPS) can realize fully automatic measurement, but its equipment use conditions require high standards, and the communication signal is greatly interfered by the outside world and has poor stability, which is not conducive to the implementation of accurate rotation. The total station method can use the total station to monitor the coordinates of the control points of the rotating bridge, derive the overall structural change characteristics from the local coordinate changes, and indirectly obtain the spatial position of the rotating bridge. However, on-site measurements are greatly affected by factors such as beam rotation, light, and personnel safety, making it difficult to obtain the spatial position of the rotating bridge efficiently and in real time.

总体而言,现有桥梁转体施工监测方法存在着实时性不足、精准度不高等缺点,且监测全过程需要人为操作测量,因此转体监测方法成为了桥梁转体施工的研究重点之一。In general, the existing bridge rotation construction monitoring methods have shortcomings such as lack of real-time performance and low accuracy, and the entire monitoring process requires manual operation and measurement. Therefore, the rotation monitoring method has become one of the research focuses of bridge rotation construction.

计算机视觉监测方法是目前较为热门的一种新型高技术监测方法,根据使用相机数量分为单目视觉和多目视觉,其中单目视觉由于结构简单、价格低廉、便于布设得到广泛应用。但由于单目视觉成像会丢失深度信息,通常需要结合其他传感器或使用复杂的算法如机器学习等来实现精确获取运动物体的空间位姿。而机器学习等手段需要大量训练数据实现姿态估计,高质量数据需求量大、计算成本复杂且存在误差累积。针对桥梁转体问题,在转动过程中,由于转体桥梁存在中心限位,梁体仅绕自身局部坐标系进行相对旋转,而不发生平动。因此可将桥梁空间位姿的旋转与平移分离,具体研究与桥梁转体相关的空间姿态问题。因此如何将单目视觉应用于桥梁转体领域,实现转体全过程实时监测是本领域亟待解决的问题之一。Computer vision monitoring method is a new high-tech monitoring method that is currently popular. It is divided into monocular vision and multi-camera vision according to the number of cameras used. Monocular vision is widely used due to its simple structure, low price and easy deployment. However, since monocular vision imaging will lose depth information, it is usually necessary to combine other sensors or use complex algorithms such as machine learning to accurately obtain the spatial position and posture of moving objects. Machine learning and other methods require a large amount of training data to achieve posture estimation, and the demand for high-quality data is large, the calculation cost is complex, and there is error accumulation. For the problem of bridge rotation, during the rotation process, due to the central limit of the rotating bridge, the beam body only rotates relatively around its own local coordinate system without translation. Therefore, the rotation and translation of the spatial position of the bridge can be separated, and the spatial posture problem related to the bridge rotation can be specifically studied. Therefore, how to apply monocular vision to the field of bridge rotation and realize real-time monitoring of the entire rotation process is one of the problems to be solved in this field.

发明内容Summary of the invention

本发明的目的在于,解决现有桥梁转体施工监测方法存在的实时性不足、精准度不高等缺点,以及监测全过程需要人为点动操作测量的问题,提出一种基于三维正交光标的桥梁转体监测方法及系统。The purpose of the present invention is to solve the shortcomings of existing bridge rotation construction monitoring methods such as insufficient real-time performance and low accuracy, as well as the problem that the entire monitoring process requires manual jog operation and measurement, and to propose a bridge rotation monitoring method and system based on a three-dimensional orthogonal cursor.

本发明旨在基于三维正交光标获取桥梁转体图像信息来反算桥梁转体的空间姿态,进而计算桥梁转体过程中的相对旋转欧拉角,实现对转体桥梁的无接触、高精度、实时转动监测。该技术在转体桥梁结构转动施工监测技术领域具有重要的工程应用潜力。The present invention aims to obtain bridge rotation image information based on a three-dimensional orthogonal cursor to inversely calculate the spatial posture of the bridge rotation, and then calculate the relative rotation Euler angle during the bridge rotation process, so as to achieve non-contact, high-precision, and real-time rotation monitoring of the rotating bridge. This technology has important engineering application potential in the field of rotation construction monitoring technology for rotating bridge structures.

为了解决上述技术问题,本发明采用如下技术方案:In order to solve the above technical problems, the present invention adopts the following technical solutions:

第一方面,一种基于三维正交光标的桥梁转体监测方法,包括如下步骤:In a first aspect, a bridge rotation monitoring method based on a three-dimensional orthogonal cursor comprises the following steps:

S1,在转体桥梁上布设至少一个能发射光束的三维正交光标,在桥梁转体范围外布设图像采集装置;分别在转体桥梁、图像采集装置上建立桥梁局部坐标系、相机坐标系,同时以三维正交光标光束交点为原点,三条光束方向为坐标轴建立光标坐标系;以桥梁上转盘的球铰中心为原点,桥梁的纵向、横向和竖直方向分别取为XB轴、YB轴和ZB轴建立桥梁局部坐标系,以图像采集装置光心为原点,分别取图像采集装置水平方向向右,竖直方向向下,光轴方向为XC轴、YC轴和ZC轴建立相机坐标系;S1, at least one three-dimensional orthogonal cursor capable of emitting light beams is arranged on the rotating bridge, and an image acquisition device is arranged outside the rotating range of the bridge; a local coordinate system of the bridge and a camera coordinate system are established on the rotating bridge and the image acquisition device respectively, and a cursor coordinate system is established with the intersection of the three-dimensional orthogonal cursor light beams as the origin and the directions of the three light beams as the coordinate axes; a local coordinate system of the bridge is established with the center of the spherical joint of the turntable on the bridge as the origin, and the longitudinal, transverse and vertical directions of the bridge as the X B axis, Y B axis and Z B axis respectively; a camera coordinate system is established with the optical center of the image acquisition device as the origin, and the horizontal direction of the image acquisition device is taken to the right, the vertical direction is taken to the downward, and the optical axis directions are taken to the X C axis, Y C axis and Z C axis respectively;

S2,在桥梁转体施工前,图像采集装置拍摄并采集包含三维正交光标光束射线的图像作为初始姿态图像,根据初始姿态图像确定初始姿态时三维正交光标光束投影在成像平面的方向角和交点坐标;S2, before the bridge rotation construction, the image acquisition device captures and acquires an image containing three-dimensional orthogonal cursor beam rays as an initial posture image, and determines the direction angle and intersection coordinates of the three-dimensional orthogonal cursor beam projected on the imaging plane at the initial posture according to the initial posture image;

S3,采用刚体空间变换原理建立光标坐标系与相机坐标系的变换关系,根据成像原理建立三维正交光标光束与光束投影的映射关系,根据所述映射关系、变换关系以及S2所得初始姿态时光束投影的方向角和交点坐标,采用变分原理和数值迭代法求解得到三维正交光标的初始姿态,根据三维正交光标初始姿态以及光标坐标系与桥梁局部坐标系的转换关系,得到初始姿态时相机坐标系与桥梁局部坐标系的变换关系,进而确定桥梁转体的初始姿态;S3, using the rigid body space transformation principle to establish the transformation relationship between the cursor coordinate system and the camera coordinate system, and establishing the mapping relationship between the three-dimensional orthogonal cursor beam and the beam projection according to the imaging principle. According to the mapping relationship, the transformation relationship and the direction angle and intersection coordinates of the beam projection at the initial posture obtained in S2, the variational principle and the numerical iteration method are used to solve the initial posture of the three-dimensional orthogonal cursor. According to the initial posture of the three-dimensional orthogonal cursor and the transformation relationship between the cursor coordinate system and the local coordinate system of the bridge, the transformation relationship between the camera coordinate system and the local coordinate system of the bridge at the initial posture is obtained, and then the initial posture of the bridge rotation is determined;

S4,桥梁转体施工过程中,图像采集装置连续采集桥梁转体不同时刻的姿态图像,从所得不同时刻姿态图像中提取不同时刻三维正交光标光束投影在成像平面的方向角和交点坐标,采用变分原理和数值迭代法求解得到三维正交光标不同时刻空间姿态,得到桥梁转体过程中不同时刻相机坐标系与桥梁局部坐标系的变换关系,进而确定桥梁转体不同时刻的空间姿态;S4, during the bridge rotation construction process, the image acquisition device continuously acquires posture images of the bridge rotation at different times, extracts the direction angles and intersection coordinates of the three-dimensional orthogonal cursor beams projected on the imaging plane at different times from the posture images obtained at different times, and uses the variational principle and numerical iteration method to solve the spatial postures of the three-dimensional orthogonal cursor at different times, and obtains the transformation relationship between the camera coordinate system and the local coordinate system of the bridge at different times during the bridge rotation process, thereby determining the spatial postures of the bridge rotation at different times;

S5,根据S3-S4所得桥梁转体初始姿态、转体过程中不同时刻姿态,求得桥梁转体过程中不同时刻姿态与初始姿态的相对旋转矩阵;设定桥梁绕桥梁局部坐标系发生相对旋转的旋转次序,根据旋转次序从所述相对旋转矩阵中提取得到桥梁转体不同时刻的相对旋转欧拉角。S5, based on the initial posture of the bridge rotation obtained in S3-S4 and the postures at different times during the rotation process, obtain the relative rotation matrix of the postures at different times during the bridge rotation process and the initial posture; set the rotation order of the bridge relative rotation around the local coordinate system of the bridge, and extract the relative rotation Euler angles of the bridge rotation at different times from the relative rotation matrix according to the rotation order.

进一步的,步骤S1中,所述三维正交光标按如下布设:Furthermore, in step S1, the three-dimensional orthogonal cursor is arranged as follows:

三维正交光标由三个激光发射器相互垂直连接组成,光束起点汇交于一点,每个激光发射器发射光束射线形成三条光轴;所述三个激光发射器能分别发射不同颜色的激光,优选红、绿、蓝三种颜色;每个激光发射器的发射距离优选大于等于5m,使光束颜色突出且便于计算机视觉观测捕捉;三维正交光标优选安装在桥墩或者上转盘上。The three-dimensional orthogonal cursor is composed of three laser emitters connected vertically to each other, with the starting points of the light beams converging at one point. Each laser emitter emits a light beam to form three optical axes. The three laser emitters can respectively emit lasers of different colors, preferably red, green and blue. The emission distance of each laser emitter is preferably greater than or equal to 5m, so that the color of the light beam is prominent and easy to capture by computer vision observation. The three-dimensional orthogonal cursor is preferably installed on a bridge pier or an upper turntable.

进一步的,步骤S1中,所述图像采集装置按下述方法布设:Furthermore, in step S1, the image acquisition device is arranged as follows:

图像采集装置的布设位置与三维正交光标的布设位置存在高差,使三维正交光标光束在图像采集装置成像平面的投影彼此不会重合;There is a height difference between the layout position of the image acquisition device and the layout position of the three-dimensional orthogonal cursor, so that the projections of the three-dimensional orthogonal cursor light beams on the imaging plane of the image acquisition device do not overlap with each other;

在桥梁转体施工全过程中保持图像采集装置空间位姿不变,同时使三维正交光标保持在图像采集装置的取景范围内。During the whole process of bridge rotation construction, the spatial position of the image acquisition device is kept unchanged, and the three-dimensional orthogonal cursor is kept within the viewing range of the image acquisition device.

进一步的,步骤S2中,根据初始姿态图像(即桥梁转体前),所述初始姿态时正交三维光标光束投影在图像采集装置成像平面的方向角和交点坐标按下述方法得到:Further, in step S2, according to the initial posture image (i.e. before the bridge rotates), the direction angle and intersection coordinates of the orthogonal three-dimensional cursor beam projected on the imaging plane of the image acquisition device in the initial posture are obtained by the following method:

确定三种颜色光束的RGB阈值范围,根据对应的RGB阈值范围从初始姿态图像中提取对应三种颜色光束的像素点;采用随机抽样一致方法(RANSAC算法)按线性函数对提取的三组像素点分别进行迭代拟合,得到对应光束投影拟合直线的若干解析表达式,当三条拟合直线的两两交点坐标的误差小于等于0.1像素时得到光束投影拟合直线满足精度要求的解析表达式,求得光束投影在成像平面的方向角,以拟合直线两两交点坐标的均值作为光束投影的交点坐标。Determine the RGB threshold range of the three color light beams, and extract the pixel points corresponding to the three color light beams from the initial posture image according to the corresponding RGB threshold range; use the random sampling consensus method (RANSAC algorithm) to iteratively fit the three groups of pixel points extracted according to the linear function, and obtain several analytical expressions of the corresponding light beam projection fitting lines. When the error of the coordinates of the intersection points of the three fitting lines is less than or equal to 0.1 pixel, the analytical expression of the light beam projection fitting line that meets the accuracy requirement is obtained, and the direction angle of the light beam projection on the imaging plane is obtained, and the average value of the coordinates of the intersection points of the fitting lines is taken as the intersection coordinates of the light beam projection.

进一步的,步骤S3中,根据刚体空间变换原理,所述光标坐标系与相机坐标系的变换关系按下述方法建立:Furthermore, in step S3, according to the rigid body space transformation principle, the transformation relationship between the cursor coordinate system and the camera coordinate system is established as follows:

假定从相机坐标系变换至光标坐标系的旋转次序为绕X-Y-Z轴,对应的转动欧拉角分别为α、β、γ,对应的旋转矩阵分别为RX、RY、RZ,则总旋转变换矩阵Rc按式(3.1)得到:Assuming that the rotation order from the camera coordinate system to the cursor coordinate system is around the XYZ axis, the corresponding rotation Euler angles are α, β, γ, and the corresponding rotation matrices are RX , RY , and RZ , respectively. Then the total rotation transformation matrix Rc is obtained according to formula (3.1):

式中,α、β、γ分别为相机坐标系绕X、Y、Z轴转动的欧拉角;RX、RY、RZ分别为与旋转角α、β、γ对应的旋转矩阵;Rc为相机坐标系变换至光标坐标系的总旋转变换矩阵;Where α, β, γ are the Euler angles of the camera coordinate system rotating around the X, Y, and Z axes respectively; R X , R Y , and R Z are the rotation matrices corresponding to the rotation angles α, β, and γ respectively; R c is the total rotation transformation matrix from the camera coordinate system to the cursor coordinate system;

根据旋转变换矩阵Rc,相机坐标系与光标坐标系的变换关系按式(3.2)得到:According to the rotation transformation matrix R c , the transformation relationship between the camera coordinate system and the cursor coordinate system is obtained according to formula (3.2):

ηi=RCΕ=[r1i r2i r3i]T (3.2)η iRC Ε=[r 1i r 2i r 3i ] T (3.2)

式中,ηi为任意时刻光标坐标轴方向向量;RC为该时刻相机坐标系变换至光标坐标系的旋转变换矩阵;E为相机坐标系坐标轴单位矩阵,构成该单位矩阵的行向量表示相机坐标系坐标轴的方向向量;r1i、r2i、r3i分别为旋转矩阵RC中第1、2、3行第i列元素。Wherein, ηi is the direction vector of the cursor coordinate axis at any moment; RC is the rotation transformation matrix from the camera coordinate system to the cursor coordinate system at that moment; E is the unit matrix of the camera coordinate system coordinate axis, and the row vectors constituting the unit matrix represent the direction vector of the camera coordinate system coordinate axis; r1i , r2i , r3i are the 1st, 2nd, 3rd row and i-th column elements in the rotation matrix RC , respectively.

进一步的,步骤S3中,根据成像原理,将三维正交光标光束向相机光心即相机坐标系中心进行中心投影,光束与光束投影的映射关系按下述方法得到:Furthermore, in step S3, according to the imaging principle, the three-dimensional orthogonal cursor beam is centrally projected to the optical center of the camera, that is, the center of the camera coordinate system, and the mapping relationship between the beam and the beam projection is obtained by the following method:

将三维正交光标向图像采集装置光心(相机坐标系中心)进行中心投影,假定三维正交光标原点OA在相机坐标系中的坐标为(X0,Y0,Z0),则三维正交光标原点投影至成像平面的图像坐标(x0,y0)按式(3.3)表示为:The three-dimensional orthogonal cursor is centrally projected to the optical center of the image acquisition device (center of the camera coordinate system). Assuming that the coordinates of the three-dimensional orthogonal cursor origin OA in the camera coordinate system are (X 0 , Y 0 , Z 0 ), the image coordinates (x 0 , y 0 ) of the three-dimensional orthogonal cursor origin projected to the imaging plane are expressed as follows according to formula (3.3):

式中,f为相机焦距;Where f is the focal length of the camera;

假定光标坐标系原点OA在相机坐标系下的矢径为t0=(X0,Y0,Z0),t0即为相机外参矩阵中的平移向量,根据平面相交原理,则光标坐标系在成像平面的投影射线li即为由矢径t0与光标坐标轴ηi所确定的空间平面同成像平面的交线,根据空间解析几何原理,矢径t0与光标坐标轴ηi所确定的空间平面的法向量ni按式(3.4)求得:Assume that the radius vector of the origin OA of the cursor coordinate system in the camera coordinate system is t0 = ( X0 , Y0 , Z0 ), t0 is the translation vector in the camera external parameter matrix, and according to the plane intersection principle, the projection ray l i of the cursor coordinate system on the imaging plane is the intersection line of the spatial plane determined by the radius vector t0 and the cursor coordinate axis ηi with the imaging plane. According to the principle of spatial analytic geometry, the normal vector n i of the spatial plane determined by the radius vector t0 and the cursor coordinate axis ηi is obtained according to formula (3.4):

通过求解平面法向量得到矢径t0与光标坐标轴ηi所在空间平面的解析式如式(3.5):By solving the plane normal vector, we can get the analytical expression of the space plane where the radius vector t0 and the cursor coordinate axis ηi are located, as shown in equation (3.5):

ni1x+ni2y+ni3z=0 (3.5)n i1 x+n i2 y+n i3 z=0 (3.5)

式中,ni1、ni2、ni3分别为ηi所在平面的法向量ni在相机坐标系X、Y、Z轴方向上的分量,即向量ni中的第1、2、3个元素。Where n i1 , n i2 , and n i3 are the components of the normal vector ni of the plane where η i is located in the directions of the X, Y, and Z axes of the camera coordinate system, that is, the first, second, and third elements of the vector ni .

根据空间解析几何原理,通过将矢径t0与光标坐标轴ηi所确定空间平面的解析式与成像平面的解析式(即z=f)联立可求解得到成像平面上光束投影li的解析表达式如(3.6):According to the principle of spatial analytic geometry, the analytical expression of the spatial plane determined by the radius vector t0 and the cursor coordinate axis ηi and the analytical expression of the imaging plane (i.e. z = f) can be solved to obtain the analytical expression of the beam projection l i on the imaging plane as shown in (3.6):

式中,(x,y)为成像平面坐标;Where (x, y) is the coordinate of the imaging plane;

根据光束投影li的解析表达式,求解光束投影li的方向角,得到三维正交光标光束与光束投影的映射关系如式(3.7):According to the analytical expression of the beam projection l i , the direction angle of the beam projection l i is solved, and the mapping relationship between the three-dimensional orthogonal cursor beam and the beam projection is obtained as shown in formula (3.7):

θi=atan2(fr2i-y0r3i,fr1i-x0r3i) (3.7)θ i = atan2(fr 2i -y 0 r 3i ,fr 1i -x 0 r 3i ) (3.7)

式中,θi为光束投影li的方向角;atan2(·)为四象限反正切函数。Where θi is the direction angle of the light beam projection li; atan2(·) is the four-quadrant inverse tangent function.

进一步的,步骤S3中,将三维正交光标光束与光束投影的映射关系以及光标坐标系与相机坐标系的变换关系联立方程,根据S2所得初始姿态时光束投影的方向角和交点坐标,采用数值迭代法对联立方程进行求解,得到初始姿态时三维正交光标在相机坐标系下对应的旋转欧拉角α、β、γ,;所述数值迭代法优选牛顿-拉普森数值迭代法;Further, in step S3, the mapping relationship between the three-dimensional orthogonal cursor beam and the beam projection and the transformation relationship between the cursor coordinate system and the camera coordinate system are solved by a numerical iteration method according to the direction angle and intersection coordinates of the beam projection at the initial posture obtained in S2, so as to obtain the rotation Euler angles α, β, γ corresponding to the three-dimensional orthogonal cursor in the camera coordinate system at the initial posture; the numerical iteration method is preferably a Newton-Raphson numerical iteration method;

根据求解的旋转欧拉角α、β、γ,得到初始姿态时相机坐标系与光标坐标系的变换关系如式(3.8):According to the solved rotation Euler angles α, β, γ, the transformation relationship between the camera coordinate system and the cursor coordinate system at the initial posture is obtained as shown in formula (3.8):

式中,Rc0为初始姿态时相机坐标系变换至光标坐标系的旋转矩阵;为初始姿态时光标坐标系坐标轴方向向量,i=1、2、3;E为相机坐标系坐标轴单位矩阵,构成该单位矩阵的行向量表示相机坐标系坐标轴的方向向量。Where R c0 is the rotation matrix from the camera coordinate system to the cursor coordinate system at the initial posture; is the direction vector of the coordinate axis of the cursor coordinate system at the initial posture, i=1, 2, 3; E is the unit matrix of the coordinate axis of the camera coordinate system, and the row vectors constituting the unit matrix represent the direction vector of the coordinate axis of the camera coordinate system.

进一步的,步骤S3中,根据相机坐标系与光标坐标系的变换关系以及光标坐标系与桥梁局部坐标系的转换关系如式(3.9),按式(3.10)得到初始姿态时相机坐标系与桥梁局部坐标系的变换关系,根据该变换关系确定桥梁转体的初始姿态(初始时基于相机坐标系的旋转欧拉角):Further, in step S3, according to the transformation relationship between the camera coordinate system and the cursor coordinate system and the transformation relationship between the cursor coordinate system and the local coordinate system of the bridge as shown in formula (3.9), the transformation relationship between the camera coordinate system and the local coordinate system of the bridge at the initial posture is obtained according to formula (3.10), and the initial posture of the bridge rotation is determined according to the transformation relationship (the initial rotation Euler angle based on the camera coordinate system):

123]T=R0123]T (3.9)123 ] T =R 0123 ] T (3.9)

式中,为桥梁局部坐标系坐标轴方向向量,i=1、2、3;R0为桥梁局部坐标轴变换至光标坐标系的旋转变换矩阵;R0 -1为R0的逆矩阵;η1、η2、η3分别为任意时刻光标坐标轴方向向量;ξ1、ξ2、ξ3分别为任意时刻桥梁局部坐标系坐标轴方向向量;R0 -1Rc0为相机坐标系变换至桥梁局部坐标系的旋转变换矩阵。In the formula, is the direction vector of the coordinate axis of the local coordinate system of the bridge, i=1, 2, 3; R0 is the rotation transformation matrix of the local coordinate axis of the bridge to the cursor coordinate system; R0-1 is the inverse matrix of R0 ; η1 , η2 , η3 are the direction vectors of the cursor coordinate axis at any time; ξ1 , ξ2 , ξ3 are the direction vectors of the coordinate axis of the local coordinate system of the bridge at any time; R0-1Rc0 is the rotation transformation matrix of the camera coordinate system to the local coordinate system of the bridge.

进一步的,步骤S4中,桥梁转体过程中不同时刻相机坐标系与桥梁局部坐标系的变换关系按式(4.1)得到,根据该变换关系确定桥梁转体过程中不同时刻的空间姿态(转体时基于相机坐标系的旋转欧拉角):Furthermore, in step S4, the transformation relationship between the camera coordinate system and the local coordinate system of the bridge at different times during the bridge rotation process is obtained according to formula (4.1), and the spatial posture of the bridge at different times during the bridge rotation process is determined according to the transformation relationship (the rotation Euler angle based on the camera coordinate system during the rotation):

式中,为第k个拍摄时刻时桥梁局部坐标系坐标轴方向向量,i=1、2、3,k=1、2、3...;Rck为第k个拍摄时刻时相机坐标系变换至光标坐标系的旋转矩阵;R0 -1Rck表示第k个拍摄时刻时相机坐标系变换至桥梁局部坐标系的旋转变换矩阵,从该矩阵中可提取第k个拍摄时刻时转体桥梁基于相机坐标系的转体空间姿态(旋转欧拉角)。In the formula, is the direction vector of the coordinate axis of the local coordinate system of the bridge at the kth shooting moment, i=1, 2, 3 , k=1 , 2, 3...; Rck is the rotation matrix of the camera coordinate system transformed to the cursor coordinate system at the kth shooting moment; R0-1Rck represents the rotation transformation matrix of the camera coordinate system transformed to the local coordinate system of the bridge at the kth shooting moment, from which the rotational spatial posture (rotation Euler angle) of the rotating bridge based on the camera coordinate system at the kth shooting moment can be extracted.

进一步的,步骤S5中,根据S3-S4所得桥梁转体的初始姿态、转体过程中不同时刻空间姿态,桥梁转体过程中不同时刻姿态与初始姿态间基于桥梁局部坐标系的相对旋转矩阵按式(5.1)得到:Further, in step S5, according to the initial posture of the bridge rotation obtained in S3-S4 and the spatial posture at different times during the rotation process, the relative rotation matrix between the posture at different times during the bridge rotation process and the initial posture based on the local coordinate system of the bridge is obtained according to formula (5.1):

ΔR0k=R0 -1RckR0Rck -1 (5.1)ΔR 0k =R 0 -1 R ck R 0 R ck -1 (5.1)

式中,Rck为第k个拍摄时刻时相机坐标系变换至光标坐标系的旋转矩阵,k=1、2、3..;ΔR0k为转体桥梁局部坐标系从初始姿态变换到第k个拍摄时刻对应空间姿态的相对旋转矩阵。Where Rck is the rotation matrix of the camera coordinate system transformed to the cursor coordinate system at the kth shooting moment, k = 1, 2, 3, etc.; ΔR0k is the relative rotation matrix of the local coordinate system of the rotating bridge from the initial posture to the spatial posture corresponding to the kth shooting moment.

进一步的,步骤S5中,设定转体桥梁绕桥梁局部坐标系发生相对旋转的旋转次序为绕Z-Y-X轴,当从相机坐标系变换至光标坐标系的旋转次序为绕X-Y-Z轴时,从相对旋转矩阵ΔR0k中提取出相对旋转欧拉角Δα、Δβ、Δγ如式(5.2):Furthermore, in step S5, the rotation order of the swivel bridge relative to the local coordinate system of the bridge is set to be around the ZYX axis. When the rotation order from the camera coordinate system to the cursor coordinate system is around the XYZ axis, the relative rotation Euler angles Δα, Δβ, Δγ are extracted from the relative rotation matrix ΔR 0k as shown in formula (5.2):

式中,Δα、Δβ、Δγ分别为转体桥梁绕桥梁局部坐标系X、Y、Z轴转动的欧拉角;smn(m=1,2,3;n=1,2,3)表示相对旋转矩阵中第m行第n列的元素。Where Δα, Δβ, and Δγ are the Euler angles of the rotating bridge around the X, Y, and Z axes of the local coordinate system of the bridge, respectively; s mn (m=1,2,3; n=1,2,3) represents the element in the mth row and nth column of the relative rotation matrix.

第二方面,一种基于三维正交光标的桥梁转体监测方法的监测系统,包括:In a second aspect, a monitoring system for a bridge rotation monitoring method based on a three-dimensional orthogonal cursor comprises:

光标模块,包括通过底座固定安装在桥梁上的三维正交光标,三维正交光标由三个相互垂直连接且发射不同颜色光束的激光发射器构成;A cursor module includes a three-dimensional orthogonal cursor fixedly installed on the bridge through a base, wherein the three-dimensional orthogonal cursor is composed of three laser transmitters that are vertically connected to each other and emit light beams of different colors;

图像采集模块,利用图像采集装置连续拍摄并采集安装在转体桥梁上的三维正交光标的姿态图像,姿态图像包括初始姿态图像和转体过程中不同时刻姿态图像;An image acquisition module, which uses an image acquisition device to continuously shoot and acquire posture images of a three-dimensional orthogonal cursor installed on the rotating bridge, wherein the posture images include an initial posture image and posture images at different times during the rotation process;

图像处理模块,从图像采集模块拍摄的所有姿态图像中提取得到三维正交光标光束射线对应的方向角和交点坐标;An image processing module extracts the direction angles and intersection coordinates corresponding to the three-dimensional orthogonal cursor beam rays from all the posture images taken by the image acquisition module;

数据处理模块,根据图像处理模块得到的光束投影的方向角和交点坐标,计算得到桥梁转体不同时刻姿态相对于初始姿态的相对旋转欧拉角;The data processing module calculates the relative rotation Euler angles of the bridge rotation posture at different times relative to the initial posture according to the direction angle and intersection coordinates of the light beam projection obtained by the image processing module;

数据显示模块,显示转体桥梁不同时刻姿态的相对旋转欧拉角以及目标旋转欧拉角。The data display module displays the relative rotation Euler angles and target rotation Euler angles of the rotating bridge at different times.

本发明的技术原理为:由于转体桥梁施工的现有监测技术难以准确获取桥梁实时的空间位姿,而考虑到桥梁在转体过程中存在中心限位,仅绕桥梁自身局部坐标系进行旋转,而不发生平动,因此将桥梁的转动与平动分离;但由于桥梁局部坐标系在图像采集装置中难以可视化、监测效果不佳,因此引入三维正交光标,将难以直接观察到的桥梁转动问题转换为可视化三维光标运动,通过对三维正交光标的运动监测来等效替代桥梁转体运动监测,为实现桥梁转体全过程姿态的跟踪监测提供新思路;本发明根据成像原理和空间解析几何原理,建立了三维正交光标光束与光束投影之间的映射关系,根据刚体空间变换原理构建了三维正交光标、桥梁、图像采集装置三者之间的转换关系,根据图像采集装置采集到的三维正交光标在桥梁转体过程不同时刻的姿态图像,最终得到桥梁转体不同时刻姿态相对于初始姿态的相对旋转欧拉角,将相对旋转欧拉角与目标旋转欧拉角比对即可实时调整桥梁转体动作,实现对桥梁转体全过程的实时监测,具有准确、高效、低成本、安全、无接触等优点。The technical principle of the present invention is as follows: since the existing monitoring technology for the construction of a rotating bridge is difficult to accurately obtain the real-time spatial position and posture of the bridge, and considering that the bridge has a center limit during the rotation process, it only rotates around the local coordinate system of the bridge itself without any translation, so the rotation and translation of the bridge are separated; but since the local coordinate system of the bridge is difficult to visualize in the image acquisition device and the monitoring effect is poor, a three-dimensional orthogonal cursor is introduced to convert the bridge rotation problem that is difficult to directly observe into a visualized three-dimensional cursor movement, and the movement monitoring of the three-dimensional orthogonal cursor is equivalently replaced by the monitoring of the bridge rotation movement, providing a new idea for tracking and monitoring the posture of the entire bridge rotation process. ; The present invention establishes a mapping relationship between a three-dimensional orthogonal cursor light beam and a light beam projection based on the imaging principle and the spatial analytical geometry principle, and constructs a conversion relationship between a three-dimensional orthogonal cursor, a bridge, and an image acquisition device based on the rigid body space transformation principle. According to the posture images of the three-dimensional orthogonal cursor at different times during the bridge rotation process acquired by the image acquisition device, the relative rotation Euler angle of the bridge rotation posture at different times relative to the initial posture is finally obtained. By comparing the relative rotation Euler angle with the target rotation Euler angle, the bridge rotation action can be adjusted in real time, thereby realizing real-time monitoring of the entire bridge rotation process, and has the advantages of accuracy, efficiency, low cost, safety, and contactlessness.

与现有技术相比,本发明的技术方案具有以下有益技术效果:Compared with the prior art, the technical solution of the present invention has the following beneficial technical effects:

(1)全局监测:本发明能够实现对转体过程的全过程监测,无须现场接触,不受视野位置限制。(1) Global monitoring: The present invention can realize the whole process monitoring of the rotation process without on-site contact and is not limited by the field of vision position.

(2)高精度:本发明能够精准解算转体桥梁在转动过程中的空间姿态,对于其转体角度以及纵、横向偏转的监测具有高精度性。(2) High precision: The present invention can accurately calculate the spatial posture of the rotating bridge during its rotation process, and has high precision in monitoring its rotation angle and longitudinal and lateral deflection.

(3)实时性:本发明实时识别获取转体图像信息,研发转体桥梁空间姿态监测算法,设计数据预处理、计算分析、参数输出等程序化模块,通过模块集成实现监测数据与结果的高效实时反馈。(3) Real-time: The present invention can identify and acquire rotation image information in real time, develop a rotation bridge spatial posture monitoring algorithm, design programmed modules such as data preprocessing, calculation analysis, and parameter output, and realize efficient real-time feedback of monitoring data and results through module integration.

(4)适用范围广:本发明适用于土木工程领域转体桥梁的转动监测,尤其适用于地理位置受限的桥梁结构。(4) Wide scope of application: The present invention is applicable to the rotation monitoring of rotating bridges in the field of civil engineering, and is particularly applicable to bridge structures with restricted geographical locations.

(5)应用潜力大:本发明能够以极低的成本和计算耗费实现对转体桥梁的全局性、高精度、实时监测,对发展基于计算机视觉的结构转动监测方法至关重要。(5) Great application potential: The present invention can achieve global, high-precision, and real-time monitoring of rotating bridges at extremely low cost and computational effort, which is crucial to the development of computer vision-based structural rotation monitoring methods.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明方法的流程图;Fig. 1 is a flow chart of the method of the present invention;

图2为三维正交光标的示意图;FIG2 is a schematic diagram of a three-dimensional orthogonal cursor;

图3为三维正交光标的布设示意图;FIG3 is a schematic diagram of the layout of a three-dimensional orthogonal cursor;

图4为转体桥梁相对旋转原理的示意图;FIG4 is a schematic diagram of the relative rotation principle of a rotating bridge;

图5为光标投影平面图;Fig. 5 is a cursor projection plan view;

图6为坐标系转换示意图。FIG6 is a schematic diagram of coordinate system transformation.

具体实施方式Detailed ways

为使本发明实施例的目的和技术方案更加清楚,下面将结合本发明实施例的附图,对本发明实施例的技术方案进行清楚、完整地描述。显然,所描述的实施例是本发明的一部分实施例,而不是全部的实施例。基于所描述的本发明的实施例,本领域普通技术人员在无需创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose and technical solution of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

实施例1;Embodiment 1;

参见图1-6;See Figure 1-6;

本实施例一种基于三维正交光标的桥梁转体监测方法,包括如下步骤:The present embodiment provides a bridge rotation monitoring method based on a three-dimensional orthogonal cursor, comprising the following steps:

S1,在转体桥梁上布设至少一个能发射光束的三维正交光标,在桥梁转体范围外布设图像采集装置;以桥梁上转盘的球铰中心为原点,桥梁的纵向、横向和竖直方向分别取为XB轴、YB轴和ZB轴建立桥梁局部坐标系,以三维正交光标光束交点为原点,三条光束方向为坐标轴建立光标坐标系,以图像采集装置光心为原点,分别取图像采集装置水平方向向右,竖直方向向下,光轴方向为XC轴、YC轴和ZC轴建立相机坐标系;S1, at least one three-dimensional orthogonal cursor capable of emitting light beams is arranged on the rotating bridge, and an image acquisition device is arranged outside the rotating range of the bridge; a local coordinate system of the bridge is established with the center of the ball joint of the turntable on the bridge as the origin, and the longitudinal, transverse and vertical directions of the bridge are respectively taken as the X B axis, Y B axis and Z B axis; a cursor coordinate system is established with the intersection of the three-dimensional orthogonal cursor light beams as the origin and the directions of the three light beams as the coordinate axes; a camera coordinate system is established with the optical center of the image acquisition device as the origin, and the horizontal direction of the image acquisition device is taken to the right, the vertical direction is taken to be downward, and the optical axis directions are taken as the X C axis, Y C axis and Z C axis;

三维正交光标按如下布设:The 3D orthogonal cursor is arranged as follows:

三维正交光标由三个激光发射器相互垂直连接组成,光束起点汇交于一点(即三维正交光标原点),光束射线形成三条光轴,光束起点与三条正交光轴构成光标坐标系;所述三个激光发射器能发射不同颜色的激光,优选红、绿、蓝三种颜色;每个激光发射器的发射距离优选大于等于5m;三维正交光标优选安装在桥墩或者上转盘上。在优选实施例中,光标装置选用4W红色激光、4W绿色激光和12W蓝色激光作为光束发射器。The three-dimensional orthogonal cursor is composed of three laser emitters connected perpendicularly to each other, the starting points of the light beams converge at one point (i.e., the origin of the three-dimensional orthogonal cursor), the light beam rays form three optical axes, and the starting points of the light beams and the three orthogonal optical axes constitute the cursor coordinate system; the three laser emitters can emit lasers of different colors, preferably red, green, and blue; the emission distance of each laser emitter is preferably greater than or equal to 5m; the three-dimensional orthogonal cursor is preferably installed on a bridge pier or an upper turntable. In a preferred embodiment, the cursor device uses a 4W red laser, a 4W green laser, and a 12W blue laser as beam emitters.

光束在无遮挡情况下可以在一定范围内无限发射,形成庞大、且颜色突出的光标坐标系而便于图像采集装置观测捕捉,从而提高拍摄效果和图像处理准确度。The light beam can be emitted infinitely within a certain range without being blocked, forming a huge cursor coordinate system with prominent colors, which is convenient for the image acquisition device to observe and capture, thereby improving the shooting effect and image processing accuracy.

需要注意的是,除了可以使用激光发射器发射光束形成三维正交光标以外,也可以使用具有长度信息的三维正交实体标靶。根据跨铁路施工要求,转体施工通常在晚上进行,在这种情况下优先选用激光光束作为视觉输入,若现场环境明亮导致激光光束可见性无明显优势,则可以选用具有长度信息的三维正交实体标靶。在使用后者作为图像采集装置的视觉输入时,需要保证图像采集装置与三维正交标靶之间视线通畅无遮挡。It should be noted that in addition to using a laser transmitter to emit a beam to form a three-dimensional orthogonal cursor, a three-dimensional orthogonal physical target with length information can also be used. According to the requirements of cross-railway construction, rotation construction is usually carried out at night. In this case, laser beams are preferred as visual input. If the on-site environment is bright and the laser beam visibility has no obvious advantage, a three-dimensional orthogonal physical target with length information can be used. When using the latter as the visual input of the image acquisition device, it is necessary to ensure that the line of sight between the image acquisition device and the three-dimensional orthogonal target is unobstructed.

图像采集装置按下述方法布设:The image acquisition device is arranged as follows:

图像采集装置的布设位置与三维正交光标的布设位置存在高差,使得三维正交光标光束在图像采集装置成像平面的投影彼此不会重合;There is a height difference between the placement position of the image acquisition device and the placement position of the three-dimensional orthogonal cursor, so that the projections of the three-dimensional orthogonal cursor light beams on the imaging plane of the image acquisition device do not overlap with each other;

在桥梁转体施工全过程中保持图像采集装置空间位姿不变,使得三维正交光标保持在图像采集装置的取景范围内。During the whole process of bridge rotation construction, the spatial position of the image acquisition device is kept unchanged, so that the three-dimensional orthogonal cursor is kept within the viewing range of the image acquisition device.

应当理解的是,图像采集装置可采用摄像机、摄影机等、优选工业相机,图像采集装置开始采集前需要进行标定,以获取计算转体桥梁空间姿态过程中所需的相机内在参数,标定方法优选张氏标定法;采用相机进行拍摄照片时,需要提前设置相机的帧率,实现连续拍摄;桥梁转体全过程中保持图像采集装置与正交三维光标之间的视线基本通畅,无大面积遮挡;优选图像采集装置与三维正交光标的距离为100m范围内。It should be understood that the image acquisition device can be a camera, a camcorder, etc., preferably an industrial camera. The image acquisition device needs to be calibrated before starting to acquire information to obtain the camera's intrinsic parameters required for calculating the spatial posture of the rotating bridge. The calibration method is preferably Zhang's calibration method. When using a camera to take pictures, the camera's frame rate needs to be set in advance to achieve continuous shooting. During the entire process of bridge rotation, the line of sight between the image acquisition device and the orthogonal three-dimensional cursor is kept basically unobstructed without large-area obstruction. Preferably, the distance between the image acquisition device and the three-dimensional orthogonal cursor is within 100m.

S2,在桥梁转体施工前,图像采集装置拍摄并采集包含三维正交光标光束的图像作为初始姿态图像,根据初始姿态图像确定初始姿态时三维正交光标光束投影在成像平面的方向角和交点坐标;S2, before the bridge rotation construction, the image acquisition device captures and acquires an image containing a three-dimensional orthogonal cursor beam as an initial posture image, and determines the direction angle and intersection coordinates of the three-dimensional orthogonal cursor beam projected on the imaging plane at the initial posture according to the initial posture image;

根据初始姿态图像(即桥梁转体前),所述初始姿态时正交三维光标光束射线投影在图像采集装置成像平面的方向角按下述方法得到:According to the initial posture image (i.e. before the bridge rotates), the direction angle of the orthogonal three-dimensional cursor beam ray projection on the imaging plane of the image acquisition device at the initial posture is obtained by the following method:

在相机坐标系中,基于设定RGB阈值范围对图像中的像素点进行遍历识别,提取光束像素点信息;采用随机抽样一致性方法(RANSAC算法)按线性函数对提取的三组像素点分别进行迭代拟合,得到对应光束投影拟合直线的若干解析表达式,当三条拟合直线的两两交点坐标的误差小于等于0.1像素时得到光束投影拟合直线满足精度要求的解析表达式,然后采用平面解析几何原理求得光束投影在成像平面的方向角,以拟合直线两两交点坐标的均值作为光束投影的交点坐标。In the camera coordinate system, the pixels in the image are traversed and identified based on the set RGB threshold range to extract the pixel information of the light beam. The random sampling consistency method (RANSAC algorithm) is used to iteratively fit the three groups of pixels extracted according to the linear function to obtain several analytical expressions of the corresponding light beam projection fitting lines. When the error of the coordinates of the intersection points of the three fitting lines is less than or equal to 0.1 pixel, the analytical expression of the light beam projection fitting line that meets the accuracy requirement is obtained. Then, the principle of plane analytic geometry is used to obtain the direction angle of the light beam projection on the imaging plane, and the mean value of the coordinates of the intersection points of the fitting lines is used as the intersection coordinates of the light beam projection.

需要说明的是,RANSAC算法,是计算机视觉领域的一种常用数学方法,是采用迭代的方式从一组包含离群的被观测数据中估算出数学模型的参数;RANSAC是一个非确定性算法,迭代次数越多,所得到的拟合模型越合理。在本发明中,RANSAC算法的基本思路为:以某一组光束投影像素点为例,对像素点数据集进行少量随机抽样作为内点集合并按线性函数进行模型拟合;用拟合模型对数据集内所有像素点进行预测,设定距离阈值,将与模型拟合程度高于该阈值的数据点认为是内点,更新内点集合并再次拟合模型;设定内点比例阈值,若内点数量达到该阈值则认为当前模型满足收敛条件,停止迭代,否则重复上一步骤;当模型满足收敛条件,使用最小二乘法估计模型参数,得到光标投影拟合直线的解析表达式。It should be noted that the RANSAC algorithm is a commonly used mathematical method in the field of computer vision. It estimates the parameters of a mathematical model from a set of observed data containing outliers in an iterative manner; RANSAC is a non-deterministic algorithm. The more iterations, the more reasonable the fitting model obtained. In the present invention, the basic idea of the RANSAC algorithm is: taking a certain group of beam projection pixel points as an example, a small amount of random sampling of the pixel point data set is performed as an inlier set and the model is fitted according to a linear function; all pixel points in the data set are predicted using the fitting model, a distance threshold is set, and data points with a degree of model fit higher than the threshold are considered as inliers, the inlier set is updated and the model is fitted again; an inlier ratio threshold is set, and if the number of inliers reaches the threshold, the current model is considered to meet the convergence conditions, and the iteration is stopped, otherwise the previous step is repeated; when the model meets the convergence conditions, the least squares method is used to estimate the model parameters, and an analytical expression of the cursor projection fitting line is obtained.

需要说明的是,图像采集装置获取桥梁转体姿态不同时刻的图像/照片后,通常需要对图像/照片进行预处理,例如选用均值滤波进行降噪处理,运用形态学开运算平滑照片;图像预处理为本领域常规技术手段,此处不再赘述。It should be noted that after the image acquisition device obtains the images/photos of the bridge rotation posture at different times, it is usually necessary to preprocess the images/photos, such as using mean filtering for noise reduction and using morphological opening operation to smooth the photos; image preprocessing is a conventional technical means in this field and will not be repeated here.

步骤S2中,通过对桥梁转体姿态图像进行处理,采用RANSAC算法对像素信息进行迭代拟合,并添加约束条件提高拟合精确度,准确获取转体桥梁上三维正交光标的二维图像信息。In step S2, the bridge rotation posture image is processed, the pixel information is iteratively fitted using the RANSAC algorithm, and constraints are added to improve the fitting accuracy, so as to accurately obtain the two-dimensional image information of the three-dimensional orthogonal cursor on the rotating bridge.

S3,采用刚体空间变换原理建立光标坐标系与相机坐标系的变换关系,根据成像原理建立三维正交光标光束与光束投影的映射关系,根据所述映射关系、变换关系以及S2所得初始姿态时光束投影的方向角和交点坐标,采用变分原理和数值迭代法求解得到三维正交光标的初始姿态,根据三维正交光标初始姿态以及光标坐标系与桥梁局部坐标系的转换关系,得到初始姿态时相机坐标系与桥梁局部坐标系的变换关系,进而确定桥梁转体的初始姿态;S3, using the rigid body space transformation principle to establish the transformation relationship between the cursor coordinate system and the camera coordinate system, and establishing the mapping relationship between the three-dimensional orthogonal cursor beam and the beam projection according to the imaging principle. According to the mapping relationship, the transformation relationship and the direction angle and intersection coordinates of the beam projection at the initial posture obtained in S2, the variational principle and the numerical iteration method are used to solve the initial posture of the three-dimensional orthogonal cursor. According to the initial posture of the three-dimensional orthogonal cursor and the transformation relationship between the cursor coordinate system and the local coordinate system of the bridge, the transformation relationship between the camera coordinate system and the local coordinate system of the bridge at the initial posture is obtained, and then the initial posture of the bridge rotation is determined;

根据刚体空间变换原理以及转体桥梁变换特性,所述光标坐标系与相机坐标系的变换关系按下述方法建立:According to the rigid body space transformation principle and the transformation characteristics of the rotating bridge, the transformation relationship between the cursor coordinate system and the camera coordinate system is established as follows:

借助欧拉角描述转体桥梁姿态变换,将梁体转动过程分解为三个彼此独立的绕X、Y、Z轴的旋转,且每次旋转以桥梁自身局部坐标系为参考进行内在旋转;假定从相机坐标系变换至桥梁局部坐标系的旋转次序为绕X-Y-Z轴,对应的转动欧拉角分别为α、β、γ,对应的旋转矩阵分别为RX、RY、RZ,则总旋转矩阵RC按式(1)表示为:The Euler angle is used to describe the posture transformation of the rotating bridge. The beam rotation process is decomposed into three independent rotations around the X, Y, and Z axes, and each rotation is performed with the bridge's own local coordinate system as a reference. Assuming that the rotation order from the camera coordinate system to the bridge's local coordinate system is around the XYZ axes, the corresponding rotation Euler angles are α, β, and γ, respectively, and the corresponding rotation matrices are RX , RY , and RZ , respectively. The total rotation matrix RC is expressed as follows according to formula (1):

用单位矩阵E表示相机坐标系三坐标轴方向向量,以相机坐标系为观测基准,则相机坐标系坐标轴方向向量与光标坐标系坐标轴方向向量ηi(i=1、2、3)满足式(2):The unit matrix E is used to represent the direction vectors of the three coordinate axes of the camera coordinate system. Taking the camera coordinate system as the observation reference, the direction vectors of the coordinate axes of the camera coordinate system and the direction vectors of the coordinate axes of the cursor coordinate system η i (i=1, 2, 3) satisfy equation (2):

ηi=RCAΕ=[r1i r2i r3i]T (2)η i =RC A Ε=[r 1i r 2i r 3i ] T (2)

式中,RCA为相机坐标系变换至光标坐标系的旋转变换矩阵;r1i、r2i、r3i分别是旋转矩阵RCA中第1、2、3行第i列元素;E为相机坐标系坐标轴矩阵,构成该矩阵的行向量表示相机坐标系坐标轴的单位方向向量。Where R CA is the rotation transformation matrix from the camera coordinate system to the cursor coordinate system; r 1i , r 2i , r 3i are the elements of the 1st, 2nd, and 3rd rows and the i-th column in the rotation matrix R CA, respectively; E is the coordinate axis matrix of the camera coordinate system, and the row vectors constituting the matrix represent the unit direction vectors of the coordinate axes of the camera coordinate system.

应当理解的是,根据刚体空间变换原理,相机坐标系变换至桥梁局部坐标系时可以采用不同的旋转次序,例如绕X-Z-Y轴,不同的旋转次序对应不同旋转矩阵和旋转角,但旋转前或旋转后的桥梁自身空间位姿并不会因旋转次序的改变而改变。绕X-Y-Z轴的旋转次序不能理解为对本发明的限制。It should be understood that, according to the rigid body space transformation principle, different rotation orders can be used when the camera coordinate system is transformed to the local coordinate system of the bridge, for example, around the X-Z-Y axis. Different rotation orders correspond to different rotation matrices and rotation angles, but the spatial position of the bridge itself before or after rotation will not change due to the change of the rotation order. The rotation order around the X-Y-Z axis cannot be understood as a limitation of the present invention.

将桥梁视作刚体,刚体运动由转动和平动组成,由于现有监测技术难以准确获取刚体运动的空间位姿,而发明人考虑到桥梁在转体过程中因存在中心限位,桥梁仅绕桥梁自身局部坐标系进行旋转,而不发生平动,因此将桥梁的转动与平动分离;但由于桥梁局部坐标系在图像采集装置中难以可视化,因此借助三维正交光标来间接确定桥梁转体过程中的姿态变化,而在此过程中建立三维正交光标光束与其在图像采集装置成像平面的投影的映射关系至关重要;The bridge is regarded as a rigid body, and the rigid body motion consists of rotation and translation. Since it is difficult to accurately obtain the spatial position of the rigid body motion with the existing monitoring technology, the inventors consider that the bridge only rotates around its own local coordinate system without translation due to the existence of a center limit during the rotation process, and therefore separate the rotation and translation of the bridge; however, since the local coordinate system of the bridge is difficult to visualize in the image acquisition device, the posture change of the bridge during the rotation process is indirectly determined by means of a three-dimensional orthogonal cursor, and in this process, it is crucial to establish a mapping relationship between the three-dimensional orthogonal cursor beam and its projection on the imaging plane of the image acquisition device;

以相机成像为例,其成像原理简述如下:Taking camera imaging as an example, its imaging principle is briefly described as follows:

对空间任一点进行中心投影,在不考虑相机成像的透镜畸变的前提下,其世界坐标(XW,YW,ZW)、相机坐标(XC,YC,ZC)、图像坐标(x,y)和像素坐标(u,v)转换关系如式(3):Perform central projection on any point in space. Without considering the lens distortion of camera imaging, the transformation relationship between world coordinates ( XW , YW , ZW ), camera coordinates ( XC , YC , ZC ), image coordinates (x, y) and pixel coordinates (u, v) is as shown in formula (3):

式中,(u0,v0)是图像采集装置成像平面中心在像素坐标系当中的坐标;dx、dy分别表示相片物理像素在像素坐标系两坐标轴方向上的长度;Km为相机内参矩阵;KT为相机外参矩阵;Wherein, (u 0 ,v 0 ) is the coordinate of the center of the imaging plane of the image acquisition device in the pixel coordinate system; dx and dy represent the lengths of the physical pixels of the photo in the two coordinate axis directions of the pixel coordinate system; K m is the camera intrinsic parameter matrix; K T is the camera extrinsic parameter matrix;

Km按式(4)表示为:K m is expressed as follows according to formula (4):

式中,f为相机焦距,相机内参可通过相机标定得到。In the formula, f is the focal length of the camera, and the camera intrinsic parameters can be obtained through camera calibration.

相机外参矩阵KT由从相机坐标系变换至世界坐标系的旋转矩阵R以及相应的平移向量t共同构成,按式(5)表示为:The camera extrinsic matrix K T is composed of the rotation matrix R from the camera coordinate system to the world coordinate system and the corresponding translation vector t, which can be expressed as follows according to formula (5):

在本实施例中,将三维正交光标向图像采集装置光心(相机坐标系原点)进行中心投影,假定三维正交光标原点OA在相机坐标系中的坐标为(X0,Y0,Z0),以相机坐标系为观测基准,则三维正交光标原点投影至成像平面的图像坐标(x0,y0)可按式(6)表示为:In this embodiment, the three-dimensional orthogonal cursor is centrally projected onto the optical center of the image acquisition device (the origin of the camera coordinate system). Assuming that the coordinates of the three-dimensional orthogonal cursor origin OA in the camera coordinate system are (X 0 , Y 0 , Z 0 ), and the camera coordinate system is used as the observation reference, the image coordinates (x 0 , y 0 ) of the three-dimensional orthogonal cursor origin projected onto the imaging plane can be expressed as follows according to formula (6):

假定光标坐标系原点OA在相机坐标系下的矢径为t0=(X0,Y0,Z0),t0即为相机外参矩阵中的平移向量,根据平面相交原理,则光标坐标系在成像平面的投影射线li即为由矢径t0与光标坐标轴ηi所确定的空间平面同成像平面的交线,根据空间解析几何原理,矢径t0与光标坐标轴ηi所确定的空间平面的法向量ni可由式(7)求得:Assume that the radius vector of the origin OA of the cursor coordinate system in the camera coordinate system is t0 = ( X0 , Y0 , Z0 ), t0 is the translation vector in the camera extrinsic matrix. According to the plane intersection principle, the projection ray l i of the cursor coordinate system on the imaging plane is the intersection line of the spatial plane determined by the radius vector t0 and the cursor coordinate axis ηi with the imaging plane. According to the principle of spatial analytic geometry, the normal vector n i of the spatial plane determined by the radius vector t0 and the cursor coordinate axis ηi can be obtained by formula (7):

根据法向量ni得到矢径t0与光标坐标轴ηi所在空间平面的解析式如式(8):According to the normal vector n i, the analytical expression of the space plane where the radius vector t 0 and the cursor coordinate axis η i are located is as follows:

ni1x+ni2y+ni3z=0 8)n i1 x+n i2 y+n i3 z=0 8)

式中,ni1、ni2、ni3分别是ηi所在平面的法向量ni在相机坐标系X、X、Z方向上的分量,即法向量ni中的第1、2、3个元素。Where n i1 , n i2 , and n i3 are the components of the normal vector ni of the plane where η i is located in the X, X, and Z directions of the camera coordinate system, that is, the first, second, and third elements of the normal vector ni .

根据平面相交原理,对光标坐标系中心投影至成像平面的映射信息进行解算,得到成像平面上光标射线投影li的解析表达式如式(9):According to the plane intersection principle, the mapping information of the cursor coordinate system center projected to the imaging plane is solved, and the analytical expression of the cursor ray projection l i on the imaging plane is obtained as shown in formula (9):

由于光标坐标系具有方向性,其投影信息的表现形式为射线,因此对映射信息选用方向角进行准确的描述。根据光标投影li的解析表达式,得到三维正交光标光束与光束投影的映射关系如(10)计算得到:Since the cursor coordinate system is directional, its projection information is expressed in the form of rays, so the direction angle is used to accurately describe the mapping information. According to the analytical expression of the cursor projection l i , the mapping relationship between the three-dimensional orthogonal cursor beam and the beam projection is obtained as calculated by (10):

θi=atan2(fr2i-y0r3i,fr1i-x0r3i) (10)θ i = atan2(fr 2i -y 0 r 3i ,fr 1i -x 0 r 3i ) (10)

式中,θi为光标射线投影li的方向角;atan2(·)为四象限反正切函数。Where θ i is the direction angle of the cursor ray projection l i ; atan2(·) is the four-quadrant inverse tangent function.

将三维正交光标光束与光束投影的映射关系以及光标坐标系与相机坐标系的变换关系联立方程如式(11),根据S2所得初始姿态时光标投影的方向角和交点坐标,采用变分原理和数值迭代方法对联立方程(11)进行迭代求解,计算得到三维正交光标不同时刻空间姿态在相机坐标系下各自对应的旋转欧拉角α、β、γ;所述数值迭代法优选牛顿-拉普森数值迭代法;The mapping relationship between the three-dimensional orthogonal cursor beam and the beam projection and the transformation relationship between the cursor coordinate system and the camera coordinate system are formulated as equation (11). According to the direction angle and intersection coordinates of the cursor projection at the initial posture obtained by S2, the simultaneous equations (11) are iteratively solved by using the variational principle and the numerical iteration method to calculate the rotation Euler angles α, β, and γ corresponding to the spatial postures of the three-dimensional orthogonal cursor at different times in the camera coordinate system; the numerical iteration method is preferably the Newton-Raphson numerical iteration method;

根据求解的旋转欧拉角α、β、γ,确定转体桥梁初始姿态时从相机坐标系变换至光标坐标系的旋转矩阵Rc0,得到转体桥梁初始姿态相机坐标系与光标坐标系的变换关系如式(12):According to the solved rotation Euler angles α, β, γ, the rotation matrix R c0 from the camera coordinate system to the cursor coordinate system at the initial posture of the rotating bridge is determined, and the transformation relationship between the camera coordinate system and the cursor coordinate system at the initial posture of the rotating bridge is obtained as shown in formula (12):

式中,Rc0为初始姿态时相机坐标系变换至光标坐标系的旋转矩阵;为初始姿态时光标坐标系坐标轴方向向量,i=1、2、3;E为相机坐标系坐标轴矩阵,构成该矩阵的行向量表示相机坐标系坐标轴的单位方向向量。Where R c0 is the rotation matrix from the camera coordinate system to the cursor coordinate system at the initial posture; is the direction vector of the cursor coordinate system axis at the initial posture, i=1, 2, 3; E is the camera coordinate system axis matrix, and the row vectors constituting the matrix represent the unit direction vector of the camera coordinate system axis.

采用三维正交光标作为视觉输入,建立光标坐标系与桥梁局部坐标系之间的转换关系如式(13):Using a three-dimensional orthogonal cursor as visual input, the transformation relationship between the cursor coordinate system and the local coordinate system of the bridge is established as shown in formula (13):

123]T=R0123]T (13)123 ] T =R 0123 ] T (13)

式中:ηi、ζi(i=1、2、3)分别表示同一坐标系下光标坐标轴和桥梁局部坐标轴的方向向量;R0是从桥梁局部坐标系变换至光标坐标系的旋转矩阵。Wherein: η i , ζ i (i=1, 2, 3) represent the direction vectors of the cursor coordinate axis and the bridge local coordinate axis in the same coordinate system respectively; R 0 is the rotation matrix from the bridge local coordinate system to the cursor coordinate system.

根据相机坐标系与光标坐标系的的变换关系以及光标坐标系和转体桥梁局部坐标系之间的转换关系,初始姿态时相机坐标系与桥梁局部坐标系的变换关系按式(14)得到:According to the transformation relationship between the camera coordinate system and the cursor coordinate system and the transformation relationship between the cursor coordinate system and the local coordinate system of the rotating bridge, the transformation relationship between the camera coordinate system and the local coordinate system of the bridge at the initial posture is obtained according to formula (14):

式中,为初始姿态时桥梁局部坐标系坐标轴方向向量,i=1、2、3;R0为初始姿态时桥梁局部坐标轴变换至光标坐标系的旋转变换矩阵,R0满足[η123]T=R0123]T;R0 -1为R0的逆矩阵;R0 -1Rc0表示相机坐标系变换至桥梁局部坐标系的旋转变换矩阵,从该矩阵中可提取转体桥梁基于相机坐标系的初始空间姿态。In the formula, is the direction vector of the coordinate axis of the local coordinate system of the bridge at the initial posture, i = 1, 2, 3; R 0 is the rotation transformation matrix of the local coordinate axis of the bridge to the cursor coordinate system at the initial posture, R 0 satisfies [η 123 ] T =R 0123 ] T ; R 0 -1 is the inverse matrix of R 0 ; R 0 -1 R c0 represents the rotation transformation matrix of the camera coordinate system to the local coordinate system of the bridge, from which the initial spatial posture of the rotating bridge based on the camera coordinate system can be extracted.

步骤S3中,提出了一种有效的映射关系解算方法,建立了三维正交光标光束和其中心投影的图像信息之间的数学联系,以三维正交光标作为媒介为后续桥梁转体空间姿态重建的实现提供了理论基础。In step S3, an effective mapping relationship solution method is proposed, and a mathematical connection between the three-dimensional orthogonal cursor beam and the image information of its central projection is established, which provides a theoretical basis for the subsequent reconstruction of the spatial posture of the bridge rotation using the three-dimensional orthogonal cursor as a medium.

S4,桥梁转体施工过程中,图像采集装置连续采集桥梁转体不同时刻的姿态图像,从所得不同时刻姿态图像中提取不同时刻三维正交光标光束投影在成像平面的方向角和交点坐标,采用变分原理和数值迭代法求解得到三维正交光标不同时刻空间姿态,得到桥梁转体过程中不同时刻相机坐标系与桥梁局部坐标系的变换关系,进而确定桥梁转体不同时刻的空间姿态(基于相机坐标系的旋转欧拉角);S4, during the bridge rotation construction process, the image acquisition device continuously acquires the posture images of the bridge rotation at different times, extracts the direction angle and intersection coordinates of the three-dimensional orthogonal cursor beam projected on the imaging plane at different times from the posture images obtained at different times, and uses the variational principle and numerical iteration method to solve the spatial posture of the three-dimensional orthogonal cursor at different times, and obtains the transformation relationship between the camera coordinate system and the local coordinate system of the bridge at different times during the bridge rotation process, and then determines the spatial posture of the bridge rotation at different times (based on the rotation Euler angle of the camera coordinate system);

不同时刻姿态时相机坐标系与桥梁局部坐标系的变换关系按式(15)得到:The transformation relationship between the camera coordinate system and the local coordinate system of the bridge at different times is obtained according to formula (15):

式中,为第k个拍摄时刻时桥梁局部坐标系坐标轴方向向量,i=1、2、3,k=1、2、3...;Rck为第k个拍摄时刻时相机坐标系变换至光标坐标系的旋转矩阵;R0 -1Rck表示第k个拍摄时刻时相机坐标系变换至桥梁局部坐标系的旋转变换矩阵,从该矩阵中可提取第k个拍摄时刻时转体桥梁基于相机坐标系的转体空间姿态(旋转欧拉角)。In the formula, is the direction vector of the coordinate axis of the local coordinate system of the bridge at the kth shooting moment, i=1, 2, 3 , k=1 , 2, 3...; Rck is the rotation matrix of the camera coordinate system transformed to the cursor coordinate system at the kth shooting moment; R0-1Rck represents the rotation transformation matrix of the camera coordinate system transformed to the local coordinate system of the bridge at the kth shooting moment, from which the rotational spatial posture (rotation Euler angle) of the rotating bridge based on the camera coordinate system at the kth shooting moment can be extracted.

根据步骤S3的方法,Rck按下述过程得到:According to the method of step S3, Rck is obtained by the following process:

根据转体桥梁不同时刻的姿态图像确定对应姿态时三维正交光标光束射线投影在成像平面的方向角和交点坐标;根据所述映射关系、变换关系以及所得不同时刻姿态时光束射线投影的方向角和交点坐标,采用变分原理和数值迭代法求解得到正交三维光标的不同时刻姿态,确定第k个拍摄时刻时相机坐标系与光标坐标系的变换关系如式(16):According to the posture images of the rotating bridge at different times, the direction angle and intersection coordinates of the projection of the three-dimensional orthogonal cursor beam ray on the imaging plane at the corresponding posture are determined; according to the mapping relationship, the transformation relationship and the direction angle and intersection coordinates of the projection of the beam ray at different postures, the postures of the orthogonal three-dimensional cursor at different times are solved by using the variational principle and the numerical iteration method, and the transformation relationship between the camera coordinate system and the cursor coordinate system at the kth shooting time is determined as shown in formula (16):

式中,Rck为第k个拍摄时刻时相机坐标系变换至光标坐标系的旋转变换矩阵;为第k个拍摄时刻时光标坐标系坐标轴方向向量,i=1、2、3,k=1、2、3...;E为相机坐标系坐标轴单位矩阵,构成该单位矩阵的行向量表示相机坐标系坐标轴方向向量。Where Rck is the rotation transformation matrix from the camera coordinate system to the cursor coordinate system at the kth shooting moment; is the direction vector of the cursor coordinate system axis at the kth shooting moment, i=1, 2, 3, k=1, 2, 3...; E is the camera coordinate system axis unit matrix, and the row vectors constituting the unit matrix represent the direction vector of the camera coordinate system axis.

S5,根据S3-S4所得桥梁转体初始姿态、转体过程中不同时刻姿态,求得桥梁转体过程中不同时刻姿态与初始姿态的相对旋转矩阵;设定转体桥梁绕桥梁局部坐标系发生相对旋转的旋转次序,根据旋转次序从所述相对旋转矩阵中提取得到桥梁转体不同时刻的相对旋转欧拉角;S5, according to the initial posture of the bridge rotation and the postures at different times during the rotation process obtained in S3-S4, obtain the relative rotation matrix of the postures at different times during the bridge rotation process and the initial posture; set the rotation order of the rotating bridge relative rotation around the local coordinate system of the bridge, and extract the relative rotation Euler angles of the bridge rotation at different times from the relative rotation matrix according to the rotation order;

定义ΔR0k为转体桥梁局部坐标系从初始状态至到第k个拍摄时刻(第k张图像)对应空间姿态的相对旋转变换矩阵,则的关系按式(17)表示为:Define ΔR 0k as the relative rotation transformation matrix of the local coordinate system of the rotating bridge from the initial state to the kth shooting moment (kth image) corresponding to the spatial posture, then and The relationship is expressed as follows according to formula (17):

式中,分别为初始姿态和第k个拍摄时刻对应空间姿态时桥梁局部坐标系坐标轴方向向量,i=1、2、3;ΔR0k为转体桥梁局部坐标系从初始姿态变换到第k个拍摄时刻对应空间姿态的相对旋转矩阵。In the formula, are the direction vectors of the coordinate axes of the local coordinate system of the bridge at the initial posture and the spatial posture corresponding to the k-th shooting moment, respectively, i=1, 2, 3; ΔR 0k is the relative rotation matrix of the local coordinate system of the rotating bridge from the initial posture to the spatial posture corresponding to the k-th shooting moment.

基于步骤S3-S4中所构建的相机坐标系与光标坐标系的变换关系以及桥梁局部坐标系与光标坐标系的变换关系,的关系进一步按式(17)表示为:Based on the transformation relationship between the camera coordinate system and the cursor coordinate system constructed in steps S3-S4 and the transformation relationship between the bridge local coordinate system and the cursor coordinate system, and The relationship is further expressed as follows according to formula (17):

则转体桥梁从初始状态至姿态变换后的相对旋转变换矩阵ΔR0k按式(19)确定:Then the relative rotation transformation matrix ΔR 0k of the rotating bridge from the initial state to the posture transformation is determined according to formula (19):

ΔR0k=R0 -1RckR0Rc0 -1 (19)ΔR 0k =R 0 -1 R ck R 0 R c0 -1 (19)

根据转体桥梁特性设定转体桥梁绕自身局部坐标系发生相对旋转的旋转次序为绕Z-Y-X轴,当从相机坐标系变换至光标坐标系的旋转次序为绕X-Y-Z轴时,可从相对旋转矩阵ΔR0k中提取出唯一的相对旋转欧拉角Δα、Δβ、Δγ如式(20):According to the characteristics of the rotating bridge, the rotation order of the rotating bridge around its own local coordinate system is set to be around the ZYX axis. When the rotation order from the camera coordinate system to the cursor coordinate system is around the XYZ axis, the unique relative rotation Euler angles Δα, Δβ, Δγ can be extracted from the relative rotation matrix ΔR 0k as shown in formula (20):

式中,rij(i=1,2,3;j=1,2,3)表示旋转矩阵ΔR0k中第i行第j列的分量。Wherein, rij (i=1,2,3; j=1,2,3) represents the component of the i-th row and j-th column in the rotation matrix ΔR0k .

步骤S5中,通过引入适用于转体桥梁的特定旋转模式和旋转次序,推导桥梁转体不同时刻姿态与初始姿态的相对旋转变换矩阵的计算公式,从中分离得到转体桥梁不同时刻姿态与初始姿态的相对旋转欧拉角,实现了转体桥梁结构的精准监测,为转体桥梁结构的转动监测提供了可靠的数学基础。In step S5, by introducing a specific rotation mode and rotation order suitable for a rotating bridge, the calculation formula for the relative rotation transformation matrix of the bridge rotation posture at different times and the initial posture is derived, from which the relative rotation Euler angles of the rotating bridge posture at different times and the initial posture are separated, thereby achieving accurate monitoring of the rotating bridge structure and providing a reliable mathematical basis for the rotation monitoring of the rotating bridge structure.

根据转体桥梁的设计位置以及初始姿态位置,按上述方法计算得到转体桥梁的目标旋转欧拉角,当所得任意时刻的桥梁绕竖轴旋转欧拉角达到目标旋转欧拉角时,则完成监测;目标旋转欧拉角是指假设将桥梁从初始姿态经一次转体达到桥梁转体设计位置时桥梁局部坐标系需要绕竖轴转动的旋转欧拉角;在桥梁转体施工过程中,根据监测得到的桥梁转动数据与目标旋转角的差值指挥桥梁转动,同时根据监测得到的转体桥梁绕纵、横向的旋转欧拉角,及时对桥梁进行姿态调整,最终使桥梁准确转体至设计位置。According to the design position and initial posture position of the rotating bridge, the target rotation Euler angle of the rotating bridge is calculated according to the above method. When the Euler angle of the bridge rotation around the vertical axis at any time reaches the target rotation Euler angle, the monitoring is completed. The target rotation Euler angle refers to the rotation Euler angle of the local coordinate system of the bridge around the vertical axis when the bridge is assumed to reach the design rotation position of the bridge after one rotation from the initial posture. During the construction process of the bridge rotation, the bridge is commanded to rotate according to the difference between the bridge rotation data obtained by monitoring and the target rotation angle. At the same time, according to the Euler angles of the rotating bridge around the longitudinal and lateral directions obtained by monitoring, the attitude of the bridge is adjusted in time, so that the bridge is finally accurately rotated to the design position.

实施例2;Embodiment 2;

本实施例一种基于三维正交光标的桥梁转体监测方法的监测系统,包括:The present embodiment provides a monitoring system for a bridge rotation monitoring method based on a three-dimensional orthogonal cursor, including:

光标模块,包括通过底座安装在转体桥梁上的三维正交光标,三维正交光标由三个相互垂直连接且发射不同颜色光束的激光发射器构成;A cursor module, comprising a three-dimensional orthogonal cursor installed on the rotating bridge through a base, wherein the three-dimensional orthogonal cursor is composed of three laser emitters which are vertically connected to each other and emit light beams of different colors;

图像采集模块,利用图像采集装置连续拍摄并采集安装在转体桥梁上的三维正交光标的姿态图像,姿态图像包括初始姿态图像和转体过程中不同时刻姿态图像;An image acquisition module, which uses an image acquisition device to continuously shoot and acquire posture images of a three-dimensional orthogonal cursor installed on the rotating bridge, wherein the posture images include an initial posture image and posture images at different times during the rotation process;

更具体的,调整图像采集装置空间位姿至桥梁转体范围外的合适位置以保证桥梁转体过程中三维正交光标不会移动出相机取景框外,并且对图像采集装置的内参进行标定,调整结束后保持图像采集装置空间位姿固定不动,控制图像采集装置连续采集三维正交光标的姿态图像。More specifically, the spatial position of the image acquisition device is adjusted to a suitable position outside the rotation range of the bridge to ensure that the three-dimensional orthogonal cursor does not move out of the camera frame during the rotation of the bridge, and the internal parameters of the image acquisition device are calibrated. After the adjustment, the spatial position of the image acquisition device is kept fixed, and the image acquisition device is controlled to continuously capture the posture image of the three-dimensional orthogonal cursor.

图像处理模块,从图像采集模块拍摄的所有姿态图像中提取得到三维正交光标光束投影对应的方向角和交点坐标;An image processing module extracts the direction angle and intersection coordinates corresponding to the projection of the three-dimensional orthogonal cursor beam from all the posture images taken by the image acquisition module;

更具体的,先运用均值滤波和形态开运算对图像进行平滑降噪处理,然后基于RGB阈值范围提取对应三种不同颜色光束投影的像素点,采用随机抽样一致性方法按线性函数分别对三组像素点进行迭代拟合得到拟合直线,然后根据三维光标的正交约束性对拟合表达式进行验证,当三条拟合直线的两两交点坐标的误差小于等于0.1个像素单位时认为满足拟合精度要求并得到光束投影的最终解析表达式,求得光束投影的方向角,以拟合函数的交点坐标均值作为三条光束射线的交点坐标。在其他实施例中也可采用MSAC算法,PROSAC算法等。More specifically, the image is first smoothed and denoised using mean filtering and morphological opening operations, and then the pixels corresponding to the projection of three different color beams are extracted based on the RGB threshold range. The three groups of pixels are iteratively fitted according to the linear function using the random sampling consistency method to obtain fitting lines, and then the fitting expression is verified according to the orthogonal constraint of the three-dimensional cursor. When the error of the coordinates of the intersections of the three fitting lines is less than or equal to 0.1 pixel units, it is considered that the fitting accuracy requirements are met and the final analytical expression of the beam projection is obtained, and the direction angle of the beam projection is obtained, and the mean value of the intersection coordinates of the fitting function is used as the intersection coordinates of the three beam rays. In other embodiments, the MSAC algorithm, PROSAC algorithm, etc. can also be used.

数据处理模块,根据图像处理模块得到的光束投影的方向角和交点坐标,计算得到桥梁转体不同时刻姿态相对于初始姿态的相对旋转欧拉角;The data processing module calculates the relative rotation Euler angles of the bridge rotation posture at different times relative to the initial posture according to the direction angle and intersection coordinates of the light beam projection obtained by the image processing module;

需要说明的是,图像处理和数据处理在边缘计算平台上实现,边缘计算平台可以是微型计算机、笔记本电脑,也可以是其他具有运算功能的计算平台,在边缘计算平台上安装处理软件,例如matlab软件,按照本发明提出基于正交三维光标的桥梁转体监测方法在计算平台的matlab软件中编入计算图像处理和数据处理的程序,将图像采集装置的图像保存路径设定为程序指定的源文件,然后启动程序对图像进行分析和识别,得到光束投影的方向角和交点坐标,matlab程序进一步根据光束投影信息计算出桥梁转体不同时刻姿态相对于初始姿态的相对旋转欧拉角,获取目标桥梁旋转的时程数据。在某一具体实施例中,计算平台的CPU为i7-12700@2.10GHz。根据本发明基于正交三维光标的桥梁转体监测方法,本领域技术人员可以在matlab软件中编写出对应的计算程序,此处不再赘述。根据实施例模拟测试,从捕获图像到获得其相应的转动参数的时间约为0.15s,满足旋转测量的工程实时性和规范要求。It should be noted that image processing and data processing are implemented on the edge computing platform. The edge computing platform can be a microcomputer, a laptop, or other computing platform with computing functions. Processing software, such as matlab software, is installed on the edge computing platform. According to the bridge rotation monitoring method based on orthogonal three-dimensional cursor proposed in the present invention, the program for computing image processing and data processing is compiled into the matlab software of the computing platform, and the image saving path of the image acquisition device is set to the source file specified by the program. Then, the program is started to analyze and identify the image, and the direction angle and intersection coordinates of the beam projection are obtained. The matlab program further calculates the relative rotation Euler angle of the bridge rotation posture at different times relative to the initial posture according to the beam projection information, and obtains the time history data of the target bridge rotation. In a specific embodiment, the CPU of the computing platform is i7-12700@2.10GHz. According to the bridge rotation monitoring method based on orthogonal three-dimensional cursor of the present invention, those skilled in the art can write a corresponding calculation program in matlab software, which will not be repeated here. According to the simulation test of the embodiment, the time from capturing the image to obtaining its corresponding rotation parameters is about 0.15s, which meets the engineering real-time and specification requirements of rotation measurement.

数据显示模块,显示转体桥梁不同时刻姿态的相对旋转欧拉角以及目标旋转欧拉角;将相对旋转欧拉角和目标旋转欧拉角进行比对,可以指导桥梁转体施工。The data display module displays the relative rotation Euler angles and target rotation Euler angles of the rotating bridge at different times; comparing the relative rotation Euler angles with the target rotation Euler angles can guide the bridge rotation construction.

与现有方法相比,本方法中图像采集装置的拍摄和采集过程是连续、实时的,然后包含三维正交光标的图像信息通过上述方法在边缘计算平台上进行计算,计算时间较短,能以较快的速度得到相对旋转欧拉角,满足工程实时性要求。Compared with the existing methods, the shooting and acquisition process of the image acquisition device in this method is continuous and real-time, and then the image information containing the three-dimensional orthogonal cursor is calculated on the edge computing platform through the above method. The calculation time is short, and the relative rotation Euler angle can be obtained at a faster speed, meeting the real-time requirements of the project.

实施例3;Embodiment 3;

为验证桥梁转体姿态实时监测,在CAD软件中构建桥梁转体简化模型进行模拟,该模型为转体T构桥梁。In order to verify the real-time monitoring of the bridge rotation posture, a simplified bridge rotation model was constructed in the CAD software for simulation. The model is a rotating T-structure bridge.

该转体T构桥梁墩身高16m,上转盘为9m×12m矩形,三维正交光标布设于桥梁桥墩底座上,为简化计算,让光标坐标系完全平行于桥梁局部坐标系,则桥梁局部坐标系和光标坐标系的转换关系[η123]T=R0123]T中R0实为单位矩阵。图像采集装置为相机,相机中心与CAD工作空间的坐标系中心重合,设定相机焦距f为0.13m。在模拟时,设定转体桥梁初始状态时基于相机坐标系(相机坐标系)的空间位置为范围随机值,XC、YC坐标随机范围分别为(-100,100),ZC坐标随机范围为(0.13,100.13),并在-90°~90°间随机给定转体桥梁初始状态相对于相机坐标系的空间姿态(转体桥梁空间位置参数不参与空间姿态及相对旋转计算,仅以此模拟相机布设位置)。对桥梁转体实际施工监测情况进行仿真模拟,基于转体桥梁的初始姿态逐次进行相对旋转,旋转欧拉角Δα、Δβ在±1°内随机变化,Δγ以每次0.5°增长,并引入随机值±0.5°。The swivel T-structure bridge pier is 16m tall, the upper turntable is a 9m×12m rectangle, and the three-dimensional orthogonal cursor is arranged on the bridge pier base. To simplify the calculation, the cursor coordinate system is completely parallel to the local coordinate system of the bridge. Then the conversion relationship between the local coordinate system of the bridge and the cursor coordinate system is [η 123 ] T =R 0123 ] T , where R 0 is actually the unit matrix. The image acquisition device is a camera, the center of the camera coincides with the center of the coordinate system of the CAD workspace, and the camera focal length f is set to 0.13m. During the simulation, the spatial position of the rotating bridge based on the camera coordinate system (camera coordinate system) at the initial state is set as a range of random values, the random ranges of the XC and YC coordinates are (-100, 100), and the random range of the ZC coordinate is (0.13, 100.13), and the spatial posture of the initial state of the rotating bridge relative to the camera coordinate system is randomly given between -90° and 90° (the spatial position parameters of the rotating bridge do not participate in the calculation of the spatial posture and relative rotation, and are only used to simulate the camera layout position). The actual construction monitoring of the bridge rotation is simulated, and the initial posture of the rotating bridge is rotated relative to each other. The rotation Euler angles Δα and Δβ are randomly changed within ±1°, Δγ increases by 0.5° each time, and a random value of ±0.5° is introduced.

为进行区别,本实施例设定三种不同工况如表1;以工况1为例,初始状态时转体桥梁局部坐标系原点在相机坐标系下的坐标为(57.54m,9.97m,96.45m),相对于相机坐标系的空间姿态为α=0.58°,β=-0.40°,γ=0.25°。随机给定转体桥梁相对于初始状态的相对旋转角为Δα=-0.0162°,Δβ=-0.0017°,Δγ=0.4366°,根据设定工况组,基于CAD仿真软件得到正交三维光标射线投影的方向角和汇交点坐标。基于步骤S3-S5,计算得到相对旋转矩阵ΔR0k,并从中提取得到旋转欧拉角计算值,将计算值与实际设计值进行比对分析误差。不同工况下相对旋转角计算值如表1。For distinction, this embodiment sets three different working conditions as shown in Table 1; taking working condition 1 as an example, in the initial state, the coordinates of the origin of the local coordinate system of the rotating bridge in the camera coordinate system are (57.54m, 9.97m, 96.45m), and the spatial posture relative to the camera coordinate system is α=0.58°, β=-0.40°, γ=0.25°. The relative rotation angle of the rotating bridge relative to the initial state is randomly given as Δα=-0.0162°, Δβ=-0.0017°, Δγ=0.4366°. According to the set working condition group, the direction angle and intersection point coordinates of the orthogonal three-dimensional cursor ray projection are obtained based on the CAD simulation software. Based on steps S3-S5, the relative rotation matrix ΔR 0k is calculated, and the calculated value of the rotation Euler angle is extracted from it. The calculated value is compared with the actual design value to analyze the error. The calculated values of the relative rotation angle under different working conditions are shown in Table 1.

表1相机坐标系下桥梁转体空间姿态Table 1 Spatial posture of bridge rotation in camera coordinate system

由表1可知,在不同工况下,相对旋转欧拉角的计算值均与设计值相符,计算得到两者误差在10-15以内,转体桥梁转动监测满足精度要求。表1中旋转角设计值和计算值实际上有多位小数,因文本限制未提供全部数据,例如,对于工况1,第一次旋转时绕X轴的旋转角α设计值为-0.0162(rad)时计算值与设计值的误差为3.6705*10-15。基于已获取的三维正交光标光束在初始姿态及转体过程中任意姿态的投影信息,解算从初始姿态变换至任意某姿态的相对旋转欧拉角的测试时间约为0.15s,满足转体桥梁空间位置实时监测要求。As shown in Table 1, under different working conditions, the calculated values of the relative rotation Euler angles are consistent with the design values, and the calculated errors are within 10-15 , and the rotation monitoring of the rotating bridge meets the accuracy requirements. The design and calculated values of the rotation angles in Table 1 actually have multiple decimal places, and all data are not provided due to text limitations. For example, for working condition 1, when the design value of the rotation angle α around the X-axis during the first rotation is -0.0162 (rad), the error between the calculated value and the design value is 3.6705* 10-15 . Based on the acquired projection information of the three-dimensional orthogonal cursor beam in the initial posture and any posture during the rotation process, the test time for solving the relative rotation Euler angle from the initial posture to any posture is about 0.15s, which meets the real-time monitoring requirements of the spatial position of the rotating bridge.

本专利提出的监测方法除了应用于转体桥梁空间转动监测,还能广泛应用于各类监测目标物体空间姿态变换的技术领域,例如通过监测相机自身的旋转角、俯仰角及偏航角,推断相机的姿态变换,实现单目视觉里程计功能、该监测方法也可推广应用于飞行器姿态估计技术领域、虚拟现实领域的姿态跟踪技术等,具有巨大的应用潜力。In addition to being used for spatial rotation monitoring of rotating bridges, the monitoring method proposed in this patent can also be widely used in various technical fields for monitoring the spatial posture transformation of target objects. For example, by monitoring the camera's own rotation angle, pitch angle and yaw angle, the camera's posture transformation can be inferred to realize the monocular visual odometer function. This monitoring method can also be extended to the field of aircraft posture estimation technology, posture tracking technology in the field of virtual reality, etc., and has huge application potential.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

1.一种基于三维正交光标的桥梁转体监测方法,其特征在于:包括如下步骤:1. A bridge rotation monitoring method based on three-dimensional orthogonal cursors, characterized in that it includes the following steps: S1,在转体桥梁上布设至少一个能发射光束的三维正交光标,在桥梁转体范围外布设图像采集装置;分别在桥梁、图像采集装置上建立桥梁局部坐标系、相机坐标系,同时以三维正交光标光束交点为原点,三条光束方向为坐标轴建立光标坐标系;S1, deploy at least one three-dimensional orthogonal cursor capable of emitting light beams on the rotating bridge, and deploy an image acquisition device outside the rotating range of the bridge; establish a bridge local coordinate system and a camera coordinate system on the bridge and the image acquisition device respectively, and establish a cursor coordinate system with the intersection of the three-dimensional orthogonal cursor light beams as the origin and the three light beam directions as the coordinate axes; S2,在桥梁转体施工前,图像采集装置拍摄并采集包含三维正交光标光束射线的图像作为初始姿态图像,从初始姿态图像中提取初始姿态时三维正交光标光束投影在成像平面的方向角和交点坐标;S2, before the bridge rotation construction, the image acquisition device captures and acquires an image containing three-dimensional orthogonal cursor beam rays as an initial posture image, and extracts the direction angle and intersection coordinates of the three-dimensional orthogonal cursor beam projected on the imaging plane at the initial posture from the initial posture image; S3,采用刚体空间变换原理建立光标坐标系、相机坐标系的变换关系,根据成像原理建立三维正交光标光束与光束投影的映射关系,根据所述变换关系、映射关系以及S2所得初始姿态时光束投影的方向角和交点坐标,利用变分原理和数值迭代法求解得到三维正交光标的初始姿态,根据三维正交光标初始姿态以及光标坐标系与桥梁局部坐标系的转换关系,得到初始姿态时相机坐标系与桥梁局部坐标系的变换关系,进而确定桥梁转体的初始姿态;S3, using the rigid body space transformation principle to establish the transformation relationship between the cursor coordinate system and the camera coordinate system, and establishing the mapping relationship between the three-dimensional orthogonal cursor light beam and the light beam projection according to the imaging principle. According to the transformation relationship, the mapping relationship and the direction angle and the intersection coordinates of the light beam projection at the initial posture obtained in S2, the initial posture of the three-dimensional orthogonal cursor is solved by using the variational principle and the numerical iteration method. According to the initial posture of the three-dimensional orthogonal cursor and the transformation relationship between the cursor coordinate system and the local coordinate system of the bridge, the transformation relationship between the camera coordinate system and the local coordinate system of the bridge at the initial posture is obtained, and then the initial posture of the bridge rotation is determined; S4,桥梁转体施工过程中,图像采集装置连续采集桥梁转体不同时刻的姿态图像,从所得不同时刻姿态图像中提取不同时刻三维正交光标光束投影在成像平面的方向角和交点坐标,采用变分原理和数值迭代法求解得到三维正交光标不同时刻空间姿态,得到桥梁转体过程中不同时刻相机坐标系与桥梁局部坐标系的变换关系,进而确定桥梁转体不同时刻的空间姿态;S4, during the bridge rotation construction process, the image acquisition device continuously acquires posture images of the bridge rotation at different times, extracts the direction angles and intersection coordinates of the three-dimensional orthogonal cursor beams projected on the imaging plane at different times from the posture images obtained at different times, and uses the variational principle and numerical iteration method to solve the spatial postures of the three-dimensional orthogonal cursor at different times, and obtains the transformation relationship between the camera coordinate system and the local coordinate system of the bridge at different times during the bridge rotation process, thereby determining the spatial postures of the bridge rotation at different times; S5,根据S3-S4所得桥梁转体初始姿态、转体过程中不同时刻的空间姿态,求得桥梁转体过程中不同时刻姿态与初始姿态的相对旋转矩阵;设定桥梁绕自身局部坐标系发生相对旋转的旋转次序,根据旋转次序从所述相对旋转矩阵中提取得到桥梁转体不同时刻的相对旋转欧拉角。S5, based on the initial posture of the bridge rotation obtained in S3-S4 and the spatial posture at different times during the rotation process, obtain the relative rotation matrix of the posture of the bridge at different times during the rotation process and the initial posture; set the rotation order of the bridge relative rotation around its own local coordinate system, and extract the relative rotation Euler angles of the bridge rotation at different times from the relative rotation matrix according to the rotation order. 2.如权利要求1所述的基于三维正交光标的桥梁转体监测方法,其特征在于:步骤S1中,三维正交光标由三个激光发射器相互垂直连接组成;所述三个激光发射器分别发射不同颜色的激光;2. The bridge rotation monitoring method based on a three-dimensional orthogonal cursor according to claim 1 is characterized in that: in step S1, the three-dimensional orthogonal cursor is composed of three laser emitters connected vertically to each other; the three laser emitters respectively emit lasers of different colors; 图像采集装置的布设位置与三维正交光标的布设位置存在高差;在桥梁转体施工全过程中保持图像采集装置空间位姿不变,使三维正交光标保持在图像采集装置的取景范围内。There is a height difference between the layout position of the image acquisition device and the layout position of the three-dimensional orthogonal cursor; during the entire process of bridge rotation construction, the spatial position of the image acquisition device is kept unchanged, so that the three-dimensional orthogonal cursor is kept within the field of view of the image acquisition device. 3.如权利要求1所述的基于三维正交光标的桥梁转体监测方法,其特征在于:正交三维光标光束投影在成像平面的方向角和交点坐标按下述方法得到:3. The bridge rotation monitoring method based on three-dimensional orthogonal cursor according to claim 1 is characterized in that the direction angle and intersection coordinates of the orthogonal three-dimensional cursor beam projected on the imaging plane are obtained by the following method: 确定三种颜色光束的RGB阈值范围,根据对应的RGB阈值范围从姿态图像中提取对应三种颜色光束的像素点;采用随机抽样一致算法按线性函数对提取的三组像素点分别进行迭代拟合,得到对应光束投影拟合直线的若干解析表达式,当三条拟合直线的两两交点坐标的误差小于等于0.1像素时得到光束投影拟合直线满足精度要求的解析表达式,求得光束投影在成像平面的方向角,以拟合直线两两交点坐标的均值作为光束投影的交点坐标。Determine the RGB threshold range of the three color light beams, and extract the pixel points corresponding to the three color light beams from the posture image according to the corresponding RGB threshold range; use the random sampling consensus algorithm to iteratively fit the three groups of pixel points extracted according to the linear function, and obtain several analytical expressions of the corresponding light beam projection fitting lines. When the error of the coordinates of the intersection points of the three fitting lines is less than or equal to 0.1 pixel, the analytical expression of the light beam projection fitting line that meets the accuracy requirement is obtained, and the direction angle of the light beam projection on the imaging plane is obtained, and the average value of the coordinates of the intersection points of the fitting lines is taken as the intersection coordinates of the light beam projection. 4.如权利要求1所述的基于三维正交光标的桥梁转体监测方法,其特征在于:步骤S3中,根据成像原理,光束与光束投影的映射关系按下述方法得到:4. The bridge rotation monitoring method based on three-dimensional orthogonal cursor according to claim 1 is characterized in that: in step S3, according to the imaging principle, the mapping relationship between the light beam and the light beam projection is obtained by the following method: 将三维正交光标向相机坐标系中心进行中心投影,假定三维正交光标原点OA在相机坐标系中的坐标为(X0,Y0,Z0),矢径t0=(X0,Y0,Z0),则三维正交光标原点投影至成像平面的图像坐标(x0,y0)按式(3.1)表示为:Project the 3D orthogonal cursor to the center of the camera coordinate system. Assuming that the coordinates of the 3D orthogonal cursor origin OA in the camera coordinate system are (X 0 , Y 0 , Z 0 ), and the radius vector t 0 = (X 0 , Y 0 , Z 0 ), the image coordinates (x 0 , y 0 ) of the 3D orthogonal cursor origin projected to the imaging plane are expressed as follows according to formula (3.1): 式中,f为相机焦距;Where f is the focal length of the camera; 根据空间解析几何原理,矢径t0与光标坐标轴ηi所确定的空间平面的法向量ni按式(3.2)求得:According to the principles of spatial analytic geometry, the normal vector n i of the spatial plane determined by the radius vector t 0 and the cursor coordinate axis η i is obtained according to formula (3.2): 式中,r1i、r2i、r3i分别为相机坐标系变换至光标坐标系的旋转变换矩阵中第1、2、3行第i列元素;Where r 1i , r 2i , and r 3i are the elements of the 1st, 2nd, and 3rd rows and the i-th column in the rotation transformation matrix from the camera coordinate system to the cursor coordinate system; 得到矢径t0与光标坐标轴ηi所在空间平面的解析式如式(3.3):The analytical expression of the space plane where the radius vector t0 and the cursor coordinate axis ηi are located is as follows: ni1x+ni2y+ni3z=0 (3.3)n i1 x+n i2 y+n i3 z=0 (3.3) 式中,ni1、ni2、ni3分别为法向量ni中的第1、2、3个元素;Where n i1 , n i2 , and n i3 are the first, second, and third elements of the normal vector n i , respectively; 通过将矢径t0与光标坐标轴ηi所确定空间平面的解析式与成像平面的解析式联立可求解得到成像平面上光束投影li的解析表达式如(3.4):By combining the analytical expression of the space plane determined by the radius vector t0 and the cursor coordinate axis ηi with the analytical expression of the imaging plane, the analytical expression of the beam projection l i on the imaging plane can be obtained as (3.4): 式中,(x,y)为成像平面坐标;Where (x, y) is the coordinate of the imaging plane; 根据光束投影li的解析表达式,求得光束投影li的方向角,得到三维正交光标光束与光束投影的映射关系如式(3.5):According to the analytical expression of the beam projection l i , the direction angle of the beam projection l i is obtained, and the mapping relationship between the three-dimensional orthogonal cursor beam and the beam projection is obtained as shown in formula (3.5): θi=atan2(fr2i-y0r3i,fr1i-x0r3i) (3.5)θ i = atan2(fr 2i -y 0 r 3i ,fr 1i -x 0 r 3i ) (3.5) 式中,θi为光束投影li的方向角;atan2(·)为四象限反正切函数。Where θi is the direction angle of the light beam projection li; atan2(·) is the four-quadrant inverse tangent function. 5.如权利要求1所述的基于三维正交光标的桥梁转体监测方法,其特征在于:步骤S3中,将三维正交光标光束与光束投影的映射关系以及光标坐标系与相机坐标系的变换关系联立方程,根据S2所得初始姿态时光束投影的方向角和交点坐标,采用数值迭代法对联立方程进行求解,得到初始姿态时三维正交光标在相机坐标系下对应的旋转欧拉角α、β、γ;5. The bridge rotation monitoring method based on the three-dimensional orthogonal cursor as claimed in claim 1 is characterized in that: in step S3, the mapping relationship between the three-dimensional orthogonal cursor light beam and the light beam projection and the transformation relationship between the cursor coordinate system and the camera coordinate system are solved by the simultaneous equations, and the direction angle and intersection coordinates of the light beam projection at the initial posture obtained in step S2 are used to solve the simultaneous equations by using the numerical iteration method to obtain the rotation Euler angles α, β, γ corresponding to the three-dimensional orthogonal cursor in the camera coordinate system at the initial posture; 根据求解的旋转欧拉角α、β、γ,得到初始姿态时相机坐标系与光标坐标系的变换关系如式(3.6):According to the solved rotation Euler angles α, β, γ, the transformation relationship between the camera coordinate system and the cursor coordinate system at the initial posture is obtained as shown in formula (3.6): 式中,Rc0为初始姿态时相机坐标系变换至光标坐标系的旋转矩阵;为初始姿态时光标坐标系坐标轴方向向量,i=1、2、3;E为相机坐标系坐标轴单位矩阵,构成该单位矩阵的行向量表示相机坐标系坐标轴的方向向量。Where R c0 is the rotation matrix from the camera coordinate system to the cursor coordinate system at the initial posture; is the direction vector of the coordinate axis of the cursor coordinate system at the initial posture, i=1, 2, 3; E is the unit matrix of the coordinate axis of the camera coordinate system, and the row vectors constituting the unit matrix represent the direction vector of the coordinate axis of the camera coordinate system. 6.如权利要求1所述的基于三维正交光标的桥梁转体监测方法,其特征在于:步骤S3中,根据相机坐标系与光标坐标系的变换关系以及光标坐标系与桥梁局部坐标系的转换关系如式(3.7),按式(3.8)得到初始姿态时相机坐标系与桥梁局部坐标系的变换关系,根据该变换关系确定桥梁转体的初始姿态:6. The bridge rotation monitoring method based on three-dimensional orthogonal cursor as described in claim 1 is characterized in that: in step S3, according to the transformation relationship between the camera coordinate system and the cursor coordinate system and the transformation relationship between the cursor coordinate system and the local coordinate system of the bridge as shown in formula (3.7), the transformation relationship between the camera coordinate system and the local coordinate system of the bridge at the initial posture is obtained according to formula (3.8), and the initial posture of the bridge rotation is determined according to the transformation relationship: 123]T=R0123]T (3.7)123 ] T =R 0123 ] T (3.7) 式中,为桥梁局部坐标系坐标轴方向向量,i=1、2、3;R0为桥梁局部坐标轴变换至光标坐标系的旋转变换矩阵;R0 -1为R0的逆矩阵;η1、η2、η3分别为任意时刻光标坐标轴方向向量;ξ1、ξ2、ξ3分别为任意时刻桥梁局部坐标系坐标轴方向向量;R0 -1Rc0为相机坐标系变换至桥梁局部坐标系的旋转变换矩阵;E为相机坐标系坐标轴单位矩阵,构成该单位矩阵的行向量表示相机坐标系坐标轴的方向向量。In the formula, is the direction vector of the coordinate axis of the local coordinate system of the bridge, i=1, 2, 3; R0 is the rotation transformation matrix of the local coordinate axis of the bridge to the cursor coordinate system; R0-1 is the inverse matrix of R0 ; η1 , η2 , η3 are the direction vectors of the cursor coordinate axis at any time; ξ1 , ξ2 , ξ3 are the direction vectors of the coordinate axis of the local coordinate system of the bridge at any time; R0-1Rc0 is the rotation transformation matrix of the camera coordinate system to the local coordinate system of the bridge; E is the unit matrix of the camera coordinate system, and the row vectors constituting the unit matrix represent the direction vectors of the coordinate axes of the camera coordinate system. 7.如权利要求1所述的基于三维正交光标的桥梁转体监测方法,其特征在于:步骤S4中,桥梁转体过程中不同时刻相机坐标系与桥梁局部坐标系的变换关系按式(4.1)得到,根据该变换关系确定桥梁转体过程中不同时刻的空间姿态:7. The bridge rotation monitoring method based on three-dimensional orthogonal cursor as claimed in claim 1 is characterized in that: in step S4, the transformation relationship between the camera coordinate system and the bridge local coordinate system at different times during the bridge rotation process is obtained according to formula (4.1), and the spatial posture at different times during the bridge rotation process is determined according to the transformation relationship: 式中,为第k个拍摄时刻时桥梁局部坐标系坐标轴方向向量,i=1、2、3,k=1、2、3...;R0为桥梁局部坐标轴变换至光标坐标系的旋转变换矩阵;R0 -1为R0的逆矩阵;Rck为第k个拍摄时刻时相机坐标系变换至光标坐标系的旋转矩阵;R0 -1Rck表示第k个拍摄时刻时相机坐标系变换至桥梁局部坐标系的旋转变换矩阵;E为相机坐标系坐标轴单位矩阵,构成该单位矩阵的行向量表示相机坐标系坐标轴的方向向量。In the formula, is the direction vector of the coordinate axis of the local coordinate system of the bridge at the kth shooting moment, i=1, 2, 3 , k=1, 2, 3...; R0 is the rotation transformation matrix of the local coordinate axis of the bridge to the cursor coordinate system; R0-1 is the inverse matrix of R0 ; Rck is the rotation matrix of the camera coordinate system to the cursor coordinate system at the kth shooting moment; R0-1 Rck represents the rotation transformation matrix of the camera coordinate system to the local coordinate system of the bridge at the kth shooting moment; E is the unit matrix of the camera coordinate system, and the row vectors constituting the unit matrix represent the direction vector of the coordinate axis of the camera coordinate system. 8.如权利要求1所述的基于三维正交光标的桥梁转体监测方法,其特征在于:步骤S5中,根据S3-S4所得桥梁转体的初始姿态、转体过程中不同时刻空间姿态,在桥梁转体过程中,不同时刻姿态与初始姿态之间,桥梁局部坐标系的相对旋转矩阵按式(5.1)得到:8. The bridge rotation monitoring method based on three-dimensional orthogonal cursor as claimed in claim 1 is characterized in that: in step S5, according to the initial posture of the bridge rotation obtained in S3-S4 and the spatial posture at different times during the rotation process, during the bridge rotation process, the relative rotation matrix of the bridge local coordinate system between the posture at different times and the initial posture is obtained according to formula (5.1): ΔR0k=R0 -1RckR0Rck -1 (5.1)ΔR 0k =R 0 -1 R ck R 0 R ck -1 (5.1) 式中,R0为桥梁局部坐标轴变换至光标坐标系的旋转变换矩阵;R0 -1为R0的逆矩阵;Rck为第k个拍摄时刻时相机坐标系变换至光标坐标系的旋转矩阵,k=1、2、3..;ΔR0k为转体桥梁局部坐标系从初始姿态变换到第k个拍摄时刻对应空间姿态的相对旋转矩阵。Wherein, R 0 is the rotation transformation matrix of the local coordinate axis of the bridge to the cursor coordinate system; R 0 -1 is the inverse matrix of R 0 ; R ck is the rotation matrix of the camera coordinate system to the cursor coordinate system at the kth shooting moment, k = 1, 2, 3, etc.; ΔR 0k is the relative rotation matrix of the local coordinate system of the rotating bridge from the initial posture to the spatial posture corresponding to the kth shooting moment. 9.如权利要求1所述的基于三维正交光标的桥梁转体监测方法,其特征在于:步骤S5中,设定转体桥梁绕桥梁局部坐标系发生相对旋转的旋转次序为绕Z-Y-X轴,当从相机坐标系变换至光标坐标系的旋转次序为绕X-Y-Z轴时,从相对旋转矩阵中提取出相对旋转欧拉角Δα、Δβ、Δγ如式(5.2):9. The bridge rotation monitoring method based on three-dimensional orthogonal cursor as claimed in claim 1 is characterized in that: in step S5, the rotation order of the rotating bridge around the local coordinate system of the bridge is set to be around the Z-Y-X axis, and when the rotation order from the camera coordinate system to the cursor coordinate system is around the X-Y-Z axis, the relative rotation Euler angles Δα, Δβ, Δγ are extracted from the relative rotation matrix as shown in formula (5.2): 式中,Δα、Δβ、Δγ分别为转体桥梁绕桥梁局部坐标系X、Y、Z轴转动的欧拉角;smn为相对旋转矩阵中第m行第n列的元素,m=1,2,3;n=1,2,3。Where Δα, Δβ, and Δγ are the Euler angles of the rotating bridge around the X, Y, and Z axes of the local coordinate system of the bridge, respectively; s mn is the element in the mth row and nth column of the relative rotation matrix, m = 1, 2, 3; n = 1, 2, 3. 10.如权利要求1-9任一项所述的基于三维正交光标的桥梁转体监测方法的监测系统,其特征在于:包括:10. The monitoring system of the bridge rotation monitoring method based on three-dimensional orthogonal cursor according to any one of claims 1 to 9, characterized in that it comprises: 光标模块,包括通过底座固定安装在桥梁上的三维正交光标,三维正交光标由三个相互垂直连接且发射不同颜色光束的激光发射器构成;A cursor module includes a three-dimensional orthogonal cursor fixedly installed on the bridge through a base, wherein the three-dimensional orthogonal cursor is composed of three laser transmitters that are vertically connected to each other and emit light beams of different colors; 图像采集模块,利用图像采集装置连续拍摄并采集安装在转体桥梁上的三维正交光标的姿态图像,姿态图像包括初始姿态图像和转体过程中不同时刻姿态图像;An image acquisition module, which uses an image acquisition device to continuously shoot and acquire posture images of a three-dimensional orthogonal cursor installed on the rotating bridge, wherein the posture images include an initial posture image and posture images at different times during the rotation process; 图像处理模块,从图像采集模块拍摄的所有姿态图像中提取得到三维正交光标光束投影对应的方向角和交点坐标;An image processing module extracts the direction angle and intersection coordinates corresponding to the projection of the three-dimensional orthogonal cursor beam from all the posture images taken by the image acquisition module; 数据处理模块,根据图像处理模块得到的光束投影的方向角和交点坐标,计算得到桥梁转体不同时刻姿态相对于初始姿态的相对旋转欧拉角;The data processing module calculates the relative rotation Euler angles of the bridge rotation posture at different times relative to the initial posture according to the direction angle and intersection coordinates of the light beam projection obtained by the image processing module; 数据显示模块,显示转体桥梁不同时刻姿态的相对旋转欧拉角以及目标旋转欧拉角。The data display module displays the relative rotation Euler angles and target rotation Euler angles of the rotating bridge at different times.
CN202410365220.8A 2024-03-28 2024-03-28 A bridge rotation monitoring method and system based on three-dimensional orthogonal cursor Pending CN118258377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410365220.8A CN118258377A (en) 2024-03-28 2024-03-28 A bridge rotation monitoring method and system based on three-dimensional orthogonal cursor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410365220.8A CN118258377A (en) 2024-03-28 2024-03-28 A bridge rotation monitoring method and system based on three-dimensional orthogonal cursor

Publications (1)

Publication Number Publication Date
CN118258377A true CN118258377A (en) 2024-06-28

Family

ID=91604859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410365220.8A Pending CN118258377A (en) 2024-03-28 2024-03-28 A bridge rotation monitoring method and system based on three-dimensional orthogonal cursor

Country Status (1)

Country Link
CN (1) CN118258377A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118968414A (en) * 2024-08-02 2024-11-15 重庆交通大学 A monitoring method for arch bridge cable car based on visual geometry
CN119984240A (en) * 2025-02-12 2025-05-13 四川路桥桥梁工程有限责任公司 A method, device and medium for intelligent monitoring of the posture of a rotating bridge
CN120160537A (en) * 2025-05-19 2025-06-17 深圳市中图仪器股份有限公司 Fully automatic measurement method of image measuring instrument based on spatial three-dimensional CAD model
CN120947498A (en) * 2025-10-17 2025-11-14 中交综合规划设计院有限公司 Real-time detection method for displacement of steel box girder during jacking based on image recognition

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118968414A (en) * 2024-08-02 2024-11-15 重庆交通大学 A monitoring method for arch bridge cable car based on visual geometry
CN119984240A (en) * 2025-02-12 2025-05-13 四川路桥桥梁工程有限责任公司 A method, device and medium for intelligent monitoring of the posture of a rotating bridge
CN119984240B (en) * 2025-02-12 2025-08-01 四川路桥桥梁工程有限责任公司 Intelligent monitoring method, equipment and medium for swivel bridge attitude
CN120160537A (en) * 2025-05-19 2025-06-17 深圳市中图仪器股份有限公司 Fully automatic measurement method of image measuring instrument based on spatial three-dimensional CAD model
CN120947498A (en) * 2025-10-17 2025-11-14 中交综合规划设计院有限公司 Real-time detection method for displacement of steel box girder during jacking based on image recognition

Similar Documents

Publication Publication Date Title
CN104330074B (en) Intelligent surveying and mapping platform and realizing method thereof
CN111679291B (en) Target positioning and configuration method of inspection robot based on 3D laser radar
CN118258377A (en) A bridge rotation monitoring method and system based on three-dimensional orthogonal cursor
CN108154550B (en) RGBD camera-based real-time three-dimensional face reconstruction method
CN102103747B (en) Method for calibrating external parameters of monitoring camera by adopting reference height
CN101630418B (en) Integrated method for measurement and reconstruction of three-dimensional model and system thereof
CN102927908B (en) Robot eye-on-hand system structured light plane parameter calibration device and method
CN104200086B (en) Wide-baseline visible light camera pose estimation method
CN119180908A (en) Gaussian splatter-based laser enhanced visual three-dimensional reconstruction method and system
CN101419055A (en) Space target position and pose measuring device and method based on vision
CN104463969B (en) A kind of method for building up of the model of geographical photo to aviation tilt
CN114841944B (en) Tailing dam surface deformation inspection method based on rail-mounted robot
CN103530880A (en) Camera calibration method based on projected Gaussian grid pattern
Zhou et al. A measurement system based on internal cooperation of cameras in binocular vision
CN102829769B (en) Method for measuring container position and state on basis of structured light visual sensor
CN106971408A (en) A kind of camera marking method based on space-time conversion thought
Kim et al. As-is geometric data collection and 3D visualization through the collaboration between UAV and UGV
CN115727854B (en) VSLAM positioning method based on BIM structure information
CN111192321A (en) Three-dimensional positioning method and device for target object
CN105574812A (en) Multi-angle three-dimensional data registration method and device
CN115187612A (en) Plane area measuring method, device and system based on machine vision
Wei et al. Fast Multi-View 3D reconstruction of seedlings based on automatic viewpoint planning
CN113487726B (en) Motion capture system and method
CN103033145B (en) For identifying the method and system of the shape of multiple object
Zhaoyi et al. Optimization design of low-carbon building thermal energy based on optical sensing and virtual reality image scene reconstruction

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