CN115236628B - Method for detecting residual cargoes in carriage based on laser radar - Google Patents

Method for detecting residual cargoes in carriage based on laser radar Download PDF

Info

Publication number
CN115236628B
CN115236628B CN202210886142.7A CN202210886142A CN115236628B CN 115236628 B CN115236628 B CN 115236628B CN 202210886142 A CN202210886142 A CN 202210886142A CN 115236628 B CN115236628 B CN 115236628B
Authority
CN
China
Prior art keywords
point cloud
carriage
data
cloud data
frame
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
CN202210886142.7A
Other languages
Chinese (zh)
Other versions
CN115236628A (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.)
China University of Mining and Technology CUMT
Original Assignee
China University of Mining and Technology CUMT
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 China University of Mining and Technology CUMT filed Critical China University of Mining and Technology CUMT
Priority to CN202210886142.7A priority Critical patent/CN115236628B/en
Publication of CN115236628A publication Critical patent/CN115236628A/en
Application granted granted Critical
Publication of CN115236628B publication Critical patent/CN115236628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/4802Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00 using analysis of echo signal for target characterisation; Target signature; Target cross-section
    • 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
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • 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/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

本发明一种基于激光雷达检测车厢残留货物的方法,提取单帧原始数据中的车厢数据;提取车厢目标点云,对采集的单帧点云轮廓进行倾斜校正;获取当前车速,将以雷达为原点的坐标系转换为以车厢底部为中心的坐标系,对单帧点云进行拼接形成车厢整体点云图;对车厢点云数据降噪和精简;对拼接的车厢点云数据进行平滑处理;对车厢点云数据切片;相邻两切片间的点云进行投影,提取截面轮廓;对于提取的截面轮廓,求得截面面积,与切片间距相乘得该段到点云体积;累加计算车厢残留货物的体积。本发明可以在不停车情况下自动检测列车车厢内货物残留情况,无需工人爬进车厢观察,降低工人劳动强度的同时提高了工作的安全性,自动检测效率高而且准确性好。

The present invention discloses a method for detecting residual cargo in a carriage based on a laser radar, which comprises extracting carriage data from a single-frame raw data; extracting a carriage target point cloud, and performing tilt correction on the collected single-frame point cloud contour; obtaining the current speed, converting a coordinate system with the radar as the origin into a coordinate system with the bottom of the carriage as the center, splicing the single-frame point cloud to form an overall point cloud map of the carriage; reducing noise and streamlining the carriage point cloud data; smoothing the spliced carriage point cloud data; slicing the carriage point cloud data; projecting the point cloud between two adjacent slices, and extracting a cross-sectional contour; obtaining a cross-sectional area for the extracted cross-sectional contour, and multiplying it by the slice spacing to obtain the volume of the segment to the point cloud; and accumulating and calculating the volume of the residual cargo in the carriage. The present invention can automatically detect the residual cargo in the train carriage without stopping the train, without the need for workers to climb into the carriage for observation, thereby reducing the labor intensity of workers and improving the safety of work, and the automatic detection efficiency is high and the accuracy is good.

Description

一种基于激光雷达检测车厢残留货物的方法A method for detecting residual cargo in a carriage based on laser radar

技术领域Technical Field

本发明涉及一种检测车厢残留货物的方法,具体涉及一种基于激光雷达检测车厢残留货物的方法。The present invention relates to a method for detecting residual cargo in a carriage, and in particular to a method for detecting residual cargo in a carriage based on a laser radar.

背景技术Background technique

车厢残留货物对于铁路货运车辆来说是常见的现象,由于车厢装载物体的形状、特性或者由于天气等原因导致在卸车作业时无法将车厢装载物品完全卸载完全。对于残留的货物,往往需要工人借助工具攀爬到车厢上面去观察箱体内货物残留情况,然后根据残留量多少再安排相应数量的工人进入车厢进行清扫处理,避免亏吨现象。像这种人工检测的方法不仅存在安全隐患问题,影响列车的正常运行,而且增加了工人劳动强度,工作效率低。Cargo residue in carriages is a common phenomenon for railway freight vehicles. Due to the shape and characteristics of the objects loaded in the carriages or due to weather and other reasons, the items loaded in the carriages cannot be completely unloaded during unloading operations. For the residual cargo, workers often need to climb onto the carriages with the help of tools to observe the residual cargo in the box, and then arrange a corresponding number of workers to enter the carriages for cleaning according to the amount of residue to avoid the phenomenon of loss of tons. Such manual inspection methods not only have safety hazards and affect the normal operation of trains, but also increase the labor intensity of workers and low work efficiency.

发明内容Summary of the invention

针对上述现有技术存在的问题,本发明提供一种基于激光雷达检测车厢残留货物的方法,不影响列车运行,检测残留物方便,无需工人登车查看,安全性高,效率高。In view of the problems existing in the above-mentioned prior art, the present invention provides a method for detecting residual cargo in a carriage based on laser radar, which does not affect the operation of the train, is convenient for detecting residual objects, does not require workers to board the train to check, and has high safety and efficiency.

为实现上述目的,本发明提供如下技术方案:一种基于激光雷达检测车厢残留货物的方法,一种基于激光雷达检测车厢残留货物的方法,其特征在于,包括以下步骤:To achieve the above object, the present invention provides the following technical solution: a method for detecting residual cargo in a carriage based on a laser radar, a method for detecting residual cargo in a carriage based on a laser radar, characterized in that it comprises the following steps:

S10,采用基于欧式距离的聚类分析方法提取单帧原始数据中的车厢数据,并利用三维坐标关系,判断车厢前后边界,获取第一帧和最后一帧数据信息;S10, extracting carriage data from the single-frame original data using a cluster analysis method based on Euclidean distance, and determining the front and rear boundaries of the carriage using a three-dimensional coordinate relationship to obtain the first frame and the last frame data information;

S20,采用条件滤波的方法提取车厢目标点云,对采集的单帧点云轮廓进行倾斜校正;S20, extracting the carriage target point cloud by using a conditional filtering method, and performing tilt correction on the collected single-frame point cloud contour;

S30,使用预先设置好的雷达获取当前车速,将以雷达为原点的坐标系转换为以车厢底部为中心的坐标系,利用位移融合算法对单帧点云进行拼接,形成车厢整体点云图;S30, using a pre-set radar to obtain the current vehicle speed, converting the coordinate system with the radar as the origin into a coordinate system with the bottom of the car as the center, and using a displacement fusion algorithm to stitch the single-frame point cloud to form an overall point cloud map of the car;

S40,采用统计滤波和体素化网格法对车厢点云数据降噪和精简;S40, using statistical filtering and voxel gridding method to reduce noise and simplify the car point cloud data;

S50,利用移动最小二乘法对拼接的车厢点云数据进行平滑处理;S50, smoothing the spliced carriage point cloud data using a moving least squares method;

S60,沿着车辆运行方向对车厢点云数据切片;S60, slicing the car body point cloud data along the vehicle running direction;

S70,相邻两切片间的点云进行投影,利用alpha算法和射线360度算法提取截面轮廓;S70, the point cloud between two adjacent slices is projected, and the cross-sectional contour is extracted using the alpha algorithm and the ray 360-degree algorithm;

S80,对于提取的截面轮廓,利用shoelace定理求得截面面积,与切片间距相乘得该段到点云体积;累加计算车厢残留货物的体积。S80, for the extracted cross-sectional contour, the shoelace theorem is used to obtain the cross-sectional area, which is multiplied by the slice spacing to obtain the point cloud volume of the segment; the volume of the remaining cargo in the carriage is calculated by accumulation.

进一步的,所述步骤S20中对点云进行条件滤波和轮廓校正包括:根据扫描得到的帧数据,选取该帧扫描的静止点云,寻找同一列点云数据,分析其坐标值,拟合计算偏转角度,对整体点云数据进行旋转校正。Furthermore, the conditional filtering and contour correction of the point cloud in step S20 includes: selecting the stationary point cloud of the frame scan according to the frame data obtained by scanning, finding the same column of point cloud data, analyzing its coordinate values, fitting and calculating the deflection angle, and performing rotation correction on the overall point cloud data.

进一步的,所述步骤S30中对坐标系转换和点云拼接包括:基于以雷达为原点的坐标系转化为以车厢为原点的坐标系,根据雷达安装位置关系,确定坐标值转化关系,完成坐标系转换;基于移动位移融合的点云拼接方法,通过赋予点云新的Z轴坐标值,将所有帧点云数据统一校正到同一帧坐标系下,完成点云拼接。Furthermore, the coordinate system conversion and point cloud stitching in step S30 include: converting the coordinate system with the radar as the origin into the coordinate system with the car as the origin, determining the coordinate value conversion relationship according to the radar installation position relationship, and completing the coordinate system conversion; based on the point cloud stitching method of mobile displacement fusion, by assigning a new Z-axis coordinate value to the point cloud, all frame point cloud data are uniformly corrected to the same frame coordinate system to complete the point cloud stitching.

进一步的,所述步骤S40中统计滤波和体素化网格的方法包括:采样点到邻域点的平均间距分布关系符合高斯分布函数,通过设置的合理的阈值,将离群的点云数据剔除;使用体素化网格法对点云数据进行下采样,将点云数据落入到规定大小的网格内,每个网格只保留距离网格中心最近的点云,网格内其余点云删除,以此达到点云精简的作用。Furthermore, the method of statistical filtering and voxelization gridding in step S40 includes: the average spacing distribution relationship from the sampling point to the neighborhood point conforms to the Gaussian distribution function, and the outlier point cloud data is eliminated by setting a reasonable threshold; the point cloud data is downsampled using the voxelization gridding method, and the point cloud data falls into a grid of a specified size. For each grid, only the point cloud closest to the center of the grid is retained, and the remaining point clouds in the grid are deleted, thereby achieving the effect of point cloud simplification.

进一步的,所述步骤S60中对点云数据切片包括:以一定的间距间隔的沿着车辆运行方向用平行于车厢截面的切面对车厢点云数据进行截取,形成一段段分散的点云数据。间距越大,切割的点云段数越多,反之越少。Furthermore, the slicing of the point cloud data in step S60 includes: intercepting the car body point cloud data with a cut plane parallel to the car body cross section at a certain interval along the vehicle running direction to form a segment of scattered point cloud data. The larger the interval, the more point cloud segments are cut, and vice versa.

进一步的,所述步骤S70中提取点云轮廓包括:将相邻切片间的点云进行投影,利用alpha算法确定大致的边界轮廓;然后采用射线360度扫描算法对边界轮廓进行二次判别,剔除不符合条件的边界点云数据。提高边界轮廓的准确度。Furthermore, the step S70 of extracting the point cloud contour includes: projecting the point clouds between adjacent slices, using the alpha algorithm to determine the approximate boundary contour; and then using the ray 360-degree scanning algorithm to perform secondary discrimination on the boundary contour, and eliminating boundary point cloud data that does not meet the conditions, thereby improving the accuracy of the boundary contour.

进一步的,所述步骤S80中计算点云体积包括:采用shoelace定理求取不规则多边形的点云截面面积,与切片间隔相乘得到该段点云数据的体积,通过累加得到车厢整体点云体积;用空车厢点云体积与存在残留货物时车厢的体积作差,得到车厢残留货物的体积。Furthermore, the calculation of the point cloud volume in step S80 includes: using the shoelace theorem to obtain the point cloud cross-sectional area of the irregular polygon, multiplying it by the slice interval to obtain the volume of the segment of point cloud data, and obtaining the overall point cloud volume of the carriage by accumulation; subtracting the point cloud volume of the empty carriage from the volume of the carriage when there is residual cargo, to obtain the volume of the residual cargo in the carriage.

与现有技术相比,本发明可以在不停车的情况下自动检测列车车厢内货物残留情况,无需工人爬进车厢观察,降低工人劳动强度的同时提高了工作的安全性,自动检测效率高而且准确性好;本发明不仅能够识别出铁路车厢残留货物存在的区域和体积,而且对公路敞篷货车装载散沙、散石等物料也能进行检测,根据装载物料的密度,可以求出转载物的质量,以此判定货车的超载情况。Compared with the prior art, the present invention can automatically detect the residual cargo in the train compartment without stopping the train, without the need for workers to climb into the compartment to observe, thereby reducing the labor intensity of workers and improving work safety, and the automatic detection efficiency is high and the accuracy is good; the present invention can not only identify the area and volume of residual cargo in the railway compartment, but also can detect materials such as loose sand and loose stones loaded on open road trucks. According to the density of the loaded materials, the mass of the transferred objects can be calculated to determine the overloading situation of the truck.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

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

图2为本发明实施例车厢数据图;FIG2 is a diagram of carriage data according to an embodiment of the present invention;

图3为本发明实施例车厢边界判断图;FIG3 is a diagram showing a carriage boundary determination according to an embodiment of the present invention;

图4为本发明实施例车厢点云轮廓倾斜原因图;FIG4 is a diagram showing the causes of the tilt of the car point cloud contour according to an embodiment of the present invention;

图5为本发明实施例单帧点云数据校正图;FIG5 is a single-frame point cloud data correction diagram according to an embodiment of the present invention;

图6为本发明实施例坐标系转换原理图;FIG6 is a schematic diagram of a coordinate system conversion principle according to an embodiment of the present invention;

图7为本发明实施例基于移动位移拼接原始车厢点云图;FIG7 is a point cloud image of an original carriage spliced based on movement displacement according to an embodiment of the present invention;

图8为本发明实施例体素化网格法和点云平滑结果图;FIG8 is a diagram showing the voxelized grid method and point cloud smoothing results according to an embodiment of the present invention;

图9为本发明实施例空载车厢轮廓截面图;FIG9 is a cross-sectional view of an empty carriage according to an embodiment of the present invention;

图10为本发明实施例存在残留物时车厢轮廓截面图;FIG10 is a cross-sectional view of the carriage profile when residues exist in the embodiment of the present invention;

图11为本发明实施例不规则多边形面积计算原理图。FIG. 11 is a diagram showing the principle of calculating the area of an irregular polygon according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings.

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments 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所示,本发明提供一种技术方案,基于激光雷达检测车厢残留货物的方法:As shown in FIG1 , the present invention provides a technical solution, a method for detecting residual cargo in a carriage based on a laser radar:

S10,采用基于欧式距离的聚类分析方法提取单帧原始数据中的车厢数据,并利用三维坐标关系,判断车厢前后边界,获取第一帧和最后一帧数据信息;S10, extracting carriage data from the single-frame original data using a cluster analysis method based on Euclidean distance, and determining the front and rear boundaries of the carriage using a three-dimensional coordinate relationship to obtain the first frame and the last frame data information;

采用基于欧式距离的聚类分析算法对点云初始数据进行预处理,聚类条件:近邻搜索的搜索半径为0.2米,聚类最小点数目为1000,聚类最大点数目为5000;具体实现步骤如下:The initial point cloud data is preprocessed using a clustering analysis algorithm based on Euclidean distance. The clustering conditions are: the search radius of the nearest neighbor search is 0.2 meters, the minimum number of cluster points is 1000, and the maximum number of cluster points is 5000. The specific implementation steps are as follows:

(1)找到空间中某点P10,在kdTree找到离他最近的n个点,判断这n个点到P10的距离。将距离小于阈值r的点P12,P13,P14......放在类Q里;(1) Find a point P 10 in space, find the n points closest to it in kdTree, and determine the distances from these n points to P 10. Put points P 12 , P 13 , P 14 , etc. whose distances are less than the threshold r into class Q;

(2)在Q(P10)里找到一点P12,重复(1);(2) Find a point P 12 in Q(P 10 ) and repeat (1);

(3)在Q(P10,P12)找到一点,重复(1),找到P22,P23,P24....全部放进Q里;(3) Find a point in Q (P 10 , P 12 ), repeat (1) to find P 22 , P 23 , P 24 . . . and put them all into Q;

(4)当Q再也不能有新点加入了,则完成搜索了。(4) When no new points can be added to Q, the search is completed.

如图2和图3所示,若雷达XOY平面与列车运行方向完全垂直,假设一个车厢的宽度为3.3米,高2.8米,在车厢边界判断中,点M是车厢最高处一点,点M坐标为(xm,ymax,zm),点N是车厢最低处一点,点N坐标为(Xn,ymin,zn),根据三维坐标关系可知:As shown in Figures 2 and 3, if the radar XOY plane is completely perpendicular to the train running direction, assuming that the width of a carriage is 3.3 meters and the height is 2.8 meters, in the carriage boundary judgment, point M is the highest point of the carriage, and the coordinates of point M are (x m , y max , z m ), and point N is the lowest point of the carriage, and the coordinates of point N are (X n , y min , z n ). According to the three-dimensional coordinate relationship, it can be known that:

ymax-ymin=2.8,y max -y min = 2.8,

其中,ymax为最高点M点y坐标,ymin为最低点N点y坐标,车厢高度为2.8米,对车厢点云数据进行处理,将车厢的左右侧壁各隐藏0.5米,若隐藏后点云数据的ymax和ymin变化幅度较小,即ymax和ymin之差大于某一阈值t,则判断当前车厢数据为车厢边界数据,否则判断为非车厢边界数据。当车厢边界信息第一次出现时,开始记录数据信息;车厢数据最后一次出现时,停止记录数据信息,获得完整的一个车厢数据信息。Among them, y max is the y coordinate of the highest point M, y min is the y coordinate of the lowest point N, the height of the car is 2.8 meters, the car point cloud data is processed, and the left and right side walls of the car are hidden by 0.5 meters each. If the y max and y min of the hidden point cloud data change slightly, that is, the difference between y max and y min is greater than a certain threshold t, then the current car data is judged as car boundary data, otherwise it is judged as non-car boundary data. When the car boundary information appears for the first time, start recording data information; when the car data appears for the last time, stop recording data information to obtain a complete car data information.

S20,采用条件滤波的方法提取车厢目标点云,对采集的单帧点云数据进行轮廓的倾斜校正;S20, extracting the target point cloud of the carriage by using a conditional filtering method, and performing a tilt correction on the contour of the collected single-frame point cloud data;

若雷达XOY平面与列车运行方向完全垂直,那么同一列扫描的激光点应在同一水平线上,如图4(a)所示;若雷达XOY平面与列车运行方向不垂直,出现倾斜夹角,那么同一列数据的点也呈现倾斜状态,如图4(b)所示;本发明中基于静态点云校正的方法,步骤如下:If the radar XOY plane is completely perpendicular to the running direction of the train, then the laser points scanned in the same column should be on the same horizontal line, as shown in FIG4(a); if the radar XOY plane is not perpendicular to the running direction of the train and there is an inclined angle, then the points in the same column of data will also be inclined, as shown in FIG4(b); the method based on static point cloud correction in the present invention has the following steps:

(1)任取测量扫描的一帧点云数据,选择扫描物体周围静止的物体作为参照系(本发明选择的是轨道旁边的墙壁),提取参照系点云整体数据;(1) Randomly select a frame of point cloud data from the measurement scan, select a stationary object around the scanned object as a reference system (the wall next to the track is selected in the present invention), and extract the overall point cloud data of the reference system;

(2)根据点云数据三维坐标进行反运算求得点云处在雷达扫描的列数;(2) Perform inverse calculation based on the three-dimensional coordinates of the point cloud data to obtain the column number of the point cloud in the radar scan;

(3)提取处于同一列的数据Q={P0,P1......P15},这些数据X,Y坐标值近似相同,其Z轴数据是按照某一趋势逐渐变化的;(3) Extract the data Q = {P 0 , P 1 ..P 15 } in the same column. The X and Y coordinate values of these data are approximately the same, and their Z axis data gradually changes according to a certain trend;

(4)根据Z轴坐标的散点图像进行拟合直线,计算拟合直线方程,利用atan得到相对于Z轴的夹角θz(4) Fitting a straight line according to the scattered point image of the Z-axis coordinate, calculating the equation of the fitted line, and using atan to obtain the angle θ z relative to the Z-axis;

(5)通过角度θ确定旋转矩阵和旋转方向,对该帧点云实现旋转变换。(5) Determine the rotation matrix and rotation direction through the angle θ, and implement the rotation transformation on the frame point cloud.

如图5所示,其中,白色的点云为校正后的数据,灰色的点云为校正前的数据。As shown in FIG5 , the white point cloud is the data after correction, and the gray point cloud is the data before correction.

S30,使用预先设置好的雷达获取当前车速,将以雷达为原点的坐标系转换为以车厢底部为中心的坐标系,利用位移融合算法将单帧点云进行拼接,形成车厢整体点云图;S30, using a pre-set radar to obtain the current vehicle speed, converting the coordinate system with the radar as the origin into a coordinate system with the bottom of the car as the center, and using a displacement fusion algorithm to stitch the single-frame point cloud to form an overall point cloud map of the car;

如图6所示,点A是车厢内的一个扫描点,h为激光雷达距车底的垂直距离,在雷达坐标系下,点A坐标通过激光雷达内部处理输出坐标为(x,y,z),坐标系转换之后,以O1为坐标原点,OO1处在同一条直线上,点A的坐标为(x1,y1,z1),根据位置几何关系可知,As shown in Figure 6, point A is a scanning point in the car, h is the vertical distance between the laser radar and the bottom of the car. In the radar coordinate system, the coordinates of point A are (x, y, z) after the internal processing of the laser radar. After the coordinate system conversion, O1 is the origin of the coordinates, and O1 is on the same straight line. The coordinates of point A are ( x1 , y1 , z1 ). According to the position geometry relationship,

如图7所示,本申请基于移动位移融合补偿的方法,为扫描后的点云Z轴坐标赋予新的Z值。根据扫描点云的总帧数,按照扫描顺序将每帧点云数据在列车前进的方向上分别进行平移,得到基于车厢坐标系下的完整点云图像。假定列车匀速前行的速度为V,激光雷达的工作频率为10Hz,在0.1秒的时间内列车沿着Z轴方向行走的距离长度为V/10,对点云数据做位移补偿:As shown in Figure 7, this application assigns a new Z value to the Z-axis coordinate of the scanned point cloud based on the method of mobile displacement fusion compensation. According to the total number of frames of the scanned point cloud, each frame of point cloud data is translated in the direction of the train's advance in accordance with the scanning order to obtain a complete point cloud image based on the car coordinate system. Assuming that the train moves at a constant speed of V, the operating frequency of the laser radar is 10Hz, and the distance the train travels along the Z-axis direction in 0.1 seconds is V/10, the point cloud data is compensated for displacement:

Zij′=Zij±(n-i)*v/10 Zij ′= Zij ±(ni)*v/10

其中,Zij′代表位移补偿后第i帧点云数据中第j个点的Z坐标值,Zi代表第i帧数据在原始坐标系下第i帧点云数据中第j个点的Z坐标值,n为录制的点云帧数,i为当前的帧数。当激光雷达Z轴方向和列车运行方向相同时,上式取“+”,反之,则取“-”号。Among them, Zij ′ represents the Z coordinate value of the jth point in the i-th frame point cloud data after displacement compensation, Zi represents the Z coordinate value of the jth point in the i-th frame point cloud data in the original coordinate system, n is the number of recorded point cloud frames, and i is the current frame number. When the Z-axis direction of the laser radar is the same as the running direction of the train, the above formula takes the "+" sign, otherwise, it takes the "-" sign.

S40,采用统计滤波和体素化网格法对车厢点云数据降噪和精简;S40, using statistical filtering and voxel gridding method to reduce noise and simplify the car point cloud data;

如图8所示,统计滤波步骤如下:As shown in Figure 8, the statistical filtering steps are as follows:

(1)通过KD-tree树为目标点云建立点云拓扑结构关系;(1) Establish the point cloud topological structure relationship for the target point cloud through the KD-tree tree;

(2)通过索引,寻找采样点的邻域,并计算每个采样点到邻域范围点的平均欧式距离;(2) Find the neighborhood of the sampling point through the index and calculate the average Euclidean distance from each sampling point to the points in the neighborhood;

(3)计算点云数据集内所有点到邻域的平均距离;(3) Calculate the average distance from all points in the point cloud dataset to their neighbors;

(4)得到的距离分布符合高斯函数,从而计算出均值μ和标准差σ;(4) The obtained distance distribution conforms to the Gaussian function, so the mean μ and standard deviation σ are calculated;

(5)设定阈值,剔除噪声数据。由高斯函数分布特性可知,在(μ-σ*std,μ+σ*std)范围内的点都属于有效点云,其中,std称为标准差倍数,用于调整设定阈值范围。若某一采样点di的数值大于μ+σ*std或者小于μ-σ*std,则判定为噪声点,进行过滤。(5) Set a threshold to remove noise data. From the distribution characteristics of the Gaussian function, we know that all points in the range of (μ-σ*std, μ+σ*std) belong to the valid point cloud, where std is called the standard deviation multiple, which is used to adjust the threshold range. If the value of a sampling point d i is greater than μ+σ*std or less than μ-σ*std, it is determined to be a noise point and filtered.

体素化网格选择尺寸为0.1m大小的网格实现对点云数据的精简。The voxelized grid selects a grid size of 0.1m to simplify the point cloud data.

S50,利用移动最小二乘法对拼接的车厢点云数据进行平滑处理;移动最小二乘法的基本步骤如下:S50, smoothing the spliced carriage point cloud data using the moving least squares method; the basic steps of the moving least squares method are as follows:

(1)输入拟合数据点区域,将输入区域进行网格化操作;(1) Input the fitting data point area and perform grid operation on the input area;

(2)确定网格点x影响区域的范围,并确定在该范围内影响的节点数;根据公式计算网格点的节点值;(2) Determine the range of the area affected by the grid point x and the number of nodes affected within the range; calculate the node value of the grid point according to the formula;

(4)遍历所有网格点,重复步骤(2)、(3);(4) Traverse all grid points and repeat steps (2) and (3);

(5)连接网格点计算的数值,形成平滑曲线。(5) Connect the values calculated at the grid points to form a smooth curve.

S60,沿着车辆运行方向对车厢点云数据切片;S60, slicing the car body point cloud data along the vehicle running direction;

由于列车前进的方向是Z轴的正半轴,选择Z轴作为切割方向,将车厢模型点云分割成若干段。点云的密度是有限的,单纯依靠一个单薄的平面难以形成点云的形状轮廓,因此需要这个平面具有一定的“厚度”。相邻两个切片间恰好形成等距离的点云段,因此直接将两个切片面之间的点云进行投影就可以获得该段点云的轮廓:Since the train's forward direction is the positive half of the Z axis, the Z axis is selected as the cutting direction to divide the car model point cloud into several segments. The density of the point cloud is limited. It is difficult to form the shape outline of the point cloud simply by relying on a thin plane, so this plane needs to have a certain "thickness". The two adjacent slices just form an equidistant point cloud segment, so the point cloud between the two slice planes can be directly projected to obtain the outline of the segment:

其中,i为切片的序号,Zi为切平面的位置,l为切片的间隔距离,Zmin和Zmax分别代表在Z轴方向上点云坐标的最小值和最大值,n为切平面个数。Among them, i is the sequence number of the slice, Zi is the position of the cutting plane, l is the interval distance of the slice, Z min and Z max represent the minimum and maximum values of the point cloud coordinates in the Z-axis direction, respectively, and n is the number of cutting planes.

S70,相邻两切片间的点云进行投影,利用alpha算法和射线360度算法提取截面轮廓;S70, the point cloud between two adjacent slices is projected, and the cross-sectional contour is extracted using the alpha algorithm and the ray 360-degree algorithm;

对生成的点云在XOY平面上进行投影,利用alpha算法提取大致点云轮廓,然后通过射线360度算法对轮廓进行筛选,如图9和图10所示,射线360度算法步骤如下:The generated point cloud is projected on the XOY plane, and the alpha algorithm is used to extract the approximate point cloud outline. Then, the outline is screened by the ray 360-degree algorithm, as shown in Figures 9 and 10. The steps of the ray 360-degree algorithm are as follows:

(1)计算要求点云的重心O点标 (1) Calculate the center of gravity of the point cloud O

(2)任意取一点P0(x0,y0)作为起始扫描点,连接OP0作为基准扫描射线,按照扫描线逆时针方向对其余数据点进行扫描;(2) Pick any point P 0 (x 0 , y 0 ) as the starting scanning point, connect OP 0 as the reference scanning ray, and scan the remaining data points in the counterclockwise direction along the scanning line;

(3)计算其余扫描点与基准线的夹角θi(3) Calculate the angles θ i between the remaining scanning points and the reference line;

(4)按照所求夹角θi的大小进行排序,然后按照顺序依次连接点云,从而形成点云的轮廓。(4) Sort the points according to the size of the required angle θi , and then connect the point clouds in order to form the outline of the point cloud.

S80,对于提取的截面轮廓,利用shoelace定理求得截面面积,与切片间距相乘得该段到点云体积;通过累加,计算车厢残留货物的体积。S80, for the extracted cross-sectional contour, the shoelace theorem is used to obtain the cross-sectional area, which is multiplied by the slice spacing to obtain the point cloud volume of the segment; by accumulation, the volume of the remaining cargo in the carriage is calculated.

如图11所示,shoelace定理是在已知多边形的顶点坐标情况下,通过行列式计算得出封闭图像的面积。规定不规则截面是由n个顶点P1,P2...Pn组成,根据射线扫描法将排序过后的点按照逆时针的顺序进行首尾相连,组成封闭的多边形记为Pi,由上述推导过程可知,计算的截面面积Ai为:As shown in Figure 11, the shoelace theorem is to calculate the area of a closed image through the determinant when the vertex coordinates of the polygon are known. It is stipulated that the irregular cross section is composed of n vertices P 1 , P 2 ...P n . According to the ray scanning method, the sorted points are connected end to end in a counterclockwise order to form a closed polygon denoted as P i . From the above derivation process, it can be seen that the calculated cross-sectional area A i is:

其中,Ai是第i个多边形截面的面积,多边形顶点Pi坐标为(xi,yi),xn=x1,yn=y1Wherein, Ai is the area of the i-th polygonal cross section, the coordinates of the polygon vertex Pi are ( xi , yi ), xn = x1 , yn = y1 .

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其它的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

以上所述,仅为本发明的较佳实施例,并不用以限制本发明,凡是依据本发明的技术实质对以上实施例所作的任何细微修改、等同替换和改进,均应包含在本发明技术方案的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any slight modification, equivalent substitution and improvement made to the above embodiment based on the technical essence of the present invention should be included in the protection scope of the technical solution of the present invention.

Claims (6)

1.一种基于激光雷达检测车厢残留货物的方法,其特征在于,包括以下步骤:1. A method for detecting residual cargo in a carriage based on laser radar, characterized in that it comprises the following steps: S10,采用基于欧式距离的聚类分析方法提取单帧原始数据中的车厢数据,并利用三维坐标关系,判断车厢前后边界,获取第一帧和最后一帧数据信息;S10, extracting carriage data from the single-frame original data using a cluster analysis method based on Euclidean distance, and determining the front and rear boundaries of the carriage using a three-dimensional coordinate relationship to obtain the first frame and the last frame data information; S20,采用条件滤波的方法提取车厢目标点云,对采集的单帧点云轮廓进行倾斜校正;S20, extracting the carriage target point cloud by using a conditional filtering method, and performing tilt correction on the collected single-frame point cloud contour; S30,使用预先设置好的雷达获取当前车速,将以雷达为原点的坐标系转换为以车厢底部为中心的坐标系,利用位移融合算法对单帧点云进行拼接,形成车厢整体点云图;S30, using a pre-set radar to obtain the current vehicle speed, converting the coordinate system with the radar as the origin into a coordinate system with the bottom of the car as the center, and using a displacement fusion algorithm to stitch the single-frame point cloud to form an overall point cloud map of the car; S40,采用统计滤波和体素化网格法对车厢点云数据降噪和精简;S40, using statistical filtering and voxel gridding method to reduce noise and simplify the car point cloud data; S50,利用移动最小二乘法对拼接的车厢点云数据进行平滑处理;S50, smoothing the spliced carriage point cloud data using a moving least squares method; S60,沿着车辆运行方向对车厢点云数据切片;S60, slicing the car body point cloud data along the vehicle running direction; S70,相邻两切片间的点云进行投影,利用alpha算法和射线360度算法提取截面轮廓;S70, the point cloud between two adjacent slices is projected, and the cross-sectional contour is extracted using the alpha algorithm and the ray 360-degree algorithm; S80,对于提取的截面轮廓,利用shoelace定理求得截面面积,与切片间距相乘得该段到点云体积;累加计算车厢残留货物的体积;S80, for the extracted cross-sectional profile, the shoelace theorem is used to obtain the cross-sectional area, which is multiplied by the slice spacing to obtain the volume of the point cloud of the segment; the volume of the remaining cargo in the carriage is calculated by accumulation; 所述步骤S80中计算点云体积包括:采用shoelace定理求取不规则多边形的点云截面面积,与切片间隔相乘得到该段点云数据的体积,通过累加得到车厢整体点云体积;用空车厢点云体积与存在残留货物时车厢的体积作差,得到车厢残留货物的体积。The calculation of the point cloud volume in step S80 includes: using the shoelace theorem to obtain the point cloud cross-sectional area of the irregular polygon, multiplying it by the slice interval to obtain the volume of the segment of point cloud data, and obtaining the overall point cloud volume of the carriage by accumulation; subtracting the point cloud volume of the empty carriage from the volume of the carriage when there is residual cargo, to obtain the volume of the residual cargo in the carriage. 2.根据权利要求1所述的一种基于激光雷达检测车厢残留货物的方法,其特征在于,所述步骤S20中对点云进行条件滤波和轮廓校正包括:根据扫描得到的帧数据,选取该帧扫描的静止点云,寻找同一列点云数据,分析其坐标值,拟合计算偏转角度,对整体点云数据进行旋转校正。2. According to the method of detecting residual cargo in a carriage based on laser radar according to claim 1, it is characterized in that the conditional filtering and contour correction of the point cloud in step S20 includes: selecting the static point cloud scanned by the frame data obtained by scanning, finding the same column of point cloud data, analyzing its coordinate values, fitting and calculating the deflection angle, and performing rotation correction on the overall point cloud data. 3.根据权利要求1所述的一种基于激光雷达检测车厢残留货物的方法,其特征在于,所述步骤S30中对坐标系转换和点云拼接包括:基于以雷达为原点的坐标系转化为以车厢为原点的坐标系,根据雷达安装位置关系,确定坐标值转化关系,完成坐标系转换;基于移动位移融合的点云拼接方法,通过赋予点云新的Z轴坐标值,将所有帧点云数据统一校正到同一帧坐标系下,完成点云拼接。3. According to the method of detecting residual cargo in a carriage based on laser radar according to claim 1, it is characterized in that the coordinate system conversion and point cloud splicing in step S30 include: based on the coordinate system with the radar as the origin, the coordinate system is converted into the coordinate system with the carriage as the origin, and the coordinate value conversion relationship is determined according to the radar installation position relationship to complete the coordinate system conversion; based on the point cloud splicing method of mobile displacement fusion, by assigning a new Z-axis coordinate value to the point cloud, all frame point cloud data are uniformly corrected to the same frame coordinate system to complete the point cloud splicing. 4.根据权利要求1所述的一种基于激光雷达检测车厢残留货物的方法,其特征在于,所述步骤S40中统计滤波和体素化网格的方法包括:采样点到邻域点的平均间距分布关系符合高斯分布函数,通过设置阈值,将离群的点云数据剔除;使用体素化网格法对点云数据进行下采样,将点云数据落入到规定大小的网格内,每个网格只保留距离网格中心最近的点云,网格内其余点云删除。4. According to the method of claim 1, the method of detecting residual cargo in a carriage based on laser radar is characterized in that the statistical filtering and voxel grid method in step S40 includes: the average spacing distribution relationship from the sampling point to the neighborhood point conforms to the Gaussian distribution function, and the outlier point cloud data is eliminated by setting a threshold; the point cloud data is down-sampled using the voxel grid method, and the point cloud data falls into a grid of a specified size, and each grid only retains the point cloud closest to the grid center, and the remaining point clouds in the grid are deleted. 5.根据权利要求1所述的一种基于激光雷达检测车厢残留货物的方法,其特征在于,所述步骤S60中对点云数据切片包括:间隔的沿着车辆运行方向用平行于车厢截面的切面对车厢点云数据进行截取,形成一段段分散的点云数据。5. According to the method of claim 1, which is based on laser radar to detect residual cargo in a carriage, it is characterized in that the slicing of the point cloud data in step S60 includes: intercepting the point cloud data of the carriage at intervals along the direction of vehicle movement with a section parallel to the cross section of the carriage to form segments of scattered point cloud data. 6.根据权利要求1所述的一种基于激光雷达检测车厢残留货物的方法,其特征在于,所述步骤S70中提取点云轮廓包括:将相邻切片间的点云进行投影,利用alpha算法确定大致的边界轮廓;然后采用射线360度扫描算法对边界轮廓进行二次判别,剔除不符合条件的边界点云数据。6. According to the method of claim 1, the laser radar-based method for detecting residual cargo in a carriage is characterized in that extracting the point cloud contour in step S70 includes: projecting the point cloud between adjacent slices and determining the approximate boundary contour using an alpha algorithm; then using a ray 360-degree scanning algorithm to perform a secondary judgment on the boundary contour and eliminate boundary point cloud data that does not meet the conditions.
CN202210886142.7A 2022-07-26 2022-07-26 Method for detecting residual cargoes in carriage based on laser radar Active CN115236628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210886142.7A CN115236628B (en) 2022-07-26 2022-07-26 Method for detecting residual cargoes in carriage based on laser radar

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210886142.7A CN115236628B (en) 2022-07-26 2022-07-26 Method for detecting residual cargoes in carriage based on laser radar

Publications (2)

Publication Number Publication Date
CN115236628A CN115236628A (en) 2022-10-25
CN115236628B true CN115236628B (en) 2024-05-31

Family

ID=83675499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210886142.7A Active CN115236628B (en) 2022-07-26 2022-07-26 Method for detecting residual cargoes in carriage based on laser radar

Country Status (1)

Country Link
CN (1) CN115236628B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115423835B (en) * 2022-11-02 2023-03-24 中汽创智科技有限公司 Rod-shaped object point cloud data processing method and device, electronic equipment and storage medium
CN115724221B (en) * 2022-11-15 2024-11-22 大连科润重工起重机有限公司 Intelligent bulk material feeding system
CN115984195B (en) * 2022-12-16 2023-09-29 秦皇岛燕大滨沅科技发展有限公司 Carriage contour detection method and system based on three-dimensional point cloud
CN116358660A (en) * 2023-02-21 2023-06-30 陕西延长石油巴拉素煤业有限公司 Accurate measuring device and method for coal loading position of coal transporting train
CN115856923B (en) * 2023-02-27 2023-06-16 北京理工大学深圳汽车研究院(电动车辆国家工程实验室深圳研究院) Method, device, equipment and storage medium for measuring ore card unloading time
CN115862001A (en) * 2023-03-02 2023-03-28 青岛慧拓智能机器有限公司 Surface mine carriage residue detection method and system based on volume measurement
CN116148809B (en) * 2023-04-04 2023-06-20 中储粮成都储藏研究院有限公司 Automatic generation method and system for grain vehicle sampling point based on laser radar scanning and positioning
CN117314903B (en) * 2023-11-28 2024-03-15 四川港投云港科技有限公司 3D point cloud data processing method for bulk commodity indoor warehouse laser radar
CN117492026B (en) * 2023-12-29 2024-03-15 天津华铁科为科技有限公司 Railway wagon loading state detection method and system combined with laser radar scanning
CN118706044B (en) * 2024-06-04 2025-03-04 山东博硕自动化技术有限公司 Point cloud-based concrete mixing plant aggregate inventory balance detection method
CN118392191B (en) * 2024-06-28 2024-08-23 睿羿科技(山东)有限公司 Method for covering operation of unmanned sweeper in indoor unknown environment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113280733A (en) * 2021-04-07 2021-08-20 深圳市异方科技有限公司 Truck carriage volume measurement method and system based on laser radar
CN113554689A (en) * 2021-07-19 2021-10-26 广州市杜格科技有限公司 Method and device for measuring carriage cargo volume, equipment and storage medium
WO2022141914A1 (en) * 2021-01-01 2022-07-07 杜豫川 Multi-target vehicle detection and re-identification method based on radar and video fusion

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022141914A1 (en) * 2021-01-01 2022-07-07 杜豫川 Multi-target vehicle detection and re-identification method based on radar and video fusion
CN113280733A (en) * 2021-04-07 2021-08-20 深圳市异方科技有限公司 Truck carriage volume measurement method and system based on laser radar
CN113554689A (en) * 2021-07-19 2021-10-26 广州市杜格科技有限公司 Method and device for measuring carriage cargo volume, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于切片方法截面数据处理;龚友平;陈国金;陈立平;;计算机辅助设计与图形学学报;20080315(第03期);全文 *
基于地面激光雷达的洞库容量计量;程效军;熊鑫鑫;杨泽鑫;杨荣淇;;激光与光电子学进展;20191210(第23期);全文 *
基于激光雷达探测技术的列车车厢载货体积测量方法研究;孔德明;张娜;黄紫双;陈晓玉;沈阅;;燕山大学学报;20190331(第02期);全文 *

Also Published As

Publication number Publication date
CN115236628A (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN115236628B (en) Method for detecting residual cargoes in carriage based on laser radar
CN112489212B (en) An intelligent 3D mapping method for buildings based on multi-source remote sensing data
Tóvári et al. Segmentation based robust interpolation-a new approach to laser data filtering
Lee et al. Fusion of lidar and imagery for reliable building extraction
CN111325138B (en) Road boundary real-time detection method based on point cloud local concave-convex characteristics
CN110728753B (en) Target point cloud 3D bounding box fitting method based on linear fitting
CN108921164B (en) A catenary locator slope detection method based on 3D point cloud segmentation
CN108828608B (en) LiDAR background data filtering method in vehicle detection method
KR101549155B1 (en) Method of automatic extraction of building boundary from lidar data
CN110047036B (en) Polar grid-based ground laser scanning data building facade extraction method
CN113487479A (en) Method and system for detecting and identifying high-precision map boundary in real time at vehicle end
CN114581371A (en) Tunnel deformation detection method, system, equipment and storage medium
CN103162659B (en) A kind of method constructing three-dimensional vehicle scan table and generate goods stochastic sampling point
CN116030289A (en) Railway danger monitoring method based on laser radar
CN116402994A (en) Railway danger monitoring method based on laser radar and video image fusion
CN115856923A (en) Measuring method, device, equipment and storage medium for unloading of mine truck
CN113077473A (en) Three-dimensional laser point cloud pavement segmentation method, system, computer equipment and medium
CN110119751B (en) Lidar point cloud target segmentation method, target matching method, device and vehicle
CN117132508B (en) Digital twin data driving method and system based on GIS+BIM technology
CN117788503A (en) A lidar-based road boundary detection method for underground mines
Ariyachandra et al. Application of railway topology for the automated generation of geometric digital twins of railway masts
CN111723797B (en) Method and system for determining bounding box of three-dimensional target
Yeung et al. A preliminary investigation into automated identification of structural steel without a priori knowledge
CN115792958A (en) Unmanned mine car obstacle detection method based on 3D laser radar
Li et al. Pavement pothole detection based on 3d laser point cloud

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