A method for detecting deformation of a wave plate of a highway based on image recognition

By using deep neural network image segmentation and contour steering angle calculation, the timeliness and efficiency issues of corrugated board deformation recognition on highways are solved, and efficient corrugated board deformation detection is achieved.

CN117455874BActive Publication Date: 2026-11-27GUANGXI TRANSPORTATION SCI & TECH GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311428182.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2026-11-27
Estimated Expiration
2043-10-31

AI Technical Summary

Technical Problem

Current technology lacks a method that can identify the deformation of corrugated plates on highways in a timely and efficient manner.

Method used

Deep neural networks are used for image segmentation to mark the waveform board outline. The deformation of the waveform board is determined by calculating the turning angle and distance on the outline, and whether it is a deformation-sensitive point is determined by combining the set threshold.

Benefits of technology

It enables rapid and efficient identification of deformation defects in highway corrugated plates, improving inspection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117455874B_ABST
    Figure CN117455874B_ABST
Patent Text Reader

Abstract

The application discloses a highway corrugated plate deformation detection method based on image recognition, and comprises the following steps: using a deep neural network to perform image segmentation on a to-be-detected picture, extracting a corrugated plate region, and obtaining a binary image; marking a corrugated plate contour in the binary image; calculating two end points farthest apart on the corrugated plate contour; calculating a turning angle of each point on the corrugated plate contour; selecting a turning sensitive point on the corrugated plate contour; and judging whether the corrugated plate is deformed according to the positions of the turning sensitive point on the corrugated plate contour on the corrugated plate contour and the picture. The application can quickly and efficiently find highway corrugated plate deformation diseases.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of image processing and computer vision technology, specifically a method for detecting deformation of a highway corrugated board based on image recognition. Background Technology

[0002] To ensure highway safety, transportation authorities require operations management departments to conduct daily inspections of highways to promptly identify defects, faults, and potential hazards such as road surface cracks, potholes, allergic reactions, obstructed traffic signs, and deformed corrugated boards. To improve inspection efficiency, semi-automatic or fully automatic methods are now commonly used. Cameras and sensors are mounted on inspection vehicles to collect images and data, which are then analyzed and identified manually or automatically to pinpoint defects, faults, and potential hazards. Fully automated identification methods based on image processing, computer vision, and artificial intelligence technologies represent the future trend.

[0003] Corrugated slab deformation is a major concern for highway operation and management departments. However, there is currently no method for timely and efficient identification of corrugated slab deformation. Summary of the Invention

[0004] To address the problems existing in the prior art, this invention provides a method for detecting deformation of highway corrugated boards based on image recognition, which can identify deformation defects of highway corrugated boards in a timely and efficient manner.

[0005] To achieve the above-mentioned objectives, the technical solution of the present invention is as follows:

[0006] A method for detecting deformation of a highway corrugated plate based on image recognition includes the following steps:

[0007] Step 1: Use a deep neural network to segment the image to be detected, extract the waveform plate region, and obtain a binary image:

[0008] Specifically, image segmentation can be achieved using any of the following network methods: UNet, DeepLab, DeepLabV2, DeepLabV3, DeepLabV3+, PSPNet, UPerNet, HRNet, SegFormer, Segmenter, MaskFormer, and Mask2Former. The binary image is the result of image segmentation; it is an image of the same size as the image to be detected, with pixel values ​​of 0 in non-waveform plate regions and pixel values ​​of 1 in waveform plate regions.

[0009] Step 2: Mark the waveform board outline in the binary image, which can be done as follows:

[0010] Mark all connected components in the binary graph whose values ​​are equal to 1, and each connected component corresponds to a waveform board region;

[0011] Mark the contour of each connected component to obtain the contour of the waveform board, which is a set of points.

[0012] Step 3: Perform the following operations on each waveform board contour to determine if the waveform board is deformed:

[0013] First, calculate the two farthest endpoints on the waveform board profile, including:

[0014] Calculate the convex hull of the profile of each waveform board. The convex hull is a set of points.

[0015] Calculate the distance between any two points in the convex hull;

[0016] Calculate the maximum value of all distances, and mark two points on the convex hull of the maximum distance. These two points are the two farthest endpoints on the waveform board profile.

[0017] Secondly, calculate the turning angle of each point on the waveform board profile, including:

[0018] Set a smoothing distance threshold;

[0019] For each point on the corrugated board profile, calculate the steering angle as follows:

[0020] Find the first point that is more than the smooth distance threshold from the current point by moving counterclockwise along the contour, and record it as the forward point of the current point. Find the first point that is more than the smooth distance threshold from the current point by moving clockwise along the contour, and record it as the backward point of the current point. Calculate the forward vector obtained by subtracting the current point from the forward point, calculate the backward vector obtained by subtracting the backward point from the current point, and calculate the angle between the forward vector and the backward vector to obtain the turning angle of the current point.

[0021] Next, select the steering-sensitive points on the waveform board contour, specifically including:

[0022] Set the angle threshold;

[0023] For each point on the waveform board profile, if the current point's steering angle is greater than or equal to a threshold, it is designated as a steering-sensitive point.

[0024] Finally, based on the positions of the steering sensitive points on the waveform board outline and in the image, it is determined whether the waveform board is deformed. The specific operation is as follows:

[0025] Set endpoint distance thresholds and edge distance thresholds;

[0026] For each turning-sensitive point on the waveform board contour, if its distance to the two farthest endpoints on the corresponding contour is greater than or equal to the endpoint distance threshold, and its distance to the top, bottom, left, and right boundaries of the image is greater than or equal to the edge distance threshold, then it is marked as a deformation-sensitive point.

[0027] If a deformation-sensitive point exists, the waveform board is determined to be deformed.

[0028] The beneficial effects of this invention are:

[0029] This invention utilizes deep learning-based image segmentation technology to locate corrugated plate regions in images. Normal corrugated plates are smooth and flat, without obvious local deformations or abrupt changes. After identifying the corrugated plate region, the region edges are extracted, and the turning angles of the edges are calculated. If points with large turning angles exist on the contour edges, their positions in the contour and the image can be used to determine whether the corrugated plate is deformed. This invention can quickly and efficiently identify corrugated plate deformation defects on highways and has significant application prospects. Attached Figure Description

[0030] Figure 1 This is a flowchart for detecting the deformation of corrugated plates on highways.

[0031] Figure 2 This is a map of a highway to be inspected.

[0032] Figure 3 for Figure 2 Image segmentation results of the waveform board region;

[0033] The white area represents the wave pattern, and the black area represents other areas.

[0034] Figure 4 for Figure 2 Intermediate results of waveform board deformation detection;

[0035] In this diagram, the black line represents the outline of the waveform board area, and the black dots represent the convex hull of the corresponding waveform board outline.

[0036] Figure 5 for Figure 2 Intermediate results of waveform board deformation detection;

[0037] The black lines represent the outline of the waveform board area, and the black dots represent the two farthest endpoints on the corresponding waveform board outline.

[0038] Figure 6 for Figure 2 Intermediate results of waveform board deformation detection;

[0039] The black lines represent the outline of the waveform board area, and the black dots represent the turning sensitive points of the corresponding waveform board outline.

[0040] Figure 7 for Figure 2 Intermediate results of waveform board detection;

[0041] In this context, the black line represents the outline of the waveform board area, and the black dots represent the turning sensitive points of the corresponding waveform board outline. For the waveform board on the left, after removing the turning sensitive points that are very close to the two farthest endpoints on the waveform board outline and the turning sensitive points that are close to the edge of the image, there are still remaining turning sensitive points that are marked as deformation sensitive points, i.e., the points within the black rectangle. Since there are deformation sensitive points, it can be determined that the corresponding waveform board is deformed. Detailed Implementation

[0042] To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.

[0043] This embodiment provides a specific method for detecting the deformation of a highway corrugated board based on image recognition. The deformation detection is implemented using the Python language, and the Python packages used include PyTorch, MMSegmentation, OpenCV, NumPy, SciPy, and math.

[0044] Step 1: Use a deep neural network to segment the image to be detected, extract the waveform plate region, and obtain a binary image:

[0045] This implementation uses the HRNet network from MMSegmentation for image segmentation of the waveform region. Alternatively, any of the following networks can be used for image segmentation: UNet, DeepLab, DeepLabV2, DeepLabV3, DeepLabV3+, PSPNet, UPerNetSegFormer, Segmenter, MaskFormer, and Mask2Former. To obtain the image segmentation model, 5000 images with waveform region annotations are prepared in advance. 4500 of these are selected as the training set, and the remaining 500 are used as the validation set. The HRNet network is trained using the training set, and the model's performance is validated using the validation set.

[0046] After the model is trained, it is used to detect images, such as... Figure 2 Image segmentation is performed, and the segmentation result is a binary image of the same size as the original image, such as... Figure 3 The pixel value in the waveform area is equal to 1, and the pixel value in the non-waveform area is equal to 0.

[0047] Step 2: Mark the waveform board outline in the binary image:

[0048] In this implementation, the `findContours` function from OpenCV is used to process the binary image obtained in step 1 to extract the contour of the waveform board region, such as... Figure 4 As shown.

[0049] Step 3: Perform the following steps on each waveform board contour to determine if the waveform board is deformed.

[0050] First, calculate the two farthest endpoints on the waveform board profile:

[0051] In this implementation, the convexHull function in SciPy is used to calculate the set of convex hull points for each waveform board profile, such as... Figure 4 As shown, the distance between any two points in the convex hull set is calculated, and the maximum value of all distances is calculated. The two points on the convex hull with the maximum distance are the two farthest endpoints on the waveform board profile, as shown. Figure 5 As shown.

[0052] Secondly, calculate the turning angle at each point on the waveform board profile:

[0053] In this embodiment, the smoothing distance threshold is set to 4. For each point on the waveform board contour, the current point is denoted as (x0, y0). The first point whose distance from the current point is greater than the smoothing distance threshold is found along the contour counterclockwise, and is denoted as the forward point (x1, y1) of the current point. The first point whose distance from the current point is greater than the smoothing distance threshold is found along the contour clockwise backward, and is denoted as the backward point (x2, y2) of the current point. The forward vector (x1–x0, y1–y0) and the backward vector (x0–x2, y0–y2) are calculated. The turning angle of the current point can be calculated using the vector angle formula.

[0054] Next, select the steering-sensitive point on the waveform board contour:

[0055] In this embodiment, the angle threshold is set to 0.125π. The steering angle of each point on the waveform board contour is compared with the angle threshold. If the steering angle is greater than or equal to the threshold, the current point is recorded as a steering-sensitive point. Figure 6 As shown.

[0056] Finally, the position of the steering sensitive point on the waveform board outline and the image is used to determine whether the waveform board is deformed.

[0057] In this embodiment, the endpoint distance threshold and the edge distance threshold are both set to 20. For each turning-sensitive point, if its distance to the two farthest endpoints on the corresponding contour is greater than or equal to the endpoint distance threshold, and its distance to the top, bottom, left, and right boundaries of the image is greater than or equal to the edge distance threshold, then it is marked as a deformation-sensitive point. If a deformation-sensitive point exists on the contour, then the corresponding waveform board is determined to be deformed, such as... Figure 7 As shown.

[0058] Although the present invention has been described in detail above with specific embodiments, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, all such modifications or improvements made without departing from the spirit of the present invention fall within the scope of protection claimed by the present invention.

Claims

1. A method for detecting deformation of a highway corrugated plate based on image recognition, characterized in that: Includes the following steps: S1 uses a deep neural network to segment the image to be detected, extracts the waveform plate region, and obtains a binary image; S2 marks the outline of the waveform board in the binary image; S3 performs the following steps for each waveform board contour to determine whether the waveform board is deformed: S3.1 Calculate the two endpoints that are furthest apart on the waveform board profile; S3.2 Calculate the turning angle of each point on the waveform board contour; the calculation of the turning angle of each point on the waveform board contour includes the following steps: setting a smoothing distance threshold; for each point on the waveform board contour, calculate the turning angle as follows: find the first point whose distance from the current point is greater than the smoothing distance threshold along the contour counterclockwise forward, and record it as the forward point of the current point; find the first point whose distance from the current point is greater than the smoothing distance threshold along the contour clockwise backward, and record it as the backward point of the current point; calculate the forward vector obtained by subtracting the current point from the forward point; calculate the backward vector obtained by subtracting the backward point from the current point; calculate the angle between the forward vector and the backward vector to obtain the turning angle of the current point; S3.3 Selecting a steering-sensitive point on the waveform board contour; specifically, selecting a steering-sensitive point on the waveform board contour involves: Set an angle threshold; for each point on the waveform board profile, if the current point's steering angle is greater than or equal to the threshold, it is designated as a steering-sensitive point. S3.4 Determine whether the waveform board is deformed based on the position of the turning sensitive points on the waveform board outline and the image; the determination of whether the waveform board is deformed based on the position of the turning sensitive points on the waveform board outline and the image specifically includes the following steps: setting endpoint distance thresholds and edge distance thresholds; for each turning sensitive point on the waveform board outline, if its distance to the two farthest endpoints on the corresponding outline is greater than or equal to the endpoint distance threshold, and its distance to the top, bottom, left, and right boundaries of the image is greater than or equal to the edge distance threshold, then it is marked as a deformation sensitive point; if a deformation sensitive point exists, it is determined that the waveform board is deformed.

2. The method for detecting deformation of a highway corrugated plate based on image recognition according to claim 1, characterized in that: The method described above uses a deep neural network to segment the image, extract the waveform region, and obtain a binary image. Specifically, it employs any one of the following networks for image segmentation: UNet, DeepLab, DeepLabV2, DeepLabV3, DeepLabV3+, PSPNet, UPerNet, HRNet, SegFormer, Segmenter, MaskFormer, and Mask2Former. The binary image is the result of image segmentation and is an image of the same size as the image to be detected. Pixel values ​​in non-waveform region areas are equal to 0, and pixel values ​​in waveform region areas are equal to 1.

3. The method for detecting deformation of a highway corrugated board based on image recognition according to claim 1, characterized in that: The process of marking the waveform board outline includes the following steps: Mark all connected components in the binary graph whose values ​​are equal to 1, and each connected component corresponds to a waveform board region; Mark the contour of each connected component to obtain the contour of the waveform board, which is a set of points.

4. The method for detecting deformation of a highway corrugated board based on image recognition according to claim 1, characterized in that: The calculation of the two farthest endpoints on the waveform board profile includes the following steps: Calculate the convex hull of the profile of each waveform board. The convex hull is a set of points. Calculate the distance between any two points in the convex hull; Calculate the maximum value of all distances, and mark two points on the convex hull of the maximum distance. These two points are the two farthest endpoints on the waveform board profile.

Citation Information

Patent Citations

  • Deformed spot detection device, deformed spot detection program and deformed spot detection method

    JP2019045922A

  • Object surface deformation feature extraction method based on line scanning three-dimensional point cloud

    US20190197340A1