[go: up one dir, main page]

CN112945976A - Method and device for detecting contact fatigue crack of steel rail - Google Patents

Method and device for detecting contact fatigue crack of steel rail Download PDF

Info

Publication number
CN112945976A
CN112945976A CN202110159883.0A CN202110159883A CN112945976A CN 112945976 A CN112945976 A CN 112945976A CN 202110159883 A CN202110159883 A CN 202110159883A CN 112945976 A CN112945976 A CN 112945976A
Authority
CN
China
Prior art keywords
gradient direction
rail
gradient
image
contact fatigue
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
CN202110159883.0A
Other languages
Chinese (zh)
Other versions
CN112945976B (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 Academy of Railway Sciences Corp Ltd CARS
Infrastructure Inspection Institute of CARS
Beijing IMAP Technology Co Ltd
Original Assignee
China Academy of Railway Sciences Corp Ltd CARS
Infrastructure Inspection Institute of CARS
Beijing IMAP Technology 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 China Academy of Railway Sciences Corp Ltd CARS, Infrastructure Inspection Institute of CARS, Beijing IMAP Technology Co Ltd filed Critical China Academy of Railway Sciences Corp Ltd CARS
Priority to CN202110159883.0A priority Critical patent/CN112945976B/en
Publication of CN112945976A publication Critical patent/CN112945976A/en
Application granted granted Critical
Publication of CN112945976B publication Critical patent/CN112945976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种钢轨接触疲劳裂纹的检测方法及装置,其中该方法包括:从采集的轨道图像中确定出待检测钢轨区域图像;将确定出的待检测钢轨区域图像划分为若干个单元区域,确定每个单元区域的梯度方向直方图;根据钢轨接触疲劳裂纹的预设梯度方向特性,以及每个单元区域的梯度方向直方图,检测每个单元区域是否存在接触疲劳裂纹。本发明可以实现高效准确地检测钢轨接触疲劳裂纹,为轨道的养护维修提供了科学可靠的依据。

Figure 202110159883

The invention discloses a method and a device for detecting a contact fatigue crack of a rail, wherein the method comprises: determining an image of a rail area to be detected from a collected rail image; dividing the determined image of the rail area to be detected into several unit areas , determine the gradient direction histogram of each unit area; according to the preset gradient direction characteristics of rail contact fatigue cracks and the gradient direction histogram of each unit area, detect whether there is contact fatigue crack in each unit area. The invention can realize the efficient and accurate detection of the contact fatigue crack of the rail, and provide a scientific and reliable basis for the maintenance and repair of the rail.

Figure 202110159883

Description

Method and device for detecting contact fatigue crack of steel rail
Technical Field
The invention relates to the technical field of rail transit, in particular to a method and a device for detecting contact fatigue cracks of a steel rail.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
The rails are the primary components of the railroad infrastructure that support the train and guide the wheels forward. With the rapid development of railway transportation systems, the running speed of trains, the passenger and freight transportation amount of lines and the axle weight of vehicles are continuously increased, so that the amplitude and the frequency of dynamic load borne by the steel rails of the operation lines are increased, and the condition that rolling contact fatigue cracks appear on the surfaces of the steel rails is more and more serious. The rolling contact fatigue crack of the steel rail is the result that the material of the surface of the steel rail is plastically deformed and fatigued under the repeated action of wheel rail load, and is not abraded. If the pressure continues to act, the cracks can further develop into spalling blocks and even can spread into the interior of the rail to finally cause the rail to break. Therefore, timely and effective contact fatigue crack detection is very important for guaranteeing the operation safety of railways.
Traditional rail contact fatigue crack detection relies on the manual work to patrol and examine, and is with high costs, detection speed is slow to the accuracy of detection is difficult to guarantee. In addition, the existing machine vision-based steel rail contact fatigue crack detection technology is easily influenced by objective environments such as illumination and the like, and the identification accuracy is difficult to guarantee.
Disclosure of Invention
The embodiment of the invention provides a method for detecting contact fatigue cracks of a steel rail, which is used for efficiently and accurately detecting the contact fatigue cracks of the steel rail and comprises the following steps:
determining an image of a steel rail area to be detected from the acquired track image;
dividing the determined steel rail area image to be detected into a plurality of unit areas, and determining a gradient direction histogram of each unit area;
and detecting whether the contact fatigue crack exists in each unit area according to the preset gradient direction characteristic of the steel rail contact fatigue crack and the gradient direction histogram of each unit area.
The embodiment of the invention also provides a detection device for the contact fatigue crack of the steel rail, which is used for efficiently and accurately detecting the contact fatigue crack of the steel rail and comprises the following components:
the steel rail image determining unit is used for determining an image of a steel rail area to be detected from the acquired track image;
the histogram determining unit is used for dividing the determined steel rail area image to be detected into a plurality of unit areas and determining a gradient direction histogram of each unit area;
and the detection unit is used for detecting whether the contact fatigue crack exists in each unit area according to the preset gradient direction characteristic of the steel rail contact fatigue crack and the gradient direction histogram of each unit area.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the detection method of the steel rail contact fatigue crack.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program for executing the method for detecting a rail contact fatigue crack.
In the embodiment of the invention, compared with the prior art, the detection scheme of the steel rail contact fatigue crack comprises the following steps: determining an image of a steel rail area to be detected from the acquired track image; dividing the determined steel rail area image to be detected into a plurality of unit areas, and determining a gradient direction histogram of each unit area; the method for detecting the contact fatigue cracks of the steel rail based on the gradient direction histogram fully utilizes the gradient direction characteristics of the contact fatigue cracks in the steel rail image, is insensitive to the change of the gray value of a single pixel of the image, reduces the influence of factors such as illumination on the image, overcomes the defects of high cost, low detection speed, poor accuracy and the like of manual inspection, and avoids the problem that the technology for detecting the contact fatigue cracks of the steel rail based on machine vision is easily influenced by objective environments such as illumination and the like, The problem that the identification accuracy is difficult to guarantee is solved, and the accuracy of detecting the steel rail contact fatigue cracks in a specific application scene is guaranteed, so that the steel rail contact fatigue cracks can be efficiently and accurately detected, and a scientific and reliable basis is provided for maintenance and repair of the rails.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a schematic flow chart of a method for detecting contact fatigue cracks of a steel rail according to an embodiment of the present invention;
FIG. 2 is a schematic view of an orbit image acquired in an embodiment of the invention;
FIG. 3 is a schematic view of an image of a rail region to be detected determined in the embodiment of the present invention;
FIG. 4a is a schematic diagram of a first sobel operator in the embodiment of the present invention;
FIG. 4b is a schematic diagram of a second sobel operator in the embodiment of the present invention;
FIG. 5 is a schematic diagram showing the presence of contact fatigue cracks in a cell region A and the absence of contact fatigue cracks in a cell region B in an image of a steel rail according to an embodiment of the present invention;
FIG. 6 is a normalized histogram of gradient directions of a unit area A according to an embodiment of the present invention;
FIG. 7 is a normalized histogram of gradient directions of a cell region B according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a device for detecting contact fatigue cracks of a steel rail in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
The invention provides a detection scheme of steel rail contact fatigue cracks, which is an automatic detection method of the steel rail contact fatigue cracks based on image processing, and aims to overcome the defects of high manual inspection cost, low detection speed, poor accuracy and the like in the prior art and avoid the problems that the existing steel rail contact fatigue crack detection technology based on machine vision is easily influenced by objective environments such as illumination and the like and the identification accuracy is difficult to guarantee. The detection scheme of the steel rail contact fatigue crack provided by the embodiment of the invention realizes automatic, efficient and accurate detection of the steel rail contact fatigue crack, and provides a reliable basis for maintenance and repair of the rail. The following describes the detection scheme of the rail contact fatigue crack in detail.
Fig. 1 is a schematic flow chart of a method for detecting contact fatigue cracks of a steel rail in an embodiment of the invention, as shown in fig. 1, where fig. 1 includes the following steps:
step 101: determining an image of a steel rail area to be detected from the acquired track image;
step 102: dividing the determined steel rail area image to be detected into a plurality of unit areas, and determining a gradient direction histogram of each unit area;
step 103: and detecting whether the contact fatigue crack exists in each unit area according to the preset gradient direction characteristic of the steel rail contact fatigue crack and the gradient direction histogram of each unit area.
The method for detecting the contact fatigue cracks of the steel rail provided by the embodiment of the invention realizes that the gradient direction characteristic of the contact fatigue cracks in the steel rail image is utilized, whether the contact fatigue cracks exist in the steel rail is judged by calculating the gradient direction histogram of the unit area in the steel rail area image, the gradient direction characteristic of the contact fatigue cracks in the steel rail image is fully utilized, meanwhile, the method is insensitive to the change of the gray value of a single pixel of the image, the influence of factors such as illumination and the like on the image is reduced, the accuracy of the detection of the contact fatigue cracks of the steel rail in a specific application scene is ensured, the contact fatigue cracks of the steel rail are efficiently and accurately detected, and the scientific and reliable basis is provided for the maintenance and the repair of the rail.
The method for detecting contact fatigue cracks of a steel rail provided by the embodiment of the invention is described in detail below with reference to fig. 2 to 7, and comprises the following steps:
step a, acquiring a track image, and marking an image of a steel rail from the track image, namely step 101.
In one embodiment, determining the image of the rail region to be detected from the acquired track image may include: and determining the image of the steel rail area to be detected from the acquired rail image according to the preset gray value characteristic and the width value characteristic of the top surface of the steel rail.
During specific implementation, the implementation mode of determining the steel rail area image to be detected from the acquired track image further improves the efficiency and accuracy of determining the steel rail area image to be detected, and further improves the detection efficiency and accuracy of the steel rail contact fatigue crack.
Specifically, a track image may be taken from above the rails, and the taken track image may be read as shown in fig. 2. The captured rail image includes a non-rail region in addition to the rail portion. The grey value of the top surface of the steel rail is high due to long-term friction between the wheel and the surface of the steel rail, meanwhile, the width of the top surface of the steel rail in the image is a fixed value (marked as R), and the image of the steel rail is marked from the image of the rail by using the characteristics, and the method comprises the following steps:
[1] the method includes the steps of dividing a track image into a certain number of longitudinal areas with the width of R of the top surface of a steel rail in a mode that a moving step length is one column of the longitudinal width of the image from the left side of the track image, specifically, dividing the track image into a plurality of columns according to pixel points, moving the first longitudinal area from the left side of the track image to the left side of the R, moving the width of one column of the longitudinal width of the image to the right side of the track image to obtain the second longitudinal area from the left side of the track image to the left side of the R +1, and moving the width of one column of the longitudinal width of the image to the right side of the track image in the same mode until the longitudinal area with the width of R reaches the right side of the image.
[2] Calculating the average value of the gray levels of the pixels of each longitudinal area with the width of R of the track image;
[3] and marking the steel rail image according to the gray average value of the pixels of each longitudinal area.
And counting the average value of the gray levels of the pixels of each longitudinal region with the width of R in the track image, and determining the longitudinal region with the width of R with the maximum average value as the region where the steel rail is positioned, thereby marking the image of the steel rail.
As can be seen from the above, in an embodiment, determining the image of the rail region to be detected from the acquired track image according to the preset gray value feature and the width value feature of the top surface of the rail may include:
dividing the track image into a plurality of longitudinal areas with the width being the width of the top surface of the steel rail in a mode that the moving step length is one row of the width of the image in the longitudinal direction from one side of the track image which is longitudinally parallel to the steel rail;
determining the gray average value of each pixel of a longitudinal area with the width of the top surface of the steel rail of each rail image;
and determining a steel rail area image according to the gray average value of the pixels of each longitudinal area.
During specific implementation, the further implementation mode for determining the image of the steel rail area to be detected further improves the efficiency and accuracy for determining the image of the steel rail area to be detected, and further improves the detection efficiency and accuracy of the contact fatigue crack of the steel rail.
As can be seen from the above, in an embodiment, determining a rail region image according to a gray-scale average of pixels of each longitudinal region may include:
determining the longitudinal area with the maximum average value width as the width of the top surface of the steel rail as the area where the steel rail is located according to the gray average value of the pixels of the longitudinal area with the width of the top surface of the steel rail of each rail image, and determining the image of the steel rail area according to the area where the steel rail is located.
In specific implementation, the embodiment of determining the rail region image according to the gray average of the pixels of each longitudinal region further improves the efficiency and accuracy of determining the rail region image to be detected, and further improves the detection efficiency and accuracy of the rail contact fatigue crack.
And b, dividing the marked image of the steel rail into a plurality of unit areas, and counting the gradient direction histogram of each unit area, namely the step 102.
Image of marked rail as shown in fig. 3, the image of the rail is divided into a plurality of unit areas, for example, each unit area is 32 × 32 pixels. For each unit region, counting a gradient direction histogram of the unit region, specifically including the following steps:
[1] and calculating the gradient direction of each pixel point of the unit area.
Convolving two sobel edge detection operators with each pixel point of the unit area respectively, and calculating the gradient value sum of the pointsThe direction of the gradient. The two sobel edge detection operators used are shown in fig. 4a and 4b, where sobel edge detection operator 1 (first sobel edge detection operator) shown in fig. 4a is used to calculate the horizontal gradient gxThe sobel edge detection operator 2 (second sobel edge detection operator) shown in FIG. 4b is used to calculate the vertical gradient gy. Gradient value of each pixel
Figure BDA0002935735120000061
Direction of gradient
Figure BDA0002935735120000062
θ∈(-90°,90°]。
[2] And counting the gradient direction histogram of the unit area.
Gradient direction theta of each pixel point in unit area belongs to (-90 DEG, 90 DEG)]Firstly, the gradient direction range is divided into 18 (a plurality of gradient direction range groups), each gradient direction range group is formed by every 10 degrees, and each pixel point of the unit area is classified into one group according to the gradient direction. For example, if the gradient direction θ of a pixel is 45 °, the pixel is classified into a group of 40 ° to 50 °. Then, the gradient values corresponding to all the pixel points in each group are accumulated to obtain 18 numerical values. The histogram of gradient directions is an array [ h ] composed of the 18 values1,h2,h3,…,h18]The angle range corresponding to the gradient direction is [ -90 DEG to-80 DEG, -80 DEG to-70 DEG, -70 DEG to-60 DEG, - … DEG, 80 DEG to 90 DEG]. The histogram representation method is insensitive to the change of the gray value of a single pixel, reduces the influence of illumination and the like on an image, and improves the detection efficiency and accuracy of the contact fatigue crack of the steel rail.
As can be seen from the above, in one embodiment, determining a gradient direction histogram of each unit region may include:
determining the gradient value and gradient direction of each pixel point of each unit area;
and determining a gradient direction histogram of each unit region according to the gradient value and the gradient direction of each pixel point.
In specific implementation, the implementation mode of determining the gradient direction histogram of each unit area improves the detection efficiency and accuracy of the steel rail contact fatigue crack.
As can be seen from the above, in an embodiment, determining the gradient value and the gradient direction of each pixel point of each unit region may include:
convolving the first Sobel edge detection operator with each pixel point of each unit area to obtain a horizontal gradient;
convolving the second sobel operator edge detection operator with each pixel point of each unit area to obtain a vertical gradient;
and determining the gradient value and the gradient direction of each pixel point according to the horizontal gradient and the vertical gradient.
In specific implementation, the implementation mode of determining the gradient value and the gradient direction of each pixel point of each unit area improves the detection efficiency and accuracy of the steel rail contact fatigue crack.
As can be seen from the above, in an embodiment, determining a gradient direction histogram of each unit region according to the gradient value and the gradient direction of each pixel point may include:
classifying each pixel point into one of a plurality of pre-divided gradient direction range groups according to the gradient direction of each pixel point;
accumulating the gradient values corresponding to all the pixel points in each group to obtain a plurality of gradient accumulated values;
and determining a gradient direction histogram of each unit region according to the plurality of gradient accumulated values and the angle range of the gradient direction corresponding to each gradient accumulated value.
In specific implementation, the implementation mode of determining the gradient direction histogram of each unit region according to the gradient value and the gradient direction of each pixel point further improves the detection efficiency and accuracy of the steel rail contact fatigue crack.
And c, judging whether the contact fatigue crack exists in each unit region according to the gradient direction characteristic of the contact fatigue crack, namely the step 103.
The undamaged rail surface is smooth and flat, while the rail surface with contact fatigue cracks has obvious abnormal characteristics. The contact fatigue crack has obvious directionality, the crack and the longitudinal direction of the steel rail form a certain angle, the crack is shown on an image of the steel rail, and the gradient direction of a pixel point at the position of the contact fatigue crack forms a certain angle with the longitudinal direction of the steel rail. The method for judging whether contact fatigue cracks exist in each unit area by utilizing the characteristics comprises the following steps:
[1] the gradient direction histogram of each unit area is normalized.
For the ith unit area, calculating the gradient direction histogram [ h ] of the unit areai1,hi2,hi3,…,hi18]Sum ofih
Figure BDA0002935735120000071
The following formula is then utilized:
Figure BDA0002935735120000072
performing histogram normalization of gradient direction on the histogram of gradient direction of the unit region, [ h _ normi1,h_normi2,h_normi3,…,h_normi18]The histogram of the normalized gradient direction of the unit area is obtained, and the angle ranges corresponding to the gradient direction are [ -90 DEG to-80 DEG, -80 DEG to-70 DEG, -70 DEG to-60 DEG, - … DEG, and 80 DEG to 90 DEG]。
[2] And calculating the sum of the normalized gradients of the normalized gradient direction histograms of each unit region in a gradient direction range of-80 DEG to-10 DEG (a first preset gradient direction range).
For the ith unit area, the normalized gradient direction histogram of the unit area is the sum of normalized gradients in the gradient direction range of-80 DEG to-10 DEG
Figure BDA0002935735120000073
[3] The sum of the normalized gradients of the normalized gradient direction histogram of each unit region in the gradient direction range of 10 ° to 80 ° (second preset gradient direction range) is calculated.
For the ith unit area, the normalized gradient direction histogram of the unit area is the sum of the normalized gradients in the gradient direction range of 10-80 DEG
Figure BDA0002935735120000081
[4] Comparing the sum of the normalized gradients of the normalized gradient direction histograms of the unit areas in the gradient direction range of-80 DEG to-10 DEG and the sum of the normalized gradients in the gradient direction range of 10 DEG to 80 DEG with a significance ratio (a preset characteristic ratio), and judging whether contact fatigue cracks exist in each unit area.
The cell region a in the rail image shown in fig. 5 has contact fatigue cracks, and the cell region B has no contact fatigue cracks. Fig. 6 is a normalized gradient direction histogram of the cell region a, and it can be seen from the histogram that the gradient direction occupies a large proportion in the range of 10 ° to 80 °, and the sum of the normalized gradients in the range of 10 ° to 80 ° in the gradient direction is calculated to be 0.6067. Fig. 7 is a normalized gradient direction histogram of the cell region B, and it can be seen from the histogram that the proportion of the gradient directions in each group is approximately the same, and the sum of the normalized gradients in the gradient direction in the range of 10 ° to 80 ° is calculated to be 0.3857 between 0.05 and 0.06.
By using the above feature, the sum of normalized gradients of the normalized gradient direction histogram of each cell region in the gradient direction range of-80 ° to-10 ° and the sum of normalized gradients of the normalized gradient direction histogram of 10 ° to 80 ° are compared with the saliency ratio (here, the saliency ratio is 0.55), and if the sum of normalized gradients of the normalized gradient direction histogram of the cell region in the gradient direction range of-80 ° to-10 ° or the sum of normalized gradients of the normalized gradient direction histogram of the cell region in the gradient direction range of 10 ° to 80 ° is greater than the saliency ratio, it is determined that the contact fatigue crack exists in the cell region.
From the above description, in an embodiment, the detecting whether the contact fatigue crack exists in each unit region according to the preset gradient direction characteristic of the contact fatigue crack of the steel rail and the gradient direction histogram of each unit region may include:
normalizing the gradient direction histogram of each unit area to obtain a normalized gradient direction histogram of each unit area;
determining the sum of normalized gradients of the normalized gradient direction histogram of each unit area in a first preset gradient direction range;
determining the sum of the normalized gradients of the normalized gradient direction histogram of each unit area in a second preset gradient direction range;
and comparing the sum of the normalized gradients in the first preset gradient direction range and the sum of the normalized gradients in the second preset gradient direction range with a preset characteristic proportion to determine whether the contact fatigue crack exists in each unit region.
In specific implementation, the embodiment of detecting whether the contact fatigue crack exists in each unit area further improves the detection efficiency and accuracy of the contact fatigue crack of the steel rail.
In summary, the method for detecting contact fatigue cracks of a steel rail provided by the embodiment of the invention utilizes the gradient direction characteristics of the contact fatigue cracks in the steel rail image, and automatically and accurately detects whether the contact fatigue cracks exist in the steel rail by calculating the normalized gradient direction histogram of the unit area in the steel rail image.
The embodiment of the invention also provides a detection device for the contact fatigue crack of the steel rail, which is described in the following embodiment. Because the principle of solving the problems by the device is similar to the detection method of the contact fatigue cracks of the steel rail, the implementation of the device can refer to the implementation of the detection method of the contact fatigue cracks of the steel rail, and repeated parts are not described again.
Fig. 8 is a schematic structural diagram of a detection apparatus for contact fatigue crack of a steel rail according to an embodiment of the present invention, as shown in fig. 8, the apparatus includes:
the steel rail image determining unit 01 is used for determining an image of a steel rail area to be detected from the acquired track image;
the histogram determining unit 02 is used for dividing the determined steel rail area image to be detected into a plurality of unit areas and determining a gradient direction histogram of each unit area;
the detecting unit 03 is configured to detect whether a contact fatigue crack exists in each unit region according to a preset gradient direction characteristic of the steel rail contact fatigue crack and a gradient direction histogram of each unit region.
In an embodiment, the rail image determination unit may be specifically configured to: and determining the image of the steel rail area to be detected from the acquired rail image according to the preset gray value characteristic and the width value characteristic of the top surface of the steel rail.
In an embodiment, the rail image determination unit may be specifically configured to:
dividing the track image into a plurality of longitudinal areas with the width being the width of the top surface of the steel rail in a mode that the moving step length is one row of the width of the image in the longitudinal direction from one side of the track image which is longitudinally parallel to the steel rail;
determining the gray average value of each pixel of a longitudinal area with the width of the top surface of the steel rail of each rail image;
and determining a steel rail area image according to the gray average value of the pixels of each longitudinal area.
In one embodiment, determining the rail region image according to the gray-scale average of the pixels of each longitudinal region may include:
determining the longitudinal area with the maximum average value width as the width of the top surface of the steel rail as the area where the steel rail is located according to the gray average value of the pixels of the longitudinal area with the width of the top surface of the steel rail of each rail image, and determining the image of the steel rail area according to the area where the steel rail is located.
In one embodiment, the histogram determination unit may be configured to:
determining the gradient value and gradient direction of each pixel point of each unit area;
and determining a gradient direction histogram of each unit region according to the gradient value and the gradient direction of each pixel point.
In one embodiment, determining the gradient value and gradient direction of each pixel point of each unit region may include:
convolving the first Sobel edge detection operator with each pixel point of each unit area to obtain a horizontal gradient;
convolving the second sobel operator edge detection operator with each pixel point of each unit area to obtain a vertical gradient;
and determining the gradient value and the gradient direction of each pixel point according to the horizontal gradient and the vertical gradient.
In one embodiment, determining a gradient direction histogram of each unit region according to the gradient value and the gradient direction of each pixel point may include:
classifying each pixel point into one of a plurality of pre-divided gradient direction range groups according to the gradient direction of each pixel point;
accumulating the gradient values corresponding to all the pixel points in each group to obtain a plurality of gradient accumulated values;
and determining a gradient direction histogram of each unit region according to the plurality of gradient accumulated values and the angle range of the gradient direction corresponding to each gradient accumulated value.
In an embodiment, the detection unit may be specifically configured to:
normalizing the gradient direction histogram of each unit area to obtain a normalized gradient direction histogram of each unit area;
determining the sum of normalized gradients of the normalized gradient direction histogram of each unit area in a first preset gradient direction range;
determining the sum of the normalized gradients of the normalized gradient direction histogram of each unit area in a second preset gradient direction range;
and comparing the sum of the normalized gradients in the first preset gradient direction range and the sum of the normalized gradients in the second preset gradient direction range with a preset characteristic proportion to determine whether the contact fatigue crack exists in each unit region.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the detection method of the steel rail contact fatigue crack.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program for executing the method for detecting a rail contact fatigue crack.
The detection scheme of the steel rail contact fatigue crack provided by the embodiment of the invention has the beneficial effects that:
the automatic detection method for the contact fatigue cracks of the steel rail based on the image processing can automatically and accurately detect the contact fatigue cracks of the steel rail from the acquired track image, and effectively reduces the manual input of the detection of the contact fatigue cracks of the steel rail. Compared with the existing method for the contact fatigue crack of the steel rail based on machine vision, the detection scheme provided by the embodiment of the invention utilizes the gradient direction characteristic of the contact fatigue crack in the steel rail image, and judges whether the contact fatigue crack exists in the steel rail by calculating the normalized gradient direction histogram of the unit area in the steel rail image. The detection method based on the gradient direction histogram fully utilizes the gradient direction characteristics of the contact fatigue cracks in the steel rail image, is insensitive to the change of the gray value of a single pixel of the image, reduces the influence of factors such as illumination and the like on the image, ensures the accuracy of the detection of the contact fatigue cracks of the steel rail in a specific application scene, and has simple algorithm and easy realization. The invention realizes the automatic, efficient and accurate detection of the contact fatigue cracks of the steel rail and provides reliable basis for the maintenance and repair of the rail.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1.一种钢轨接触疲劳裂纹的检测方法,其特征在于,包括:1. a detection method of rail contact fatigue crack, is characterized in that, comprises: 从采集的轨道图像中确定出待检测钢轨区域图像;Determine the image of the rail area to be detected from the collected track image; 将确定出的待检测钢轨区域图像划分为若干个单元区域,确定每个单元区域的梯度方向直方图;Divide the determined image of the rail area to be detected into several unit areas, and determine the gradient direction histogram of each unit area; 根据钢轨接触疲劳裂纹的预设梯度方向特性,以及每个单元区域的梯度方向直方图,检测每个单元区域是否存在接触疲劳裂纹。According to the preset gradient direction characteristics of the contact fatigue crack of the rail and the gradient direction histogram of each unit area, it is detected whether there is a contact fatigue crack in each unit area. 2.如权利要求1所述的钢轨接触疲劳裂纹的检测方法,其特征在于,从采集的轨道图像中确定出待检测钢轨区域图像,包括:根据钢轨轨顶面的预设灰度值特征和宽度值特征,从采集的轨道图像中确定出待检测钢轨区域图像。2. The method for detecting contact fatigue cracks of a rail as claimed in claim 1, wherein determining the image of the rail region to be detected from the collected rail image, comprising: according to the preset gray value feature of the rail top surface and The width value feature determines the image of the rail area to be detected from the collected track image. 3.如权利要求2所述的钢轨接触疲劳裂纹的检测方法,其特征在于,根据钢轨轨顶面的预设灰度值特征和宽度值特征,从采集的轨道图像中确定出待检测钢轨区域图像,包括:3. The method for detecting contact fatigue cracks of a rail as claimed in claim 2, wherein the rail area to be detected is determined from the collected rail image according to the preset gray value feature and width value feature of the rail top surface images, including: 自与钢轨纵向平行的轨道图像一侧起,移动步长为图像纵向一列宽度的方式,将轨道图像划分为多个宽度为钢轨轨顶面宽度的纵向区域;From the side of the track image parallel to the longitudinal direction of the rail, the moving step is the width of one column in the longitudinal direction of the image, and the track image is divided into a plurality of longitudinal areas whose width is the width of the top surface of the rail; 确定轨道图像的每个宽度为钢轨轨顶面宽度的纵向区域的像素的灰度均值;Determine the average gray value of the pixels of the longitudinal area where each width of the track image is the width of the top surface of the rail; 根据每个所述纵向区域的像素的灰度均值确定出钢轨区域图像。The rail area image is determined according to the gray mean value of the pixels of each longitudinal area. 4.如权利要求1所述的钢轨接触疲劳裂纹的检测方法,其特征在于,确定每个单元区域的梯度方向直方图,包括:4. The method for detecting contact fatigue cracks of steel rails according to claim 1, characterized in that, determining the gradient direction histogram of each unit region, comprising: 确定每个单元区域的每个像素点的梯度值和梯度方向;Determine the gradient value and gradient direction of each pixel in each unit area; 根据每个像素点的梯度值和梯度方向,确定每个单元区域的梯度方向直方图。According to the gradient value and gradient direction of each pixel point, the gradient direction histogram of each unit area is determined. 5.如权利要求4所述的钢轨接触疲劳裂纹的检测方法,其特征在于,确定每个单元区域的每个像素点的梯度值和梯度方向,包括:5. The method for detecting contact fatigue cracks of steel rails as claimed in claim 4, wherein determining the gradient value and gradient direction of each pixel point in each unit area, comprising: 将第一索贝尔算子sobel边缘检测算子与每个单元区域的每个像素点进行卷积,得到水平梯度;Convolve the first Sobel operator sobel edge detection operator with each pixel in each unit area to obtain the horizontal gradient; 将第二索贝尔算子sobel边缘检测算子与每个单元区域的每个像素点进行卷积,得到垂直梯度;Convolve the second Sobel operator sobel edge detection operator with each pixel in each unit area to obtain the vertical gradient; 根据所述水平梯度和垂直梯度,确定每个像素点的梯度值和梯度方向。According to the horizontal gradient and vertical gradient, the gradient value and gradient direction of each pixel point are determined. 6.如权利要求4所述的钢轨接触疲劳裂纹的检测方法,其特征在于,根据每个像素点的梯度值和梯度方向,确定每个单元区域的梯度方向直方图,包括:6. The method for detecting contact fatigue cracks of steel rails as claimed in claim 4, wherein the gradient direction histogram of each unit region is determined according to the gradient value and gradient direction of each pixel point, comprising: 根据每个像素点的梯度方向,将每个像素点归入预先划分的多个梯度方向范围组的一个组中;According to the gradient direction of each pixel point, classify each pixel point into one of the pre-divided multiple gradient direction range groups; 将每一组中所有像素点对应的梯度值进行累加,得到多个梯度累加值;Accumulate the gradient values corresponding to all the pixels in each group to obtain multiple accumulated gradient values; 根据所述多个梯度累加值,以及每一梯度累加值对应的梯度方向的角度范围,确定每个单元区域的梯度方向直方图。The gradient direction histogram of each unit region is determined according to the multiple accumulated gradient values and the angle range of the gradient direction corresponding to each accumulated gradient value. 7.如权利要求1所述的钢轨接触疲劳裂纹的检测方法,其特征在于,根据钢轨接触疲劳裂纹的预设梯度方向特性,以及每个单元区域的梯度方向直方图,检测每个单元区域是否存在接触疲劳裂纹,包括:7. The method for detecting contact fatigue cracks of steel rails according to claim 1, characterized in that, according to the preset gradient direction characteristics of contact fatigue cracks of steel rails, and the gradient direction histogram of each unit area, it is detected whether each unit area is Contact fatigue cracks are present, including: 对每个单元区域的梯度方向直方图进行归一化处理,得到每个单元区域的归一化梯度方向直方图;Normalize the gradient direction histogram of each unit area to obtain the normalized gradient direction histogram of each unit area; 确定每个单元区域的归一化梯度方向直方图在第一预设梯度方向范围内的归一化梯度之和;Determine the normalized gradient sum of the normalized gradient direction histogram of each unit area within the first preset gradient direction range; 确定每个单元区域的归一化梯度方向直方图在第二预设梯度方向范围内的归一化梯度之和;Determine the normalized gradient sum of the normalized gradient direction histogram of each unit area within the second preset gradient direction range; 将所述在第一预设梯度方向范围内的归一化梯度之和以及在第二预设梯度方向范围内的归一化梯度之和,与预设特性比例进行比较,确定每个单元区域是否存在接触疲劳裂纹。Comparing the sum of the normalized gradients within the range of the first preset gradient direction and the sum of the normalized gradients within the range of the second preset gradient direction with the preset characteristic ratio to determine each unit area presence of contact fatigue cracks. 8.一种钢轨接触疲劳裂纹的检测装置,其特征在于,包括:8. A detection device for contact fatigue cracks of steel rails, characterized in that, comprising: 钢轨图像确定单元,用于从采集的轨道图像中确定出待检测钢轨区域图像;The rail image determination unit is used to determine the image of the rail area to be detected from the acquired rail image; 直方图确定单元,用于将确定出的待检测钢轨区域图像划分为若干个单元区域,确定每个单元区域的梯度方向直方图;The histogram determination unit is used to divide the determined image of the rail area to be detected into several unit areas, and determine the gradient direction histogram of each unit area; 检测单元,用于根据钢轨接触疲劳裂纹的预设梯度方向特性,以及每个单元区域的梯度方向直方图,检测每个单元区域是否存在接触疲劳裂纹。The detection unit is used for detecting whether there is a contact fatigue crack in each unit area according to the preset gradient direction characteristic of the contact fatigue crack of the rail and the gradient direction histogram of each unit area. 9.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7任一所述方法。9. A computer device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements any of claims 1 to 7 when the processor executes the computer program the method. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有执行权利要求1至7任一所述方法的计算机程序。10. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing any one of the methods of claims 1 to 7.
CN202110159883.0A 2021-02-05 2021-02-05 Method and device for detecting contact fatigue crack of steel rail Active CN112945976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110159883.0A CN112945976B (en) 2021-02-05 2021-02-05 Method and device for detecting contact fatigue crack of steel rail

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110159883.0A CN112945976B (en) 2021-02-05 2021-02-05 Method and device for detecting contact fatigue crack of steel rail

Publications (2)

Publication Number Publication Date
CN112945976A true CN112945976A (en) 2021-06-11
CN112945976B CN112945976B (en) 2023-01-24

Family

ID=76242408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110159883.0A Active CN112945976B (en) 2021-02-05 2021-02-05 Method and device for detecting contact fatigue crack of steel rail

Country Status (1)

Country Link
CN (1) CN112945976B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113537015A (en) * 2021-07-06 2021-10-22 中国国家铁路集团有限公司 Method for identifying rail scratches, method for routing inspection and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05164534A (en) * 1991-12-13 1993-06-29 Nippon Steel Corp Railway rail fatigue damage evaluation device and its evaluation method
US20120263342A1 (en) * 2011-04-15 2012-10-18 International Business Machines Corporation Method and system of rail component detection using vision technology
CN107364466A (en) * 2017-07-18 2017-11-21 上海欣铁机电科技有限公司 A kind of contactless rail polling system of rail vehicle
CN109389639A (en) * 2018-07-16 2019-02-26 中国铁道科学研究院集团有限公司基础设施检测研究所 Rail profile laser stripe center extraction method and device under dynamic environment
CN111105409A (en) * 2019-12-27 2020-05-05 中国铁道科学研究院集团有限公司 Automatic detection method, equipment and system for steel rail light band based on image processing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05164534A (en) * 1991-12-13 1993-06-29 Nippon Steel Corp Railway rail fatigue damage evaluation device and its evaluation method
US20120263342A1 (en) * 2011-04-15 2012-10-18 International Business Machines Corporation Method and system of rail component detection using vision technology
CN107364466A (en) * 2017-07-18 2017-11-21 上海欣铁机电科技有限公司 A kind of contactless rail polling system of rail vehicle
CN109389639A (en) * 2018-07-16 2019-02-26 中国铁道科学研究院集团有限公司基础设施检测研究所 Rail profile laser stripe center extraction method and device under dynamic environment
CN111105409A (en) * 2019-12-27 2020-05-05 中国铁道科学研究院集团有限公司 Automatic detection method, equipment and system for steel rail light band based on image processing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李永波: ""基于机器视觉的铁路线路状态检测算法研究"", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113537015A (en) * 2021-07-06 2021-10-22 中国国家铁路集团有限公司 Method for identifying rail scratches, method for routing inspection and related device

Also Published As

Publication number Publication date
CN112945976B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
Liu et al. A review of applications of visual inspection technology based on image processing in the railway industry
CN111391881B (en) Method and device for detecting fastening state of steel rail fastener
CN108662983B (en) Method for detecting and calculating correlation coefficient of steel rail abrasion
CN106683076B (en) A Method of Locomotive Wheelset Tread Damage Detection Based on Texture Feature Clustering
CN111311560B (en) Method and device for detecting state of steel rail fastener
CN108177660B (en) Steel rail abrasion detection method with laser image processing step
Karakose et al. A new approach for condition monitoring and detection of rail components and rail track in railway
WO2017175555A1 (en) Wear inspection apparatus and wear inspection method
CN110047070B (en) Method and system for identifying rail wear degree
CN110567680B (en) Track fastener looseness detection method based on angle comparison
CN103034850A (en) Trouble of moving freight car detection system (TFDS) block key loss fault automatic identification method
Wang et al. An improved YOLOv8 algorithm for rail surface defect detection
CN113448333A (en) Bottom routing inspection positioning method and device based on sensor combination and electronic equipment
CN112945976A (en) Method and device for detecting contact fatigue crack of steel rail
Masoudi et al. An investigation of rail failure due to wear using statistical pattern recognition techniques
CN118522158B (en) Method, equipment and medium for monitoring real-time traffic situation in tunnel
CN112435289B (en) Method and device for detecting width of rail joint gap of steel rail
Aydin et al. Detection of Rail Defects with Deep Learning Controlled Autonomous UAV
CN114119957A (en) Method and device for profile detection of high-speed railway rails
CN109978879B (en) Box corner in-groove state detection method based on railway wagon loading video monitoring
Ge et al. A fine-grained method for detecting defects of track fasteners using rgb-d image
Karaköse et al. Real time implementation for fault diagnosis and condition monitoring approach using image processing in railway switches
CN118015000B (en) Surface defect detection method for guide rail based on image processing
Emoto et al. Wheel surface defect detection method using laser sensor and machine vision
Chandran et al. An investigation of railway fastener detection using image processing and augmented deep learning. Sustainability. 2021; 13: 12051

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