CN112132824A - A method for automatic detection of truck axle box spring faults - Google Patents

A method for automatic detection of truck axle box spring faults Download PDF

Info

Publication number
CN112132824A
CN112132824A CN202011064893.8A CN202011064893A CN112132824A CN 112132824 A CN112132824 A CN 112132824A CN 202011064893 A CN202011064893 A CN 202011064893A CN 112132824 A CN112132824 A CN 112132824A
Authority
CN
China
Prior art keywords
image
box spring
axle box
spring
fault
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011064893.8A
Other languages
Chinese (zh)
Other versions
CN112132824B (en
Inventor
刘丹丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Kejia General Mechanical and Electrical Co Ltd
Original Assignee
Harbin Kejia General Mechanical and Electrical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Kejia General Mechanical and Electrical Co Ltd filed Critical Harbin Kejia General Mechanical and Electrical Co Ltd
Priority to CN202011064893.8A priority Critical patent/CN112132824B/en
Publication of CN112132824A publication Critical patent/CN112132824A/en
Application granted granted Critical
Publication of CN112132824B publication Critical patent/CN112132824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/80Geometric correction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8854Grading and classifying of flaws
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8887Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

A method for automatically detecting a failure of a truck axle box spring belongs to the technical field of truck operation. The invention aims to solve the problems that the accuracy and the stability of fault detection of a truck axle box spring in a manual image detection mode are not high, and the driving safety of a truck cannot be ensured. The method comprises the following steps: 3D high-definition imaging equipment is built around the track, and after the truck passes through the equipment, a height image and a gray image are obtained; roughly positioning a shaft box spring component in the image by combining hardware wheel base information with priori knowledge; after the height image correction is carried out, the axle box spring is accurately positioned after the axle box spring vehicle type is identified by using an image processing method; carrying out fault analysis on the journal box spring by using an advanced image processing algorithm and a mode identification method, and judging whether the journal box spring has a fleeing-out fault or a breaking fault; and uploading an alarm to the axle box spring component with the fault, and carrying out corresponding processing by the staff according to the identification result. The invention is used for detecting the failure of the axle box spring of the truck.

Description

一种货车轴箱弹簧故障自动检测方法A method for automatic detection of truck axle box spring faults

技术领域technical field

本发明涉及一种货车轴箱弹簧故障自动检测方法。属于货车运行技术领域。The invention relates to an automatic detection method for the spring failure of a truck axle box. It belongs to the technical field of truck operation.

背景技术Background technique

货车轴箱弹簧起到缓冲和固定作用,用于避免车辆在运行速度范围内蛇行运动失稳,保证曲线通过时具有良好的导向性能,减轻轮缘与钢轨间的磨耗和噪声,确保运行安全和平稳。轴箱弹簧的折断或窜出会危及行车安全,因此,铁路有关部分对轴箱弹簧故障检测非常重视。在轴箱弹簧故障检测中,一般采用人工检查图像的方式进行故障检测。但由于检车人员在工作过程中极易出现疲劳、注意力不集中等情况,而且还可能由于个人原因很导致出现漏检、错检的情况,无法确保货车的行车安全。The truck axle box spring plays a buffering and fixing role, which is used to avoid the instability of the vehicle's meandering motion within the operating speed range, ensure good guiding performance when the curve passes, reduce the wear and noise between the rim and the rail, and ensure safe and stable operation. smooth. The breaking or popping out of the axle box spring will endanger the driving safety. Therefore, the relevant departments of the railway attach great importance to the fault detection of the axle box spring. In the fault detection of the axle box spring, the fault detection is generally carried out by manually checking the image. However, due to the fact that the inspectors are prone to fatigue and inattention during the work process, and may also miss inspections or wrong inspections due to personal reasons, it is impossible to ensure the safety of trucks.

图像处理与模式识别技术不断成熟,采用图像自动识别的方式可提高检测效率和稳定性。因此,采用图像处理、模式识别自动进行轴箱弹簧故障识别,可以有效提高检测准确率和稳定性。Image processing and pattern recognition technologies continue to mature, and automatic image recognition can improve detection efficiency and stability. Therefore, using image processing and pattern recognition to automatically identify axle box spring faults can effectively improve the detection accuracy and stability.

发明内容SUMMARY OF THE INVENTION

本发明是为了解决现有货车轴箱弹簧采用人工检测图像的方式进行故障检测准确性和稳定性不高,而无法确保货车行车安全的问题。现提供一种货车轴箱弹簧故障自动检测方法。The present invention is to solve the problem that the fault detection accuracy and stability of the existing truck axle box spring by using the manual detection image method are not high, and the running safety of the truck cannot be ensured. An automatic detection method for a truck axle box spring fault is provided.

一种货车轴箱弹簧故障自动检测方法,包括:An automatic detection method for a truck axle box spring failure, comprising:

步骤一、货车通过成像设备后,获取轴箱弹簧大图像,所述轴箱弹簧大图像包括高度图像和灰度图像;Step 1: After the truck passes through the imaging device, a large image of the axle box spring is obtained, and the large image of the axle box spring includes a height image and a grayscale image;

步骤二、对轴箱弹簧大图像中的高度图像进行校正;Step 2: Correct the height image in the large image of the axle box spring;

步骤三、分别获取轴箱弹簧整体高度子图像与灰度子图像;Step 3: Obtain the overall height sub-image and the gray-scale sub-image of the axle box spring respectively;

步骤四、根据得到的灰度图像来判别轴箱弹簧的故障类型;Step 4. Determine the fault type of the axle box spring according to the obtained grayscale image;

步骤五、识别出故障后,通过子图像与轴箱弹簧大图像、轴箱弹簧大图像与原始图像的映射关系,计算出故障在原始图像中的位置,并通过故障显示平台显示该故障。Step 5. After identifying the fault, calculate the position of the fault in the original image through the mapping relationship between the sub-image and the large image of the axle box spring, and the large image of the axle box spring and the original image, and display the fault through the fault display platform.

有益效果beneficial effect

1、本发明利用图像自动识别的方式代替人工检测,提高了检测效率和准确率,确保了货车行车的安全。1. The present invention uses the method of automatic image recognition to replace manual detection, improves detection efficiency and accuracy, and ensures the safety of trucks.

2、采用3D硬件设备拍摄出的图像,可依据部件与相机距离即部件深度信息直接对部件定位,后续识别简洁高效。2. The image captured by 3D hardware equipment can directly locate the part according to the distance between the part and the camera, that is, the depth information of the part, and the subsequent identification is simple and efficient.

3、系统在3D设备采集的高度与灰度图像上进行故障识别,3D高度图像是被检测物体的深度信息,使得故障检测不受雨水、粉笔、白漆、污渍的影响,故系统稳定性增强。3. The system performs fault identification on the height and grayscale images collected by the 3D equipment. The 3D height image is the depth information of the detected object, so that the fault detection is not affected by rain, chalk, white paint and stains, so the system stability is enhanced .

4、对3D高度图像先校正后识别,降低了后面检测故障的复杂度且识别准确度高。4. The 3D height image is corrected first and then recognized, which reduces the complexity of fault detection later and has high recognition accuracy.

5、针对不同探测站、不同车型进行图像融合得到弹簧正常无故障的模板图像,提高了系统普适性。5. The image fusion of different detection stations and different vehicle models can obtain a normal and trouble-free template image of the spring, which improves the universality of the system.

6、先识别头圈故障,再识别尾圈故障,最后识别左右窜出与中间层折断的流程,提高了系统检测效率。6. First identify the fault of the head ring, then identify the fault of the tail ring, and finally identify the process of the left and right jumping out and the middle layer breaking, which improves the system detection efficiency.

附图说明Description of drawings

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

图2为本发明具体故障识别流程图;Fig. 2 is the specific fault identification flow chart of the present invention;

图3为深度信息y与行位置x关系图。FIG. 3 is a diagram showing the relationship between depth information y and row position x.

具体实施方式Detailed ways

具体实施方式一:参照图1来说明本实施方式,本实施方式一种货车轴箱弹簧故障自动检测方法,包括:Embodiment 1: Referring to FIG. 1 to illustrate this embodiment, a method for automatic detection of a truck axle box spring failure in this embodiment includes:

步骤一、在轨道周围搭建成像设备,成像设备与车体侧面有一定仰角,货车通过成像设备后,获取轴箱弹簧大图像(即粗定位图像,根据轴距信息并结合轴箱弹簧在转向架中位置的先验知识截取的包含轴箱弹簧但范围比轴箱弹簧大一些的图像),所述大图像包括高度图像与灰度图像;Step 1. Build an imaging device around the track. The imaging device has a certain elevation angle with the side of the car body. After the truck passes through the imaging device, a large image of the axle box spring (that is, a rough positioning image is obtained, according to the wheelbase information and combined with the axle box spring on the bogie. The image containing the axlebox spring but the range is larger than the axlebox spring intercepted by the prior knowledge of the position in the middle), the large image includes the height image and the grayscale image;

步骤二、对轴箱弹簧大图像中的高度图像进行校正;Step 2: Correct the height image in the large image of the axle box spring;

步骤三、分别获取轴箱弹簧整体高度子图像与灰度子图像;Step 3: Obtain the overall height sub-image and the gray-scale sub-image of the axle box spring respectively;

步骤四、根据得到的灰度图像来判别轴箱弹簧的故障类型;Step 4. Determine the fault type of the axle box spring according to the obtained grayscale image;

步骤五、识别出故障后,通过子图像与轴箱弹簧大图像、轴箱弹簧大图像与原始图像的映射关系,计算出故障在原始图像中的位置,并通过故障显示平台显示该故障。Step 5. After identifying the fault, calculate the position of the fault in the original image through the mapping relationship between the sub-image and the large image of the axle box spring, and the large image of the axle box spring and the original image, and display the fault through the fault display platform.

具体实施方式二:本实施方式与具体实施方式一不同的是,所述步骤一在轨道周围搭建成像设备,货车通过设备后,获取轴箱弹簧大图像,所述轴箱弹簧大图像包括高度图像与灰度图像;具体过程为:Embodiment 2: The difference between this embodiment and Embodiment 1 is that in step 1, an imaging device is built around the track. After the truck passes through the device, a large image of the axle box spring is obtained, and the large image of the axle box spring includes a height image. and grayscale images; the specific process is:

所述成像设备包括相机采集单元、磁钢单元、3D图像采集工控机单元、控制工控机单元和图像识别单元,其中相机采集单元包括相机和补偿光模块;The imaging device includes a camera acquisition unit, a magnetic steel unit, a 3D image acquisition industrial computer unit, a control industrial computer unit, and an image recognition unit, wherein the camera acquisition unit includes a camera and a compensation light module;

相机采集单元拍摄采集经过的货车图像,3D图像采集工控机单元将采集到的图像进行存储;磁钢单元将近端磁钢和远端磁钢信号传递给控制工控机单元,控制工控机单元通过获取的近端磁钢和远端磁钢信号信息计算出车速和轴距信息,并将车速和磁钢轴距信息传递给图像识别单元,图像识别单元通过利用获取的轴距信息和图像信息等来实现自动识别算法;The camera acquisition unit captures and collects the images of the passing trucks, and the 3D image acquisition industrial computer unit stores the collected images; the magnetic steel unit transmits the signals of the near-end magnetic steel and the remote magnetic steel to the control industrial computer unit, and the control industrial computer unit passes the The obtained signal information of the near-end magnetic steel and the far-end magnetic steel calculates the vehicle speed and wheelbase information, and transmits the vehicle speed and the magnetic steel wheelbase information to the image recognition unit. The image recognition unit uses the obtained wheelbase information and image information, etc. to realize automatic identification algorithm;

将控制工控机单元得到的磁钢轴距信息与货车原始图像相结合,由先验知识可粗略估计出轴箱弹簧部件位置,并得到轴箱弹簧大图像,所述轴箱弹簧大图像包含一一对应的高度图像与灰度图像。Combining the magnetic steel wheelbase information obtained by controlling the industrial computer unit with the original image of the truck, the position of the axle box spring can be roughly estimated from the prior knowledge, and the large image of the axle box spring can be obtained, and the large image of the axle box spring includes a A corresponding height image and grayscale image.

其它步骤及参数与具体实施方式一相同。Other steps and parameters are the same as in the first embodiment.

具体实施方式三:本实施方式与具体实施方式一或二不同的是,所述步骤二对轴箱弹簧大图像中的高度图像进行校正;具体过程为:Embodiment 3: The difference between this embodiment and Embodiment 1 or 2 is that the step 2 corrects the height image in the large image of the axle box spring; the specific process is:

通过有仰角的相机拍摄货车的侧面图像,故最初得到的3D图像的同一平面的深度信息并不相同,比如,轴承的3D图像并不是理想的圆柱,而是离地面远的部分深度信息值较小,离地面近的部分深度信息值较大;The side image of the truck is taken by a camera with an elevation angle, so the depth information of the same plane of the 3D image obtained at first is not the same. For example, the 3D image of the bearing is not an ideal cylinder, but the depth information value of the part far from the ground is relatively high. Small, the depth information value of the part close to the ground is larger;

对于同一平面的物体,理想的深度信息值应为相同,但最初在深度图像中却在不同行的图像中有所区别;深度信息存在一定扰动,但大体上实际的深度信息与最初深度信息的差值和图像中的行数关系相当于直角三角形的两条直角边;当前x行位置的深度信息为y,实际的深度信息为yr,其对应关系如图3所示,公式为:For objects on the same plane, the ideal depth information value should be the same, but initially in the depth image, it is different in the images of different lines; there is a certain disturbance in the depth information, but generally the actual depth information is the same as the original depth information. The relationship between the difference value and the number of rows in the image is equivalent to the two right-angled sides of a right-angled triangle; the depth information of the current x row position is y, and the actual depth information is yr. The corresponding relationship is shown in Figure 3, and the formula is:

(yr-y) = k(x-x0) (1)(yr-y) = k(x-x0) (1)

其中,k表示倾角正切值;x0表示同一平面的物体当高度图像中的深度值取到最大值时,其所在图像中的行数;k与x0的值通过大量的采集数据计算拟合得到;选择转向架侧架实际物体是同一平面,且部件尺寸大的地方采集数据;Among them, k represents the tangent value of the inclination angle; x0 represents the number of lines in the image where the depth value in the height image of the object on the same plane reaches the maximum value; the values of k and x0 are calculated and fitted through a large amount of collected data; Select the place where the actual object of the bogie side frame is the same plane and the size of the parts is large to collect data;

由于货车在行驶故障中本身在运动,每辆车与3D高清成像设备间的距离是有变化的,所以对不同车型、不同站点以及不同时间过车的深度图像进行采集,为深度图像校正提供充足数据;Since the truck itself is moving during the driving failure, the distance between each vehicle and the 3D high-definition imaging device varies. Therefore, the depth images of different vehicle models, different sites and passing vehicles at different times are collected to provide sufficient depth image correction. data;

对于轴箱弹簧大图像,经公式(1)计算后得到yr,即完成了对高度图像的校正;此时同一平面的物体基本为同一值,轴承3D图像大体为圆柱。For the large image of the axle box spring, yr is calculated by formula (1), and the correction of the height image is completed; at this time, the objects in the same plane are basically the same value, and the 3D image of the bearing is roughly a cylinder.

其它步骤及参数与具体实施方式一或二相同。Other steps and parameters are the same as in the first or second embodiment.

具体实施方式四:本实施方式与具体实施方式一至三之一不同的是,所述步骤三分别获取轴箱弹簧整体高度子图像与灰度子图像;具体过程为:Embodiment 4: The difference between this embodiment and one of Embodiments 1 to 3 is that the step 3 obtains the overall height sub-image and the gray-scale sub-image of the axle box spring respectively; the specific process is:

对于校正后的高度图像,由于轴承与相机距离和轴箱弹簧与相机的距离相近,故高度信息值也用类似的先验知识来判断当前图像中是否有轴箱弹簧部件;For the corrected height image, since the distance between the bearing and the camera and the distance between the axle box spring and the camera are similar, the height information value also uses similar prior knowledge to determine whether there is an axle box spring part in the current image;

若高度图像中在轴承高度附近范围内的部件只有轴承,则当前图像为不包含轴箱弹簧部件,故不在识别范围内;若高度图像中在轴承高度附近范围内的部件有轴承与轴箱弹簧,则要进行后续的识别;先对轴箱弹簧用阈值th1进行全局二值化;然后查找二值化图像中面积大于阈值th2的连通区域;若找到了多于1个连通区域则为包含轴箱弹簧的车型,进行后续识别;若只检测到了一个连通区域则为不包含轴箱弹簧的车型,则不进行后续识别;If the components in the height image near the bearing height only have bearings, the current image does not contain the axle box spring components, so it is not in the recognition range; if the components in the height image near the bearing height include bearings and axle box springs , then follow-up identification is required; first perform global binarization on the axle box spring with the threshold th1; then find the connected area in the binarized image whose area is greater than the threshold th2; if more than one connected area is found, it is the axis containing the axis For models with box springs, follow-up identification is performed; if only one connected area is detected, it is a model that does not include axle box springs, and subsequent identification is not performed;

全局二值化图像中除去中间轴承的连通区域即为两条轴箱弹簧的位置;通过连通区域位置,分别截取轴箱弹簧整体高度子图像与灰度子图像;根据比例截取轴箱弹簧头圈与上邻近部件的高度子图像与灰度子图像;根据比例截取轴箱弹簧尾圈与下邻近部件的高度子图像与灰度子图像。In the global binarized image, the connected area with the intermediate bearing removed is the position of the two axle box springs; through the position of the connected area, the overall height sub-image and the gray sub-image of the axle box spring are intercepted respectively; the head ring of the axle box spring is intercepted according to the proportion The height sub-image and the gray-scale sub-image of the upper adjacent part; the height sub-image and the gray-scale sub-image of the axle box spring tail ring and the lower adjacent part are intercepted according to the scale.

其它步骤及参数与具体实施方式一至三之一相同。Other steps and parameters are the same as one of the first to third embodiments.

具体实施方式五:本实施方式与具体实施方式一至四之一不同的是,所述步骤四判断识别轴箱弹簧的故障类型;具体过程为:Embodiment 5: The difference between this embodiment and one of Embodiments 1 to 4 is that the step 4 determines and identifies the failure type of the axle box spring; the specific process is:

轴箱弹簧窜出分为头圈窜出、尾圈窜出和左右倾斜窜出三种情况;轴箱弹簧折断分为头圈折断、中间层弹簧折断和裂缝型折断;轴箱弹簧头圈窜出与尾圈窜出属于端部弹簧窜出,且均采取相同识别方式;左右倾斜窜出采用另外方式进行识别;轴箱弹簧折断采用头圈折断与中间层折断两种识别方式;若识别出了头圈窜出或折断则不进行后续识别;若识别出了尾圈窜出则不进行后续识别;对轴箱弹簧左右窜出、中间折断进行进一步的识别识别;Axle box spring breakout is divided into three cases: head ring breakout, tail ring breakout and left and right tilt breakout; axle box spring breakage is divided into head ring breakage, middle layer spring breakage and crack-type breakage; axle box spring head ring breakout The exit and tail ring escape belong to the end spring, and both adopt the same identification method; the left and right inclined escapes are identified by other methods; the axle box spring is broken by two identification methods: head ring break and middle layer break; If the head ring escapes or is broken, the subsequent identification is not performed; if the tail ring is identified, the subsequent identification is not performed; further identification is performed on the left and right side of the axle box spring and the middle breakage;

步骤四一、模板数据库建立:Step 41. Template database establishment:

对不同探测站点端部轴箱弹簧与邻近部件灰度图像进行采集;对采集后的图像进行多尺度的图像融合,作为正常无故障图像,融合后的图像具有更多、更有价值的信息;Collect grayscale images of axlebox springs at the end of different detection stations and adjacent components; perform multi-scale image fusion on the collected images, as normal and fault-free images, the fused images have more and more valuable information;

步骤四二、端部窜出与折断故障识别Step 42. Identification of the end protruding and breaking faults

正常情况下,轴箱弹簧的头圈与上邻近部件的位置关系是紧密相贴的,轴箱弹簧的头圈折断或窜出后头圈弹簧与上邻近部件不再紧密相贴,边缘(图像中的亮暗交接处)比正常无故障图像增多,且纹理更加丰富,通过取轴箱弹簧头圈和上邻近部件灰度子图像与正常无故障图像的比对即可识别出是否出现故障;正常的轴箱弹簧尾圈与下邻近部件的位置关系是尾圈卡在下邻近部件槽中,轴箱弹簧的尾圈窜出后会骑在下邻近部件上,通过弹簧尾圈和下邻近部件灰度子图像与正常无故障图像比对即可识别是否出现故障;Under normal circumstances, the positional relationship between the head ring of the axle box spring and the upper adjacent part is closely attached. After the head ring of the axle box spring is broken or jumped out, the head coil spring and the upper adjacent part are no longer closely attached, and the edge (in the image) The number of light and dark junctions) is more than the normal non-faulty image, and the texture is richer. By comparing the gray sub-image of the axle box spring head ring and the upper adjacent parts with the normal non-faulty image, it can be identified whether there is a fault; normal The positional relationship between the tail ring of the axle box spring and the lower adjacent part is that the tail ring is stuck in the groove of the lower adjacent part, and the tail ring of the axle box spring will ride on the lower adjacent part after it escapes. The image can be identified by comparing the image with the normal non-faulty image.

将当前端部轴箱弹簧及相邻部件灰度子图与上一步中的正常无故障图像进行相似度匹配,检测到的图像相似度低于某一阈值时,进行故障报警。Match the grayscale sub-images of the axle box spring and adjacent parts at the current end with the normal non-faulty image in the previous step for similarity. When the similarity of the detected image is lower than a certain threshold, a fault alarm will be issued.

步骤四三、中间层弹簧故障识别Step 43. Identify the fault of the middle layer spring

通过对弹簧整体倾斜程度识别出弹簧是否发生左右倾斜窜出的故障,至此若仍未检测出故障,则进行轴箱弹簧中间层折断故障的识别;Identify whether the spring has a fault that the spring is inclined left and right by the overall inclination of the spring. If the fault has not been detected so far, the middle layer of the axle box spring is broken and the fault is identified;

轴箱弹簧左右倾斜窜出的故障通过高度图像计算外接矩形倾斜度识别,对轴箱弹簧整体高度子图像进行OTSU二值化处理,然后经形态学开运算处理消除相邻弹簧之间的弹簧间隙,最后检测图像中最大的连通区域;当最大连通区域的最小外接矩形的倾斜角度大于k时,即判定为轴箱弹簧有左右倾斜窜出的故障发生;The fault that the axle box spring is inclined to the left and right is identified by calculating the inclination of the external rectangle by the height image, and the OTSU binarization process is performed on the overall height sub-image of the axle box spring, and then the spring gap between adjacent springs is eliminated by the morphological opening operation. , and finally detect the largest connected area in the image; when the inclination angle of the smallest circumscribed rectangle of the largest connected area is greater than k, it is determined that the axle box spring has a left and right tilting fault;

对于轴箱弹簧中间层的折断,通过对每层弹簧进一步分析来识别;先对每层弹簧进行分割,此分割方法可将正常图像每层弹簧被分割成多个高度小于正常弹簧直径的小区域,若出现高度大于一圈弹簧高度的连通区域,则证明有上下错位的折断故障发生,进行故障报警;若仍未检测出故障,但检测出连通区域宽度小于正常宽度的80%,则证明有弹簧存在裂缝型折断,进行故障报警。For the fracture of the middle layer of the axle box spring, it can be identified by further analysis of each layer of spring; first, each layer of spring is segmented. This segmentation method can divide each layer of normal image spring into multiple small areas whose height is smaller than the normal spring diameter , if there is a connected area with a height greater than the height of a circle of springs, it proves that there is a broken fault of up and down dislocation, and a fault alarm is issued; if no fault is detected, but the width of the connected area is detected to be less than 80% of the normal width, it proves that there is There is a crack-type break in the spring, and a fault alarm is performed.

具体实施方式六、本实施方式与具体实施方式一至五之一不同的是,所述分割方法包括:Embodiment 6. The difference between this embodiment and one of Embodiments 1 to 5 is that the segmentation method includes:

获取弹簧掩膜图像:Get a spring mask image:

对当前列的弹簧原始高度图像进行全局二值化(轴箱弹簧有两列弹簧,定位每列(条)子图后,要对每一列的轴箱弹簧分别进行后续故障检测),灰度值大于th1为255,小于th1为0,即可得到掩膜图像;Perform global binarization on the original height image of the spring in the current column (the axle box spring has two columns of springs, after positioning each column (bar) sub-image, the subsequent fault detection of the axle box spring in each column should be performed separately), gray value If it is greater than th1, it is 255, and if it is less than th1, it is 0, and the mask image can be obtained;

获取弹簧滤波图像:Get a spring filtered image:

将滤波图像的所有像素值赋值为0,大小与原始图像相同;对于(i,j)位置,若在掩膜图像中为非0,则进行如下操作:以(i,j)为中心,计算原始图像长度为W,宽度为H矩形区域内(只考虑掩膜图像中非0像素位置)的亮度均值作为滤波图像中的像素值;Assign all pixel values of the filtered image to 0, and the size is the same as the original image; for the (i, j) position, if it is not 0 in the mask image, perform the following operations: take (i, j) as the center, calculate The length of the original image is W and the width is H in the rectangular area (only the non-zero pixel position in the mask image is considered) as the pixel value in the filtered image;

获取弹簧分割图像:Get a spring segmented image:

将分割图像像素全部设置为0,大小与原始图像相同;对于(i,j)位置,当在掩膜图像中像素为非0,则进行如下操作:滤波图像中(i-h1,j)与(i+h1,j)位置的像素值均与(i,j)做差,当差值的绝对值相加大于th时,分割图像像素值为255。Set all the pixels of the segmented image to 0, and the size is the same as the original image; for the position (i, j), when the pixel in the mask image is non-0, perform the following operations: in the filtered image (i-h1, j) and The pixel values at the position (i+h1, j) are all different from (i, j). When the absolute value of the difference is greater than th, the pixel value of the segmented image is 255.

Claims (8)

1. A method for automatically detecting the failure of a freight car axle box spring is characterized by comprising the following steps:
the method comprises the following steps that firstly, after a truck passes through imaging equipment, a large image of the axle box spring is obtained, wherein the large image of the axle box spring comprises a height image and a gray level image;
step two, correcting a height image in a large image of the shaft box spring;
respectively acquiring an integral height sub-image and a gray sub-image of the axle box spring;
judging the fault type of the journal box spring according to the obtained gray level image;
and step five, after the fault is identified, calculating the position of the fault in the original image through the mapping relation between the sub-image and the axle box spring large image and between the axle box spring large image and the original image, and displaying the fault through a fault display platform.
2. The method for automatically detecting the axle box spring fault of the freight car according to claim 1, wherein in the first step, imaging equipment is built around a track, and after the freight car passes through the equipment, a large image of the axle box spring is obtained and comprises a height image and a gray level image; the specific process is as follows:
combining magnetic steel wheel base information obtained by processing of imaging equipment with an original image of a truck, estimating the position of an axle box spring component by priori knowledge to obtain a large image of the axle box spring, wherein the large image of the axle box spring comprises a height image and a gray image which are in one-to-one correspondence.
3. The method according to claim 2, wherein the step of correcting the height image in the large journal spring image; the specific process is as follows:
shooting a truck side image through a camera to obtain depth information of a 3D image, taking a relation between actual depth information and an initial depth information difference value and a line number in the image as a relation between two right-angle sides of a right-angle triangle, taking the depth information of a current x-line position as y, taking the actual depth information as yr, and taking a corresponding relation formula as follows:
(yr-y)=k(x-x0) (1)
wherein k represents a dip tangent value; x0 represents the number of lines in the image of the same plane object when the depth value in the height image takes the maximum value; after the calculation of the formula (1), yr is obtained, and the correction of the height image is completed.
4. The automatic failure detection method for the axle box spring of the freight car according to claim 3, wherein the step three of obtaining the whole height sub-image and the gray sub-image of the axle box spring respectively; the specific process is as follows:
if only the bearing is arranged in the bearing height range in the height image, the image does not contain the axle box spring component and is not in the identification range; if the parts in the height image within the range near the bearing height are provided with the bearing and the axle box spring, the axle box spring is globally binarized by a threshold th 1; then searching a connected region with the area larger than a threshold th2 in the binary image; if more than 1 communication area is found, the vehicle type containing the axle box spring is identified, and subsequent identification is carried out; if only one connected region is detected, subsequent identification is not carried out;
removing the communication area of the middle bearing in the global binary image to obtain the positions of the two journal box springs; respectively intercepting an axle box spring integral height sub-image and a gray level sub-image through the position of the communication area; intercepting a height sub-image and a gray sub-image of the journal box spring head ring and the upper adjacent component according to the proportion; and (4) intercepting a height sub-image and a gray level sub-image of the tail coil of the journal box spring and the lower adjacent component according to the proportion.
5. The method according to claim 4, wherein the fourth step is to determine and identify the type of axle box spring failure; the specific process is as follows:
the shaft box spring play is divided into head ring play, tail ring play and left and right inclined play; the axle box spring is broken into head ring breaking, middle layer spring breaking and crack breaking;
when the head ring is identified to be broken or broken, the subsequent fault identification is not carried out; if the tail ring is identified to be shifted out, subsequent identification is not carried out; further identifying the left and right fleeing of the shaft box spring and the middle breaking of the shaft box spring;
fourthly, acquiring grayscale images of the axle box springs at the end parts of different detection stations and adjacent parts, and carrying out image fusion on the acquired images to obtain normal fault-free images;
step four, identifying the end fleeing and breaking faults:
the position relation of the head ring of the axle box spring and the upper adjacent part is in a normal condition of close attachment, when the head ring of the axle box spring is broken off or is shifted out, the head ring spring is not closely attached to the upper adjacent part any more, the edge is more than normal and fault-free images, and whether a fault occurs or not is judged by comparing the grey level sub-images of the head ring of the axle box spring and the upper adjacent part with the normal and fault-free images; the position relation of the tail ring of the axle box spring and the lower adjacent part is that the tail ring is normally clamped in a groove of the lower adjacent part, the tail ring of the axle box spring can ride on the lower adjacent part after coming out, and whether a fault occurs or not is judged by comparing gray level sub-images of the tail ring of the axle box spring and the lower adjacent part with normal fault-free images;
matching the similarity of the gray level subgraphs of the current end part axle box spring and the adjacent parts with a normal fault-free image, and performing fault alarm when the detected image similarity is lower than a certain threshold value;
step four and step three, identifying faults of the middle layer spring:
identifying whether the spring has a fault of left-right inclined jumping or not by the integral inclination degree of the spring, and identifying the break fault of the middle layer of the axle box spring if the fault is not detected;
identifying the left and right inclined fleeing faults of the axle box spring by calculating the gradient of an external rectangle through a height image, carrying out OTSU binaryzation processing on the whole height subimage of the axle box spring, eliminating the spring gap between adjacent springs through morphological opening operation processing, and finally detecting the largest communication area in the image; when the inclination angle of the minimum circumscribed rectangle of the maximum communication area is larger than k, the journal box spring is judged to have a fault of jumping out in a left-right inclined mode;
for the breakage of the middle layer of the axle box spring, each layer of spring in a normal image is divided into a plurality of small areas with the height smaller than the diameter of the normal spring by dividing each layer of spring, if a communicated area with the height larger than the height of one circle of spring appears, the breakage fault of up-down dislocation is proved to occur, and fault alarm is carried out; if the fault is not detected yet, but the width of the communication area is detected to be smaller than the normal width by a certain proportion, the existence of crack type fracture of the spring is proved, and fault alarm is carried out.
6. The automatic failure detection method for the axle box spring of the freight car according to claim 5, wherein the dividing method comprises:
(1) acquiring a spring mask image:
globally binarizing the spring original height image of the current column, wherein the gray value is 255 when the gray value is larger than th1, and 0 when the gray value is smaller than or equal to th1 to obtain a mask image;
(2) acquiring a spring filtering image:
assigning all pixel values of the filtered image to be 0, wherein the pixel values are the same as those of the original image; if the (i, j) position is not 0 in the mask image, the following operations are performed: taking (i, j) as a center, calculating a brightness mean value in a rectangular region with the original image length of W and the width of H (only non-0 pixel position in the mask image is considered) as a pixel value in the filtering image;
(3) acquiring a spring segmentation image:
setting all the pixels of the segmented image to be 0, wherein the size of the pixels is the same as that of the original image; for the (i, j) position, when the pixel is not 0 in the mask image, the following operations are performed: the pixel values at the (i-h1, j) and (i + h1, j) positions in the filtered image are all subtracted from (i, j), and when the sum of the absolute values of the differences is larger than th, the pixel value of the segmented image is 255.
7. The method for automatically detecting the axle box spring fault of the freight car according to claim 1, wherein an imaging device is built around the track, and the imaging device is a high-definition 3D imaging device.
8. The method according to claim 5, wherein the width of the communicating region is smaller than the normal width by a ratio of 80% of the normal width.
CN202011064893.8A 2020-09-30 2020-09-30 Automatic detection method for failure of freight car axle box spring Active CN112132824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011064893.8A CN112132824B (en) 2020-09-30 2020-09-30 Automatic detection method for failure of freight car axle box spring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011064893.8A CN112132824B (en) 2020-09-30 2020-09-30 Automatic detection method for failure of freight car axle box spring

Publications (2)

Publication Number Publication Date
CN112132824A true CN112132824A (en) 2020-12-25
CN112132824B CN112132824B (en) 2021-03-30

Family

ID=73844909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011064893.8A Active CN112132824B (en) 2020-09-30 2020-09-30 Automatic detection method for failure of freight car axle box spring

Country Status (1)

Country Link
CN (1) CN112132824B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113358971A (en) * 2021-04-27 2021-09-07 国网山东省电力公司淄博供电公司 Distribution line tree obstacle positioning method and monitoring device based on visible light image analysis

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268588A (en) * 2014-06-19 2015-01-07 江苏大学 Automatic detection method for brake shoe borer loss fault of railway wagon
CN105243381A (en) * 2015-11-25 2016-01-13 朱金良 Automatic fault recognition and detection system and method based on 3D information
CN109047033A (en) * 2018-06-27 2018-12-21 天津大学 The full detection method of surface flaw of rolling element
CN110588712A (en) * 2019-10-09 2019-12-20 哈尔滨市科佳通用机电股份有限公司 A vehicle-mounted railway track detection system based on 3D information
CN111079746A (en) * 2019-12-12 2020-04-28 哈尔滨市科佳通用机电股份有限公司 Image recognition method of railway freight car axle box spring fault
CN111091558A (en) * 2019-12-12 2020-05-01 哈尔滨市科佳通用机电股份有限公司 Railway wagon swing bolster spring jumping fault image identification method
CN111091554A (en) * 2019-12-12 2020-05-01 哈尔滨市科佳通用机电股份有限公司 Railway wagon swing bolster fracture fault image identification method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268588A (en) * 2014-06-19 2015-01-07 江苏大学 Automatic detection method for brake shoe borer loss fault of railway wagon
CN105243381A (en) * 2015-11-25 2016-01-13 朱金良 Automatic fault recognition and detection system and method based on 3D information
CN109047033A (en) * 2018-06-27 2018-12-21 天津大学 The full detection method of surface flaw of rolling element
CN110588712A (en) * 2019-10-09 2019-12-20 哈尔滨市科佳通用机电股份有限公司 A vehicle-mounted railway track detection system based on 3D information
CN111079746A (en) * 2019-12-12 2020-04-28 哈尔滨市科佳通用机电股份有限公司 Image recognition method of railway freight car axle box spring fault
CN111091558A (en) * 2019-12-12 2020-05-01 哈尔滨市科佳通用机电股份有限公司 Railway wagon swing bolster spring jumping fault image identification method
CN111091554A (en) * 2019-12-12 2020-05-01 哈尔滨市科佳通用机电股份有限公司 Railway wagon swing bolster fracture fault image identification method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113358971A (en) * 2021-04-27 2021-09-07 国网山东省电力公司淄博供电公司 Distribution line tree obstacle positioning method and monitoring device based on visible light image analysis

Also Published As

Publication number Publication date
CN112132824B (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN211731391U (en) Intelligent online detection device for track surface defects
CN110261436A (en) Rail deformation detection method and system based on infrared thermal imaging and computer vision
KR20210157000A (en) System and method for underbody inspection of vehicle
CN110310255B (en) Point switch notch detection method based on target detection and image processing
CN111598846B (en) A method for detecting rail defects in tunnels based on YOLO
CN111079746B (en) Railway wagon axle box spring fault image identification method
CN109489724B (en) A kind of comprehensive detection device and detection method for safe running environment of tunnel train
CN114881915A (en) Symmetry-based mobile phone glass cover plate window area defect detection method
CN113298059A (en) Pantograph foreign matter intrusion detection method, device, computer equipment, system and storage medium
CN105203552A (en) 360-degree tread image detecting system and method
CN111080607B (en) Rolling bearing oil slinging fault detection method based on image recognition
CN111079734B (en) Method for detecting foreign matters in triangular holes of railway wagon
CN111080650A (en) Fault detection method for looseness and loss of bearing key nut of small parts of railway freight car
CN111080600A (en) Fault identification method for split pin on spring supporting plate of railway wagon
CN111561967A (en) Real-time online detection method and system for pantograph-catenary operation state
CN115272236A (en) A method for detecting the loading state of rolled steel goods in railway transportation
CN110415221A (en) An automatic detection method for anti-lifting of container trucks based on image feature point matching
CN111091557B (en) Method and system for detecting breakage fault of flange of bearing saddle of railway wagon
CN112132824B (en) Automatic detection method for failure of freight car axle box spring
CN111832571B (en) Automatic detection method for truck brake beam strut fault
CN112085723B (en) Automatic detection method for spring jumping fault of truck bolster
CN112819776A (en) Pantograph structure abnormality recognition method and system, electronic device, and storage medium
CN111652228B (en) Railway wagon sleeper beam hole foreign matter detection method
CN116434171A (en) A detection method of strong light interference lane markings based on image inpainting algorithm
CN112001908B (en) Railway freight car sleeper beam hole carried foreign matter detection method

Legal Events

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