[go: up one dir, main page]

CN111932676B - Railway track gauge rapid measurement device and method - Google Patents

Railway track gauge rapid measurement device and method Download PDF

Info

Publication number
CN111932676B
CN111932676B CN202010859950.5A CN202010859950A CN111932676B CN 111932676 B CN111932676 B CN 111932676B CN 202010859950 A CN202010859950 A CN 202010859950A CN 111932676 B CN111932676 B CN 111932676B
Authority
CN
China
Prior art keywords
point cloud
point
template
cloud
rail
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010859950.5A
Other languages
Chinese (zh)
Other versions
CN111932676A (en
Inventor
武剑洁
孙峻
彭丽梅
盛威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN202010859950.5A priority Critical patent/CN111932676B/en
Publication of CN111932676A publication Critical patent/CN111932676A/en
Application granted granted Critical
Publication of CN111932676B publication Critical patent/CN111932676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • G06T7/33Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • G06T2207/10012Stereo images

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses a railway track gauge rapid measurement device and a railway track gauge rapid measurement method, wherein an aircraft is used as a carrier, a measurement device is arranged at the bottom of the aircraft, the aircraft flies in a space above a railway track and along the track, the measurement device collects original steel rail image data, a pre-built steel rail BIM model point cloud is used as a template, the inner side surface of the template point cloud is extracted and is used as a reference surface on the basis of point cloud matching facing the template, and therefore the inner side surface of the actually measured steel rail point cloud is extracted, and finally the rapid measurement of the track gauge is realized. The invention has the advantages of less resources occupation, short detection time, non-contact measurement and the like.

Description

一种铁路轨距快速测量装置和方法A device and method for rapid measurement of railway track gauge

技术领域Technical field

本发明属于光学检测技术领域,涉及铁路轨道检测技术,具体涉及一种铁路轨距快速测量装置,以及其快速测量方法。The invention belongs to the field of optical detection technology, relates to railway track detection technology, and specifically relates to a rapid measurement device for railway track gauge and a rapid measurement method thereof.

背景技术Background technique

铁路运输已成为当今大众出行的首选交通方式,且在货物运输中承担重要角色,轨道作为铁路运行的基础,针对铁路环境基础设施的快速检测问题不可忽视。轨道轨距的改变会引起列车各种振动,使轮轨作用力发生变化,是轨道方面影响列车运行安全性和平稳性的控制因素,也是轨道结构部件损伤和失效的重要原因,随着高速铁路运营速度的提升和运营规模的不断扩大,定期进行轨距检测,及时掌握轨距状态信息,已成为轨道检测项目中最重要的内容之一。Railway transportation has become the preferred mode of transportation for today's public travel, and plays an important role in cargo transportation. As the track is the basis of railway operation, the issue of rapid detection of railway environmental infrastructure cannot be ignored. Changes in track gauge will cause various vibrations of the train and change the wheel-rail force. It is a controlling factor affecting the safety and stability of train operation on the track. It is also an important cause of damage and failure of track structural components. With the development of high-speed railways, With the improvement of operation speed and the continuous expansion of operation scale, regular track gauge inspection and timely grasp of track gauge status information have become one of the most important contents of the track inspection project.

传统的接触式轨距检测要求铁路检修人员将检测设备(如机械标尺)放置于两股钢轨上,沿铁路走向不断向前推进,若测量的轨距不符合标准要求,则标尺会被卡住,此方法不仅需要耗费大量人力资源,而且标尺的测量精度受温度、气候等外部条件影响,无法保证测量的精确性。Traditional contact gauge detection requires railway maintenance personnel to place detection equipment (such as mechanical rulers) on two rails and continuously advance along the railway direction. If the measured gauge does not meet the standard requirements, the rulers will get stuck. , this method not only requires a lot of human resources, but also the measurement accuracy of the ruler is affected by external conditions such as temperature and climate, so the accuracy of the measurement cannot be guaranteed.

与接触式测量相对的是非接触式测量,即通过在轨道检测车(简称轨检车)或火车车身上搭载物理扫描设备,如相机、声波仪、激光仪等,捕获钢轨轮廓数据从而计算轨距,这类测量方法所使用的数据采集设备不直接接触钢轨。该类方法利用传感器获取钢轨轮廓数据,并用于计算轨距,载体需要在轨道上移动从而获取数据,需要占用轨道资源,存在人员安全隐患,且设备载体与钢轨接触容易导致钢轨的二次磨损。The opposite of contact measurement is non-contact measurement, that is, by mounting physical scanning equipment, such as cameras, sonic meters, lasers, etc., on the track inspection vehicle (referred to as the track inspection vehicle) or the train body, the rail profile data is captured to calculate the track gauge. , the data acquisition equipment used in this type of measurement method does not directly contact the rail. This type of method uses sensors to obtain rail profile data and use it to calculate the track gauge. The carrier needs to move on the track to obtain the data, which requires occupying track resources and poses personnel safety risks. Moreover, the contact between the equipment carrier and the rail can easily lead to secondary wear of the rail.

无人机通过搭载相机设备,可在完全不接触钢轨、不占用轨道资源的情况下采集数据。Arun Kumar Singh等人在“Vision based rail track extraction and monitoringthrough drone imagery”中,利用无人机获取铁路场景图像,再根据HSV颜色将轨道与周围环境分离,运用Canny边缘检测和最近邻算法提取平行钢轨并用于计算轨距,证明了使用飞行器进行轨道检测的可行性和高效性,但该法未考虑到钢轨的三维工字结构,仅仅针对二维平面视图进行研究,导致无法分辨提取的边缘线是属于轨头内侧工作面,还是属于钢轨轨底,对测距精度带来不利影响,进而影响测距设备的实用性。By carrying camera equipment, drones can collect data without touching the rails or taking up track resources. In "Vision based rail track extraction and monitoring through drone imagery", Arun Kumar Singh and others used drones to obtain images of railway scenes, then separated the tracks from the surrounding environment based on HSV color, and used Canny edge detection and nearest neighbor algorithms to extract parallel rails It is also used to calculate the track gauge, which proves the feasibility and efficiency of using aircraft for track detection. However, this method does not take into account the three-dimensional I-shaped structure of the rail, and only studies the two-dimensional plan view, resulting in the inability to distinguish the extracted edge line. Whether it belongs to the inner working surface of the rail head or to the bottom of the rail rail will have a negative impact on the distance measurement accuracy, which in turn affects the practicality of the distance measurement equipment.

发明内容Contents of the invention

本发明的目的之一是提出一种能无接触快速检测、不占用轨道资源、成本低的铁路轨道轨距测量装置,以满足铁路建设和维护部门对钢轨轨距高效率测量的需求。One of the purposes of the present invention is to propose a railway track gauge measuring device that can detect quickly without contact, does not occupy track resources, and is low in cost, so as to meet the needs of railway construction and maintenance departments for high-efficiency measurement of rail gauge.

本发明解决其技术问题所采用的技术方案是:一种铁路轨距快速测量装置,包括安装在飞行器底部的三维相机以及分别与三维相机连接的主控模块和数据采集模块,所述的数据采集模块上连接有数据存储模块,数据存储模块上连接有数据处理模块,所述的数据存储模块和数据处理模块分别与主控模块连接,主控模块控制三维相机对铁路轨道拍照成像,数据采集模块对图像采样后送给数据存储模块,主控模块控制数据处理模块从数据存储模块中读取数据进行解析、处理再送给数据存储模块保存,所述的主控模块上还连接有电源。The technical solution adopted by the present invention to solve the technical problem is: a railway track gauge rapid measurement device, which includes a three-dimensional camera installed at the bottom of the aircraft and a main control module and a data acquisition module respectively connected to the three-dimensional camera. The data acquisition module The module is connected to a data storage module, and the data storage module is connected to a data processing module. The data storage module and the data processing module are respectively connected to the main control module. The main control module controls the three-dimensional camera to take pictures and images of the railway track. The data acquisition module The image is sampled and sent to the data storage module. The main control module controls the data processing module to read the data from the data storage module, analyze and process the data, and then send it to the data storage module for storage. The main control module is also connected to a power supply.

本发明的目的之二是提出一种铁路轨道轨距测量方法,包括如下步骤:步骤1,数据预处理The second object of the present invention is to propose a railway track gauge measurement method, which includes the following steps: Step 1, data preprocessing

步骤11,基于钢轨的轨头、轨腰、轨底、轨距以及轨头踏面下方内侧工作面的信息根据国家标准关于钢轨的设计要求创建钢轨的标准BIM模型,并离散化为三维点云,作为匹配用模板点云;Step 11: Create a standard BIM model of the rail based on the information on the rail head, rail waist, rail bottom, rail gauge, and the inner working surface under the rail head tread according to the national standards for rail design requirements, and discretize it into a three-dimensional point cloud. As a template point cloud for matching;

步骤12,同时基于飞行器采集的实测图像构建实测钢轨点云,接着将实测钢轨点云从场景点云中分割出来,得到实测点云;Step 12: At the same time, the measured rail point cloud is constructed based on the measured images collected by the aircraft, and then the measured rail point cloud is segmented from the scene point cloud to obtain the measured point cloud;

步骤2,面向模板的点云匹配:以标准BIM模型的点云为模板,利用面向模板的点云配准算法,分两步将模板点云向实测钢轨点云执行配准,使两点云达到最大程度的重合;Step 2, template-oriented point cloud matching: Using the point cloud of the standard BIM model as a template, using the template-oriented point cloud registration algorithm, the template point cloud is registered to the measured rail point cloud in two steps, so that the two point clouds Achieve maximum overlap;

步骤21,进行基于SAC_IA(采样一致性初始配准)算法的点云初匹配;Step 21: Perform initial point cloud matching based on the SAC_IA (Sampling Consistency Initial Alignment) algorithm;

步骤22,判断距离误差和函数是否达到最小,如果否则重复步骤21,如果是则停止当前迭代;Step 22, determine whether the distance error sum function reaches the minimum, if not, repeat step 21, if so, stop the current iteration;

步骤23,以SAC_IA算法得到的模板点云和实测点云进行基于ICP(IterativeClosest Point,迭代最近点)的精确配准;Step 23: Use the template point cloud and the measured point cloud obtained by the SAC_IA algorithm to perform precise registration based on ICP (IterativeClosest Point);

步骤24,判断距离误差是否小于阈值或是否达到最大迭代次数;Step 24, determine whether the distance error is less than the threshold or whether the maximum number of iterations has been reached;

步骤25,如果否则重复步骤23,如果是则模板点云和实测点云达到最大程度的重合,得到配准后的模板点云和实测点云;Step 25, if not, repeat step 23. If so, the template point cloud and the measured point cloud will overlap to the greatest extent, and the registered template point cloud and the measured point cloud will be obtained;

步骤3,基于模板参考面的轨距计算Step 3. Calculation of track gauge based on template reference surface

步骤31,以模板点云中的内侧工作面作为模板参考面,提取模板点云内侧点,计算模板点云参考面;Step 31: Use the inner working surface in the template point cloud as the template reference surface, extract the inner points of the template point cloud, and calculate the template point cloud reference surface;

步骤32,提取实测点云内侧点并拟合得到内侧工作面,以此为基础计算实测点云轨距,然后输出轨距。Step 32: Extract the inner points of the measured point cloud and fit them to obtain the inner working surface. Based on this, calculate the track gauge of the measured point cloud, and then output the track gauge.

所述的一种铁路轨距快速测量方法,其步骤21中是分别计算源点云(即模板点云)和目标点云(即实测点云)的快速点特征直方图(FPFH),获取点集中每个点的特征描述,然后迭代地获取模板点云和实测点云的采样点对,并根据采样点对计算从源点云到目标点云的变换矩阵,最终选取距离误差和最小的变换作为匹配的最终结果。In step 21 of the railway track gauge rapid measurement method, the fast point feature histogram (FPFH) of the source point cloud (i.e., template point cloud) and target point cloud (i.e., measured point cloud) is calculated separately, and the points are obtained Concentrate the feature description of each point, then iteratively obtain the sampling point pairs of the template point cloud and the measured point cloud, and calculate the transformation matrix from the source point cloud to the target point cloud based on the sampling point pair, and finally select the transformation with the smallest distance error as the final result of the match.

进一步,具体的步骤为:Further, the specific steps are:

步骤211,分别计算源点云P和目标点云Q中每一点的法向量以及快速点特征直方图特征;Step 211, calculate the normal vector and fast point feature histogram feature of each point in the source point cloud P and target point cloud Q respectively;

步骤212,在源点云P中自动选取n个采样点pk(k=1,2,…,n),并保证任意两个采样点pki和pkj满足下式:Step 212, automatically select n sampling points p k (k=1,2,...,n) in the source point cloud P, and ensure that any two sampling points p ki and p kj satisfy the following formula:

其中,dmin为指定的点间距离阈值;Among them, d min is the specified distance threshold between points;

步骤213,在目标点云Q中寻找与采样点pk(k=1,2,…,n)具有相似快速点特征直方图特征的对应采样点qk,作为源点云P在目标点云Q中的一一对应点;Step 213: Find the corresponding sampling point q k that has similar fast point feature histogram characteristics to the sampling point p k (k=1,2,...,n) in the target point cloud Q , and use it as the source point cloud P in the target point cloud One-to-one corresponding points in Q;

步骤214,计算采样点pk和对应采样点qk之间的刚体变换矩阵,以及采样点pk经刚体变换后所得点pk′与对应采样点qk的距离差值li,则有li=‖p′k-qk2,其中,pk′(xk′,yk′,zk′)=Rpk(xk,yk,zk)+T,其中R表示旋转矩阵,T表示平移矩阵;Step 214: Calculate the rigid body transformation matrix between the sampling point p k and the corresponding sampling point q k , and the distance difference l i between the point p k ′ obtained after the rigid body transformation of the sampling point p k and the corresponding sampling point q k , then we have l i =‖p′ k -q k2 , where p k ′(x k ′,y k ′,z k ′)=Rp k (x k ,y k ,z k )+T, where R represents Rotation matrix, T represents translation matrix;

步骤215,最终应找到一组最优变换,使得距离误差和函数的值最小,此时的矩阵变换视为最终的配准变换矩阵,其中,Step 215, a set of optimal transformations should finally be found such that the distance error and function has the smallest value, and the matrix transformation at this time is regarded as the final registration transformation matrix, where,

式中ml为给定的距离阈值,li为第i组采样点对变换后的距离差。In the formula, m l is the given distance threshold, l i is the distance difference after transformation of the i-th group of sampling point pairs.

所述的一种铁路轨距快速测量方法,其步骤22是通过迭代地在源点云和目标点云中选择对应关系点对,计算点对之间的最优刚体变换矩阵,直至满足收敛精度要求,即距离误差和最小。所不同的是,为源点云中的每个点寻找对应点时不再按照随机选取的原则,而是选择与该点距离最近的点作为对应点。Step 22 of the described method for rapid measurement of railway track gauge is to iteratively select pairs of corresponding relationship points in the source point cloud and the target point cloud, and calculate the optimal rigid body transformation matrix between the point pairs until the convergence accuracy is met. The requirement is that the distance error sum is minimum. The difference is that when finding the corresponding point for each point in the source point cloud, the principle of random selection is no longer used, but the point closest to the point is selected as the corresponding point.

且基本原则是在源点云的最近邻中确定目标点云的对应点,然后计算点对之间的最优刚体变换矩阵,直至满足收敛精度要求,即距离误差和最小。And the basic principle is to determine the corresponding point of the target point cloud in the nearest neighbor of the source point cloud, and then calculate the optimal rigid body transformation matrix between the point pairs until the convergence accuracy requirements are met, that is, the distance error sum is minimum.

进一步,具体的步骤为:Further, the specific steps are:

步骤221,源点云的一个采样点集为P′,针对P′中每个采样点p′k(k=1,2,…,N),在目标点云Q中寻找其最近对应点qkStep 221: A sampling point set of the source point cloud is P′. For each sampling point p′ k (k=1,2,…,N) in P′, find its nearest corresponding point q in the target point cloud Q. k :

步骤222,针对点集P′和目标点云Q的采样点对集合,计算旋转矩阵R和平移矩阵T,使采样点集的均方误差E(R,T)最小:Step 222: Calculate the rotation matrix R and the translation matrix T for the sampling point pair set of the point set P' and the target point cloud Q, so as to minimize the mean square error E(R,T) of the sampling point set:

步骤223,对点集P′使用当前最佳变换矩阵R和T,得到新的点集P″:Step 223, use the current best transformation matrices R and T for the point set P′ to obtain a new point set P″:

p″k(x″k,y″k,z″k)=Rp′k(x′ky′kz′k)+Tp″ k (x″ k , y″ k , z″ k )=Rp′ k (x′ k y′ k z′ k )+T

其中,p″k表示p′k变换后的点;Among them, p″ k represents the point after p′ k transformation;

步骤224,计算距离误差均值dε和当前迭代次数I,若满足收敛条件,则迭代终止,否则,用点集P″代替源点集P′,重复步骤221继续执行,直至符合收敛条件:Step 224: Calculate the mean distance error d ε and the current iteration number I. If the convergence conditions are met, the iteration is terminated. Otherwise, the point set P″ is used to replace the source point set P′, and step 221 is repeated until the convergence conditions are met:

I>Imax I>I max

式中ε为指定的允许误差,Imax为指定的最大迭代次数。In the formula, ε is the specified allowable error, and I max is the specified maximum number of iterations.

所述的一种铁路轨距快速测量方法,其步骤3是以点云初匹配后模板点云的内侧工作面作为参考平面,在实测点云中搜索并确定与该参考面最相似的拟合平面,以所述的拟合平面代表实测钢轨的内侧面。The described method for rapid measurement of railway track gauge, step 3 is to use the inner working surface of the template point cloud after initial matching of the point cloud as a reference plane, and search and determine the fit most similar to the reference surface in the measured point cloud. Plane, the fitting plane represents the inner side of the measured rail.

所述的一种铁路轨距快速测量方法,其步骤31中的模板点云内侧点提取步骤为:According to the rapid measurement method of railway track gauge, the steps for extracting inner points of the template point cloud in step 31 are:

已知模板点云P由两个平行钢轨模型点云Pl,Pr构成,经与实测点云配准后的点云为源点云P′,其中,Pl,Pr经配准后分别对应Pl′,Pr′;It is known that the template point cloud P consists of two parallel rail model point clouds P l and P r . The point cloud after registration with the measured point cloud is the source point cloud P′, where P l and P r after registration Corresponding to P l ′, P r ′ respectively;

对于源点云P′中任意两不重合的顶点pi′,pj′,i≠j,两点间的距离为:For any two non-overlapping vertices p i ′, p j ′, i≠j in the source point cloud P′, the distance between the two points is:

d(p′i,p′j)=||p′i-p′j||2d(p′ i ,p′ j )=||p′ i -p′ j || 2 ;

对于源点云P′中任意一点pli′,若该点同时也是Pl′中的一点,在Pr′中可以找到一点pj′满足:min d(p′li,p′j)=d0,p′j∈P′r,即左侧钢轨中某一点到右侧钢轨的最短距离等于标准轨距,则称该点是模板点云左侧钢轨的内侧点;For any point p li ′ in the source point cloud P′, if the point is also a point in P l ′, a point p j ′ can be found in P r ′ that satisfies: min d(p′ li ,p′ j )= d 0 ,p′ j ∈P′ r , that is, if the shortest distance from a point on the left rail to the right rail is equal to the standard gauge, then the point is said to be the inner point of the left rail of the template point cloud;

同理,对于源点云P′中任意一点pri′,若该点是Pr′中的一点,在Pl′中可以找到一点pk′满足:min d(pri′,pk′)=d0,pk′∈Pl′称该点是模板点云右侧钢轨的内侧点。In the same way, for any point p ri ′ in the source point cloud P′, if the point is a point in P r ′, a point p k ′ can be found in P l ′ that satisfies: min d(p ri ′,p k ′ )=d 0 ,p k ′∈P l ′ is said to be the inner point of the rail on the right side of the template point cloud.

所述的一种铁路轨道轨距测量方法,其步骤32中的模板点云内侧面拟合步骤为:通过内侧点提取可得到模板点云的内侧点集合:According to the railway track gauge measurement method, the fitting step of the inner side of the template point cloud in step 32 is: through inner point extraction, the inner point set of the template point cloud can be obtained:

Upl={pl1′,pl2′,pl3′,……,plm′},Upr={pr1′,pr2′,pr3′,……,prn′},通过最小二乘平面拟合即可分别获取模板点云的两个内侧平面;U pl ={p l1 ′,p l2 ′,p l3 ′,…,p lm ′}, U pr ={p r1 ′,p r2 ′,p r3 ′,…,p rn ′}, through the minimum Square plane fitting can obtain the two inner planes of the template point cloud respectively;

实测点云内侧面提取方法:经模板点云与实测点云配准后,实测点云的形状和位置与模板点云十分相似。已知模板点云的内侧面,作为参考面,通过在实测点云中搜索并确定与该参考面最相似的拟合平面,即为实测点云的内侧面。Method for extracting the inner side of the measured point cloud: After registering the template point cloud and the measured point cloud, the shape and position of the measured point cloud are very similar to the template point cloud. The inner side of the template point cloud is known as the reference surface. By searching and determining the fitting plane most similar to the reference surface in the measured point cloud, it is the inner side of the measured point cloud.

所述的一种铁路轨道轨距测量方法,其特步骤32中的实测点云轨距计算步骤为:According to the railway track gauge measurement method, the measured point cloud gauge calculation step in step 32 is as follows:

将经内侧面提取后得到的实测点云Q的左、右钢轨内侧点集合Uql,Uqr的平面拟合方程分别为Sql,Sqr,对于空间任意一点q和某一平面S,点q到平面S的距离为D(q,S),则按照下式计算实测点云的轨距dqThe plane fitting equations of the left and right rail inner point sets U ql and U qr of the measured point cloud Q obtained after extracting the inner surface are S ql and S qr respectively. For any point q in the space and a certain plane S, the point The distance between q and plane S is D(q,S), then the track distance d q of the measured point cloud is calculated according to the following formula:

其中,nl,nr分别表示集合Uql和Uqr的规模;至此得到轨道的轨距。Among them, n l and n r represent the scale of the sets U ql and U qr respectively; at this point, the track gauge of the track is obtained.

与现有技术相比,本发明的优点是:采用飞行器作为平台,利用飞行器移动速度快、三维相机视场范围大、成像迅速的优势,在不占用铁路资源的情况下能够实现快速轨距测量;采用无接触方式对钢轨轨距进行测量,不会对传感器和钢轨造成磨损。Compared with the existing technology, the advantage of the present invention is that it uses an aircraft as a platform and takes advantage of the aircraft's fast moving speed, large field of view of the three-dimensional camera, and rapid imaging to achieve rapid track gauge measurement without occupying railway resources. ; Measure the rail gauge using a non-contact method, which will not cause wear to the sensor and rail.

附图说明Description of drawings

图1是钢轨模板点云和实测点云相对位置示意图;Figure 1 is a schematic diagram of the relative positions of the rail template point cloud and the measured point cloud;

图2是图1中钢轨局部放大的效果;Figure 2 is a partial enlargement of the rail in Figure 1;

图3是本发明测量装置的结构原理框图;Figure 3 is a structural principle block diagram of the measuring device of the present invention;

图4是本发明测量方法的总体流程图;Figure 4 is an overall flow chart of the measurement method of the present invention;

图5是飞行器测量轨距示意图。Figure 5 is a schematic diagram of the aircraft measuring track gauge.

各附图标记为:1—轨头,2—轨腰,3—轨底,4—轨距,5—内侧工作面,6—模板点云的内侧点,7—实测点云的内侧点。Each reference number is marked as: 1—rail head, 2—rail waist, 3—rail bottom, 4—rail gauge, 5—inside working surface, 6—inside point of template point cloud, 7—inside point of measured point cloud.

具体实施方式Detailed ways

以下将结合附图,对本发明的优选实施例进行详细的描述:应当理解,优选实施例仅为了说明本发明,而不是为了限制本发明的保护范围。The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings: it should be understood that the preferred embodiments are only for illustrating the present invention and are not intended to limit the scope of the present invention.

实施例1Example 1

参照图3所示,本发明铁路轨道轨距的快速测量装置,包括一个安装有测量装置的飞行器,测量装置包括三维相机、数据采集模块、数据存储模块、数据处理模块和电源。Referring to Figure 3, the rapid measuring device of railway track gauge of the present invention includes an aircraft equipped with a measuring device. The measuring device includes a three-dimensional camera, a data acquisition module, a data storage module, a data processing module and a power supply.

其中主控模块与三维相机、数据采集模块、数据存储模块和电源相连接,电源为主控模块供电,主控模块控制三维相机、数据采集模块和数据存储模块;三维相机与数据采集模块相连接;数据采集模块与数据存储模块相连接;数据存储模块与数据处理模块相连接。The main control module is connected to the three-dimensional camera, data acquisition module, data storage module and power supply. The power supply supplies power to the main control module. The main control module controls the three-dimensional camera, data acquisition module and data storage module. The three-dimensional camera is connected to the data acquisition module. ; The data acquisition module is connected to the data storage module; the data storage module is connected to the data processing module.

其中主控模块控制三维相机,使三维相机对铁路轨道进行拍照成像,图像经数据采集模块采样后,送给数据存储模块,主控模块控制数据处理模块,使其从数据存储模块中读取数据进行解析、处理,处理后的数据送给数据存储模块保存。The main control module controls the three-dimensional camera to take pictures and images of the railway track. After the image is sampled by the data acquisition module, it is sent to the data storage module. The main control module controls the data processing module to read the data from the data storage module. Analyze and process, and the processed data is sent to the data storage module for storage.

以下为典型应用场景之一:The following is one of the typical application scenarios:

飞行器飞行参数:飞行速度为5米/秒,飞行高度为24.8米,航向和旁向重叠率分别为90%和60%,主航线角度为111°。The flight parameters of the aircraft: the flight speed is 5 meters/second, the flight altitude is 24.8 meters, the heading and side overlap rates are 90% and 60% respectively, and the main route angle is 111°.

实施例2Example 2

参照图1至图5所示,本发明公开的一种铁路轨道轨距的快速测量方法,测量的步骤如下:Referring to Figures 1 to 5, the present invention discloses a method for rapid measurement of railway track gauge. The measurement steps are as follows:

阶段1,数据预处理。Stage 1, data preprocessing.

基于钢轨的轨头1、轨腰2、轨底3、轨距4以及轨头踏面下方内侧工作面5的信息,根据国家标准关于钢轨的设计要求创建钢轨的标准BIM模型,并离散化为三维点云,作为匹配用模板点云。同时针对飞行器采集的图像集,构建实测场景点云,接着将实测钢轨点云从场景中分割出来,得到实测点云。Based on the information of the rail head 1, rail waist 2, rail bottom 3, rail gauge 4 and the inner working surface 5 under the rail head tread, a standard BIM model of the rail is created according to the national standards for rail design requirements and discretized into three dimensions. Point cloud, used as template point cloud for matching. At the same time, based on the image set collected by the aircraft, a measured scene point cloud is constructed, and then the measured rail point cloud is segmented from the scene to obtain the measured point cloud.

阶段2,面向模板的点云匹配。Stage 2, template-oriented point cloud matching.

本阶段以标准BIM模型的点云为模板,利用面向模板的点云配准算法,分两步将模板点云向实测钢轨点云执行配准,使两点云达到最大程度的重合;At this stage, the point cloud of the standard BIM model is used as a template, and the template point cloud registration algorithm is used to register the template point cloud to the measured rail point cloud in two steps, so that the two point clouds can overlap to the greatest extent;

步骤21,进行基于SAC_IA(采样一致性初始配准)算法的点云初匹配;Step 21: Perform initial point cloud matching based on the SAC_IA (Sampling Consistency Initial Alignment) algorithm;

步骤22,判断距离误差和函数是否达到最小,如果否则重复步骤21,如果是则停止当前迭代;Step 22, determine whether the distance error sum function reaches the minimum, if not, repeat step 21, if so, stop the current iteration;

步骤23,以SAC_IA算法得到的模板点云和实测点云进行基于ICP(IterativeClosest Point,迭代最近点)的精确配准;Step 23: Use the template point cloud and the measured point cloud obtained by the SAC_IA algorithm to perform precise registration based on ICP (IterativeClosest Point);

步骤24,判断距离误差是否小于阈值或是否达到最大迭代次数;Step 24, determine whether the distance error is less than the threshold or whether the maximum number of iterations has been reached;

步骤25,如果否则重复步骤23,如果是则模板点云和实测点云达到最大程度的重合,得到配准后的模板点云和实测点云。Step 25. If not, repeat step 23. If so, the template point cloud and the measured point cloud will overlap to the greatest extent, and the registered template point cloud and the measured point cloud will be obtained.

本阶段的匹配过程分为两个方法,第一个方法有自己的一套迭代过程,就是步骤21和步骤22所描述的:第一个方法迭代终止后,得到的结果作为第二个方法的输入,然后使用第二个方法重新开始一套新的、独立的迭代过程,因此,步骤23和步骤24是单独围绕第二个方法,也就是基于ICP的配准。The matching process at this stage is divided into two methods. The first method has its own set of iteration processes, which are described in steps 21 and 22: After the iteration of the first method is terminated, the result obtained is used as the result of the second method. input, and then restart a new, independent set of iterations using the second method, so steps 23 and 24 are solely around the second method, which is ICP-based registration.

本发明以标准BIM模型的点云为模板,利用面向模板的点云配准算法,分两步将模板点云向实测钢轨点云执行配准,使两点云达到最大程度的重合。This invention uses the point cloud of the standard BIM model as a template, and uses a template-oriented point cloud registration algorithm to register the template point cloud to the measured rail point cloud in two steps, so that the two point clouds can overlap to the greatest extent.

以钢轨标准BIM模型对应的点云(以下简称模板点云)作为源点云,由飞行器拍摄图像集生成的实测钢轨点云(以下简称实测点云)作为目标点云,采用面向模板的两步配准算法实现二者的匹配。其中所述的两步配准算法是:先采用SAC_IA算法实现初始匹配,保证模板点云与实测点云具有较好的相对初始位置,然后基于ICP算法进一步实现精确匹配。The point cloud corresponding to the standard BIM model of the rail (hereinafter referred to as the template point cloud) is used as the source point cloud, and the measured rail point cloud (hereinafter referred to as the measured point cloud) generated by the image set taken by the aircraft is used as the target point cloud, and a two-step template-oriented step is adopted. The registration algorithm achieves matching between the two. The two-step registration algorithm described is: first use the SAC_IA algorithm to achieve initial matching to ensure that the template point cloud and the measured point cloud have a good relative initial position, and then further achieve accurate matching based on the ICP algorithm.

基于SAC_IA算法的点云初匹配是采用SAC_IA算法实现初始匹配,保证模板点云与实测点云具有较好的相对初始位置,基本思想是:分别计算源点云和目标点云的快速点特征直方图(FPFH),获取点集中每个点的特征描述,然后迭代地获取模板点云和实测点云的采样点对,并根据采样点对计算从源点云到目标点云的变换矩阵,最终选取距离误差和最小的变换作为匹配的最终结果。具体步骤如下:The initial matching of point clouds based on the SAC_IA algorithm uses the SAC_IA algorithm to achieve initial matching to ensure that the template point cloud and the measured point cloud have a good relative initial position. The basic idea is: calculate the fast point feature histogram of the source point cloud and the target point cloud respectively. Figure (FPFH), obtain the feature description of each point in the point set, then iteratively obtain the sampling point pairs of the template point cloud and the measured point cloud, and calculate the transformation matrix from the source point cloud to the target point cloud based on the sampling point pair, and finally The distance error and the smallest transformation are selected as the final result of matching. Specific steps are as follows:

(1)分别计算源点云P和目标点云Q中每一点的法向量以及FPFH特征。(1) Calculate the normal vector and FPFH features of each point in the source point cloud P and target point cloud Q respectively.

(2)在源点云P中自动选取n个采样点pk(k=1,2,…,n),并保证任意两个采样点pki和pkj满足下式,(2) Automatically select n sampling points p k (k=1,2,...,n) in the source point cloud P, and ensure that any two sampling points p ki and p kj satisfy the following formula,

其中,dmin为指定的点间距离阈值。Among them, d min is the specified distance threshold between points.

(3)在目标点云Q中寻找与采样点pk(k=1,2,…,n)具有相似FPFH特征的对应采样点qk,作为源点云P在目标点云Q中的一一对应点。(3) Find the corresponding sampling point q k with similar FPFH characteristics to the sampling point p k (k=1,2,...,n) in the target point cloud Q , as a part of the source point cloud P in the target point cloud Q One corresponding point.

(4)计算对应点pk、qk之间的刚体变换矩阵,以及pk经刚体变换后所得点(用pk′表示)与点qk的距离差值li,则有:(4) Calculate the rigid body transformation matrix between the corresponding points p k and q k , and the distance difference l i between the point p k obtained after rigid body transformation (represented by p k ′) and point q k , then:

li=‖p′k-qk2l i =‖p′ k -q k2 ;

其中,pk′(xk′,yk′,zk′)=Rpk(xk,yk,zk)+T,R表示旋转矩阵,T表示平移矩阵。Among them, p k ′ (x k ′, y k ′, z k ′) = Rp k (x k , y k , z k ) + T, R represents the rotation matrix, and T represents the translation matrix.

(5)最终应找到一组最优变换,使得距离误差和函数的值最小(如上一段公式所示),此时的矩阵变换视为最终的配准变换矩阵(见本段公式),其中,(5) Finally, a set of optimal transformations should be found such that the distance error and function has the smallest value (as shown in the formula in the previous paragraph), and the matrix transformation at this time is regarded as the final registration transformation matrix (see the formula in this paragraph), where,

式中ml为给定的距离阈值,li为第i组采样点对变换后的距离差。In the formula, m l is the given distance threshold, l i is the distance difference after transformation of the i-th group of sampling point pairs.

基于ICP算法的点云精匹配:基于SAC-IA算法得到的变换矩阵并不精确,难以保证模板点云和实测点云的匹配效果,为此,采用ICP算法实现二者的精确匹配。算法基本思想类似SAC_IA算法,仍然是通过迭代地在源点云和目标点云中选择对应关系点对,计算点对之间的最优刚体变换矩阵,直至满足收敛精度要求,即距离误差和最小。所不同的是,为源点云中的每个点寻找对应点时不再按照随机选取的原则,而是选择与该点距离最近的点作为对应点。且基本原则是在源点云的最近邻中确定目标点云的对应点,然后计算点对之间的最优刚体变换矩阵,直至满足收敛精度要求,即距离误差和最小。具体步骤如下:Precise point cloud matching based on ICP algorithm: The transformation matrix obtained based on the SAC-IA algorithm is not accurate, and it is difficult to ensure the matching effect between the template point cloud and the measured point cloud. For this reason, the ICP algorithm is used to achieve precise matching between the two. The basic idea of the algorithm is similar to the SAC_IA algorithm. It still iteratively selects corresponding point pairs in the source point cloud and the target point cloud, and calculates the optimal rigid body transformation matrix between the point pairs until it meets the convergence accuracy requirements, that is, the distance error sum is minimum. . The difference is that when finding the corresponding point for each point in the source point cloud, the principle of random selection is no longer used, but the point closest to the point is selected as the corresponding point. And the basic principle is to determine the corresponding point of the target point cloud in the nearest neighbor of the source point cloud, and then calculate the optimal rigid body transformation matrix between the point pairs until the convergence accuracy requirements are met, that is, the distance error sum is minimum. Specific steps are as follows:

(1)步骤221,源点云的一个采样点集为P′,针对P′中每个采样点 p′k(k=1,2,...N),在目标点云Q中寻找其最近对应点qk(1) Step 221, a sampling point set of the source point cloud is P′. For each sampling point p′ k (k=1, 2,...N) in P′, search for it in the target point cloud Q. The nearest corresponding point q k :

(2)针对点集P′和目标点云Q的采样点对集合,计算旋转矩阵R和平移矩阵T,使采样点集的均方误差E(R,T)最小;(2) For the sampling point pair set of point set P′ and target point cloud Q, calculate the rotation matrix R and translation matrix T to minimize the mean square error E(R, T) of the sampling point set;

(3)对点集P′使用当前最佳变换矩阵R和T,得到新的点集P″:(3) Use the current best transformation matrices R and T for the point set P′ to obtain a new point set P″:

p″k(x″k,y″k,z″k)=Rp′k(x′k,y′k,z′k)+Tp″ k (x″ k , y″ k , z″ k )=Rp′ k (x′ k , y′ k , z′ k )+T

其中,p″k表示p′k变换后的点。Among them, p″ k represents the point after p′ k transformation.

(4)计算距离误差均值dε和当前迭代次数I,若满足公式3.8或3.9,则迭代终止,否则,用点集P″代替点集P′,重复步骤(3)继续执行,直至符合收敛条件:(4) Calculate the distance error mean d ε and the current iteration number I. If formula 3.8 or 3.9 is satisfied, the iteration is terminated. Otherwise, use point set P″ to replace point set P′, and repeat step (3) until convergence is met. condition:

I>ImaxI> Imax ;

式中ε为指定的允许误差,Imax为指定的最大迭代次数。In the formula, ε is the specified allowable error, and I max is the specified maximum number of iterations.

阶段3,基于模板参考面的轨距计算。Stage 3, track gauge calculation based on template reference surface.

以模板点云的内侧面作为参考面,提取实测点云内侧点并拟合得到内侧面,以此为基础计算实测点云轨距。Using the inner side of the template point cloud as the reference surface, extract the inner points of the measured point cloud and fit them to obtain the inner side. Based on this, the measured point cloud track gauge is calculated.

在未重建钢轨表面的情况下,要想根据轨距定义(见图1)从三维离散点云中准确提取轨头踏面下方16mm处的顶点是非常困难的,而以点云配准后模板点云的内侧工作面作为参考平面,在实测点云中搜索并确定与该参考面最相似的拟合平面,该平面所代表的就是实测钢轨的内侧面。模板点云的内侧点6 在内侧工作面上,实测点云的内侧点7在内侧工作面上。因此,两点云配准后,轨距的计算就转化为在模板点云中提取参考面(即模板点云的内侧工作面)、在实测点云中基于参考面提取内侧面、以及从提取的实测工作面计算轨距的过程。Without reconstructing the rail surface, it is very difficult to accurately extract the vertices 16mm below the rail head tread from the three-dimensional discrete point cloud based on the rail gauge definition (see Figure 1). However, after registering the template points with the point cloud The inner working surface of the cloud is used as a reference plane, and the fitting plane most similar to the reference surface is searched and determined in the measured point cloud. This plane represents the inner side of the measured rail. The inner point 6 of the template point cloud is on the inner working surface, and the inner point 7 of the measured point cloud is on the inner working surface. Therefore, after the two point clouds are registered, the calculation of the track gauge is transformed into extracting the reference surface in the template point cloud (i.e., the inner working surface of the template point cloud), extracting the inner surface based on the reference surface in the measured point cloud, and extracting the The process of calculating track gauge on the measured working surface.

其中模板点云参考面提取方法包括以下步骤:The template point cloud reference surface extraction method includes the following steps:

(1)模板点云内侧点提取(1) Extraction of inner points of template point cloud

已知模板点云P,由两个平行钢轨模型点云Pl,Pr构成,经与实测点云配准后的点云为P′,其中,Pl,Pr经配准后分别对应Pl′,Pr′。It is known that the template point cloud P is composed of two parallel rail model point clouds P l and P r . The point cloud after registration with the measured point cloud is P′, where P l and P r correspond to each other after registration. P l ′, P r ′.

定义1:对于点云P′中任意两不重合的顶点pi′,pj′,i≠j,两点间的距离为:d(p′i,p′j)=||p′i-p′j||2Definition 1: For any two non-overlapping vertices p i ′, p j ′, i≠j in the point cloud P′, the distance between the two points is: d(p′ i ,p′ j )=||p′ i -p′ j || 2 .

定义2:对于点云P′中任意一点pli′,若该点同时也是Pl′中的一点,在Pr′中可以找到一点pj′满足:min d(p′li,p′j)=d0,p′j∈P′rDefinition 2: For any point p li ′ in the point cloud P′, if the point is also a point in P l ′, a point p j ′ can be found in P r ′ that satisfies: min d(p′ li ,p′ j )=d 0 ,p′ j ∈P′ r .

即左侧钢轨中某一点到右侧钢轨的最短距离等于标准轨距,则称该点是模板点云左侧钢轨的内侧点。That is, if the shortest distance from a point on the left rail to the right rail is equal to the standard gauge, then the point is said to be the inner point of the left rail of the template point cloud.

同理,对于点云P′中任意一点pri′,若该点是Pr′中的一点,在Pl′中可以找到一点pk′满足:min d(pri′,pk′)=d0,pk′∈Pl′,称该点是模板点云右侧钢轨的内侧点。In the same way, for any point p ri ′ in the point cloud P′, if the point is a point in P r ′, a point p k ′ can be found in P l ′ that satisfies: min d(p ri ′,p k ′) =d 0 ,p k ′∈P l ′, this point is said to be the inner point of the rail on the right side of the template point cloud.

(2)模板点云内侧面拟合(2) Template point cloud inner side fitting

通过内侧点提取,可得到模板点云的内侧点集合Through inner point extraction, the inner point set of the template point cloud can be obtained.

Upl={pl1′,pl2′,pl3′,……,plm′},Upr={pr1′,pr2′,pr3′,……,prn′},通过最小二乘平面拟合即可分别获取模板点云的两个内侧平面。U pl ={p l1 ′,p l2 ′,p l3 ′,…,p lm ′}, U pr ={p r1 ′,p r2 ′,p r3 ′,…,p rn ′}, through the minimum Square plane fitting can obtain the two inner planes of the template point cloud respectively.

其中实测点云内侧面提取方法步骤为:经模板点云与实测点云配准后,实测点云的形状和位置与模板点云十分相似。已知模板点云的内侧面,作为参考面,通过在实测点云中搜索并确定与该参考面最相似的拟合平面,即为实测点云的内侧面。The steps of the method for extracting the inner side of the measured point cloud are: after registering the template point cloud and the measured point cloud, the shape and position of the measured point cloud are very similar to the template point cloud. The inner side of the template point cloud is known as the reference surface. By searching and determining the fitting plane most similar to the reference surface in the measured point cloud, it is the inner side of the measured point cloud.

其中实测点云轨距计算方法步骤为:经内侧面提取后,得到的实测点云 Q的左、右钢轨内侧点集合Uql,Uqr的平面拟合方程分别为Sql,Sqr。对于空间任意一点q和某一平面S,点q到平面S的距离为D(q,S),则按照下式计算实测点云的轨距dqThe steps of the measured point cloud track gauge calculation method are: after extracting the inner surface, the plane fitting equations of the left and right rail inner point sets U ql and U qr of the measured point cloud Q are S ql and S qr respectively. For any point q in space and a certain plane S, the distance from point q to plane S is D(q,S), then the track distance d q of the measured point cloud is calculated according to the following formula:

其中,nl,nr分别表示集合Uql和Uqr的规模。至此得到轨道的轨距。Among them, n l and n r represent the sizes of sets U ql and U qr respectively. At this point, the gauge of the track is obtained.

以上所述仅为本发明的优选实施例,并不用于限制本发明,显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. In this way, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims (5)

1. A rapid measurement method of a rapid measurement device for railway track gauge is characterized in that,
based on a measuring device comprising a three-dimensional camera arranged at the bottom of an aircraft, a main control module and a data acquisition module, wherein the main control module and the data acquisition module are respectively connected with the three-dimensional camera, the data acquisition module is connected with a data storage module, the data storage module is connected with a data processing module, the data storage module and the data processing module are respectively connected with the main control module, the main control module controls the three-dimensional camera to photograph and image a railway track, the data acquisition module samples an image and then sends the image to the data storage module, and the main control module controls the data processing module to read data from the data storage module, analyze and process the data and then send the data to the data storage module for storage;
the method comprises the following steps:
step 1, data preprocessing
Step 11, creating a standard BIM model of the steel rail based on the information of the rail head (1), the rail web (2), the rail bottom (3), the rail gauge (4) and the inner side working surface (5) below the rail head tread, and discretizing the model into a three-dimensional point cloud serving as a template point cloud for matching;
step 12, constructing an actual measurement steel rail point cloud based on an image acquired by an aircraft, and dividing the actual measurement steel rail point cloud from a scene point cloud to obtain an actual measurement point cloud;
step 2, realizing point cloud matching for templates
Step 21, performing point cloud initial matching based on SAC_IA algorithm: respectively calculating fast point characteristic histograms of a source point cloud and a target point cloud, acquiring characteristic description of each point in a point set, then iteratively acquiring sampling point pairs of a template point cloud and a real point cloud, calculating a transformation matrix from the source point cloud to the target point cloud according to the sampling point pairs, and selecting a distance error and minimum transformation as a final matching result;
step 211, calculating normal vector and fast point characteristic histogram features of each point in the source point cloud P and the target point cloud Q respectively;
step 212, automatically selecting n sampling points P from the source point cloud P k (k=1, 2, …, n) and ensures any two sampling points p ki And p kj Satisfies the following formula:
wherein d is min A threshold value for a specified inter-point distance;
step 213, finding and sampling point p in target point cloud Q k (k=1, 2, …, n) corresponding sample points q having similar fast point feature histogram features k As a one-to-one correspondence point of the source point cloud P in the target point cloud Q;
step 214, calculating the sampling point p k And corresponding sampling point q k Rigid body transformation matrix between and sampling point p k The point p obtained after rigid transformation k ' and corresponding sample point q k Distance difference l of (2) i Then there is l i =||p′ k -q k || 2 Wherein p is k ′(x k ′,y k ′,z k ′)=Rp k (x k ,y k ,z k ) +T, where R represents a rotation matrix and T represents a translation matrix;
step 215, eventually a set of optimal transformations should be found, such that the distance error and the functionThe matrix transformation at this time is considered to be the final registration transformation matrix, where,
m is in l For a given distance threshold, l i The distance difference after the i-th group sampling point pair is transformed;
step 22, judging whether the distance error and the function reach the minimum, if not, repeating step 21, and if so, stopping the current iteration;
selecting corresponding relation point pairs from the source point cloud and the target point cloud iteratively, and calculating an optimal rigid body transformation matrix between the point pairs until convergence accuracy requirements, namely distance errors and minimum, are met;
step 221, a sampling point set of the source point cloud is P ', for each sampling point P ' in P ' k (k=1, 2, …, N), finding its nearest counterpart point Q in the target point cloud Q k
Step 222, for the set of sampling point pairs of the point set P' and the target point cloud Q, calculating a rotation matrix R and a translation matrix T, so as to minimize a mean square error E (R, T) of the sampling point set:
step 223, using the current optimal transformation matrices R and T for the point set P', obtaining a new point set p″:
p" k (x" k ,y" k ,z" k )=Rp' k (x′ k ,y' k ,z′ k )+T
wherein p' k Represents p' k Transformed points;
step 224, calculate the distance error mean d ε And the current iteration number I, if the convergence condition is met, the iteration is terminated, otherwise, the point set P 'is used for replacing the source point set P', and the step 221 is repeated until the convergence condition is met:
I>I max
wherein ε is a specified allowable error, I max For a specified maximum number of iterations;
step 23, carrying out ICP-based accurate registration on the template point cloud and the actual point cloud obtained by the SAC_IA algorithm;
step 24, judging whether the distance error is smaller than a threshold value or the maximum iteration number is reached;
step 25, if not, repeating the step 23, and if so, enabling the template point cloud and the real point cloud to coincide to the greatest extent, so as to obtain the registered template point cloud and real point cloud;
step 3, track gauge calculation based on template reference surface
Step 31, taking an inner working surface (5) in the template point cloud as a template reference surface, extracting inner points of the template point cloud, and calculating the template point cloud reference surface;
and step 32, extracting the inner points of the real-point cloud, fitting to obtain an inner working surface (5), calculating the track gauge of the real-point cloud, and then outputting the track gauge.
2. The method for rapidly measuring the railway track gauge according to claim 1, wherein the step 3 is to use an inner working surface (5) of a template point cloud after initial matching of the point cloud as a reference plane, search and determine a fitting plane most similar to the reference plane in a real-time point cloud, and represent the inner side surface of a measured steel rail by the fitting plane.
3. The method for rapidly measuring railway track gauge according to claim 2, wherein the step of extracting the inner points of the template point cloud in the step 31 is as follows:
the known template point cloud P is formed by two parallel steel rail model point clouds P l ,P r The point cloud registered with the real point cloud is a source point cloud P', wherein P is the point cloud P l ,P r Registered and respectively correspond to P l ′,P r ′;
For any two non-coincident vertexes P in the source point cloud P i ′,p j ' i not equal to j, the distance between two points is: d (p' i ,p′ j )=||p′ i -p′ j || 2
For any point P in the source point cloud P li ' if this point is also P l ' one point in P r One point p can be found in j ' satisfy: min d (p' li ,p′ j )=d 0 ,p′ j ∈P r ' namely, the shortest distance from a certain point in the left steel rail to the right steel rail is equal to the standard track gauge, and the point is called as the inner side point of the left steel rail of the template point cloud;
similarly, for any point P in the source point cloud P ri ' if the point is P r ' one point in P l One point p can be found in k ' satisfy: mind (p) ri ′,p k ′)=d 0 ,p k ′∈P l The point is the inboard point of the right rail of the template point cloud.
4. The method for rapidly measuring railway track gauge according to claim 2, wherein the step of fitting the inner side of the template point cloud in the step 32 is as follows: extracting an inner side point set of the template point cloud through the inner side points: u (U) pl ={p l1 ′,p l2 ′,p l3 ′,……,p lm ′},U pr ={p r1 ′,p r2 ′,p r3 ′,……,p rn ' two inner side planes of the template point cloud can be obtained respectively through least square plane fitting.
5. The method for rapidly measuring railway track gauge according to claim 2, wherein the actual point cloud computing step in the step 32 is as follows:
left and right rail inner side point set U of real side point cloud Q obtained through inner side face extraction ql ,U qr Plane fitting equations of S ql ,S qr For any point q and a certain plane S in the space, if the distance from the point q to the plane S is D (q, S), the track gauge D of the real point cloud is calculated according to the following formula q
Wherein n is l ,n r Respectively represent the collection U ql And U qr Scale of (2); the track gauge of the track is thus obtained.
CN202010859950.5A 2020-08-24 2020-08-24 Railway track gauge rapid measurement device and method Active CN111932676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010859950.5A CN111932676B (en) 2020-08-24 2020-08-24 Railway track gauge rapid measurement device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010859950.5A CN111932676B (en) 2020-08-24 2020-08-24 Railway track gauge rapid measurement device and method

Publications (2)

Publication Number Publication Date
CN111932676A CN111932676A (en) 2020-11-13
CN111932676B true CN111932676B (en) 2024-01-05

Family

ID=73305122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010859950.5A Active CN111932676B (en) 2020-08-24 2020-08-24 Railway track gauge rapid measurement device and method

Country Status (1)

Country Link
CN (1) CN111932676B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112682270B (en) * 2020-12-21 2023-01-31 华能安阳能源有限责任公司 Height measuring method for wind turbine generator
CN112862882A (en) * 2021-01-28 2021-05-28 北京格灵深瞳信息技术股份有限公司 Target distance measuring method, device, electronic apparatus and storage medium
CN113408074A (en) * 2021-06-28 2021-09-17 吉林大学 Wheel set tread parameter measuring method and device
CN114332212B (en) * 2022-03-11 2022-06-07 中国铁路设计集团有限公司 Track superelevation and front-back height detection method based on vehicle-mounted mobile laser point cloud
CN116188544B (en) * 2022-12-29 2025-07-25 易思维(杭州)科技股份有限公司 Point cloud registration method combining edge features
CN115824070B (en) * 2023-02-23 2023-05-30 湖南睿图智能科技有限公司 Rail part size measurement method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2951528B1 (en) * 2013-01-29 2018-07-25 Andrew Robert Korb Methods for analyzing and compressing multiple images
CN108133458A (en) * 2018-01-17 2018-06-08 视缘(上海)智能科技有限公司 A kind of method for automatically split-jointing based on target object spatial point cloud feature
CN108657222B (en) * 2018-05-03 2019-06-07 西南交通大学 Railroad track gauge and horizontal parameters measurement method based on vehicle-mounted Lidar point cloud
CN210478710U (en) * 2019-07-16 2020-05-08 北京中云亿安数据科技研究院有限公司 Railway infringement monitoring system
CN110647798B (en) * 2019-08-05 2023-01-03 中国铁路设计集团有限公司 Automatic track center line detection method based on vehicle-mounted mobile laser point cloud
CN111429498B (en) * 2020-03-26 2022-08-30 中国铁路设计集团有限公司 Railway business line three-dimensional center line manufacturing method based on point cloud and image fusion technology

Also Published As

Publication number Publication date
CN111932676A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN111932676B (en) Railway track gauge rapid measurement device and method
Dhiman et al. Pothole detection using computer vision and learning
CN114049294B (en) Road surface technical condition detection method and equipment based on three-dimensional contour
CN109685886A (en) A kind of distribution three-dimensional scenic modeling method based on mixed reality technology
CN112950532B (en) Train pantograph state detection method
CN109489584B (en) Tunnel clearance detection system and tunnel clearance identification method based on 3D technology
CN106053475A (en) Tunnel disease full-section dynamic rapid detection device based on active panoramic vision
Arjapure et al. Deep learning model for pothole detection and area computation
CN103837087B (en) Pantograph automatic testing method based on active shape model
CN106846340A (en) A kind of striation boundary extraction method based on on-fixed characteristic point
CN110490342B (en) Contact net static geometrical parameter detection method based on Faster R-CNN
CN114812398A (en) A high-precision real-time crack detection platform based on UAV
CN112697044A (en) Static rigid object vision measurement method based on unmanned aerial vehicle platform
WO2024216523A1 (en) Method and system for sensing foreign matter within urban rail train travellng clearance, and apparatus and medium
CN108921164A (en) A kind of contact net positioner slope detection method based on three-dimensional point cloud segmentation
CN111932565A (en) A Multi-target Recognition Tracking Solution Method
CN114841923A (en) High-precision real-time crack detection method based on unmanned aerial vehicle
Yang et al. Discretization–filtering–reconstruction: Railway detection in images for navigation of inspection UAV
CN115857040A (en) Dynamic visual detection device and method for foreign matters on locomotive roof
CN115222731A (en) A train fastener anomaly detection method based on two-dimensional image-to-point cloud mapping
Rolfsen et al. The use of the BIM-model and scanning in quality assurance of bridge constructions
Han et al. Automated extraction of rail point clouds by multi-scale dimensional features from MLS data
CN115147344A (en) Three-dimensional detection and tracking method for parts in augmented reality assisted automobile maintenance
Sasikala et al. Unifying boundary, region, shape into level sets for touching object segmentation in train rolling stock high speed video
CN109993741B (en) Steel rail welding seam contour automatic positioning method based on K-means clustering

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant