Road hole detection method, device and equipment and storage medium

By constructing a pothole detection model and utilizing instance segmentation and feature enhancement methods, the inefficiency and subjectivity of existing road pothole detection technologies are solved, achieving efficient and accurate pothole detection.

CN117522801BActive Publication Date: 2026-11-24SOUTH CHINA NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311462039.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-03
Publication Date
2026-11-24
Estimated Expiration
2043-11-03

AI Technical Summary

Technical Problem

Existing technologies for pothole detection are inefficient, expensive, and have highly subjective results. Traditional methods cannot comprehensively and accurately complete pothole detection tasks.

Method used

A pothole detection model is constructed using instance segmentation and feature enhancement methods, including a backbone network, a neck network, and a head network. Road image features are extracted through convolution and feature enhancement modules, then stitched and upsampled, and trained in conjunction with a prediction network to achieve pothole detection.

Benefits of technology

It improves the accuracy and efficiency of pothole detection, reduces detection costs, and enables comprehensive and thorough detection of road images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117522801B_ABST
    Figure CN117522801B_ABST
Patent Text Reader

Abstract

This invention relates to the field of image detection, and in particular to a method, apparatus, device, and storage medium for pothole detection in road images. It employs instance segmentation and feature enhancement methods to fully extract feature information from sample road images, construct training images, train a preset pothole detection model, and perform pothole detection. This achieves comprehensive and thorough pothole detection in the road images under test, improves the accuracy and efficiency of pothole detection, and reduces the cost of pothole detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image detection, and in particular to a method, apparatus, device, and storage medium for detecting potholes in road images. Background Technology

[0002] During the construction and maintenance of infrastructure, it has been found that overused or aging urban roads are prone to various potholes, which seriously affect the safety and comfort of passengers during traffic.

[0003] In the field of pothole detection, traditional methods require professional inspectors to perform hazard detection, which is inefficient, expensive, and time-consuming, and the detection results are subjective and general. In image segmentation tasks, existing convolutional frameworks have enabled continuous progress in defect recognition tasks in computer vision across various industrial scenarios. Object detection networks can locate potholes, but parameters such as the area of ​​the pothole cannot be accurately calculated; semantic segmentation networks can segment pothole pixels, but cannot locate and count potholes. Each of these methods has its advantages and limitations, but none can comprehensively and adequately complete the task of pothole detection. Summary of the Invention

[0004] Based on this, the purpose of this invention is to provide a method, apparatus, device, and storage medium for pothole detection in road images. By employing instance segmentation and feature enhancement methods, the feature information in the sample road images is fully extracted, training images are constructed, and a preset pothole detection model is trained for pothole detection. This achieves comprehensive and sufficient pothole detection in the road images under test, improves the accuracy and efficiency of pothole detection, and reduces the cost of pothole detection.

[0005] In a first aspect, embodiments of this application provide a method for detecting potholes in road images, comprising the following steps:

[0006] Several sample road images and a preset pothole detection model are obtained. The pothole detection model includes a backbone network, a neck network, a head network, and a prediction network. The backbone network includes a first convolutional module and a first feature enhancement module. The neck network includes a second convolutional module and a second feature enhancement module.

[0007] Several sample road images are input into the first convolution module for convolution processing to obtain a first convolution feature map of each sample road image. The convolution feature map is then input into the first feature enhancement module for feature enhancement to obtain a first feature enhancement map of each sample road image.

[0008] The first feature enhancement map of each of the sample road images is input into the second convolution module for convolution processing to obtain the second convolution feature map of each of the sample road images. The second convolution feature map is then segmented to obtain the feature segmentation map of each of the sample road images.

[0009] The feature segmentation map is input into the second feature enhancement module. Based on several preset scales, several scales of second feature enhancement maps of each sample road image are obtained. The second convolution feature map, feature segmentation map and several scales of second feature enhancement maps of the same sample road image are stitched together to obtain the stitched feature map of each sample road image.

[0010] The stitched feature map of each of the sample road images is input into the head network. According to a number of preset detection heads, the stitched feature map is upsampled to obtain the upsampled feature map of each of the sample road images output by each detection head. The upsampled feature maps output by each detection head of the same sample road image are fused to obtain the fused feature map of each of the sample road images.

[0011] The fused feature maps of each of the sample road images are input into the prediction network to obtain several prediction regions and label data of several prediction regions of each of the sample road images. Based on the label data of several prediction regions and label data of several label regions of each of the sample road images, the pothole detection model is trained to obtain the target pothole detection model.

[0012] In response to a detection command, an image of the road to be detected is obtained, and the image of the road to be detected is input into the target pothole detection model to obtain the pothole detection result of the image of the road to be detected.

[0013] Secondly, embodiments of this application provide a pothole detection device for road images, comprising:

[0014] The data acquisition module is used to obtain several sample road images and a preset pothole detection model. The pothole detection model includes a backbone network, a neck network, a head network, and a prediction network. The backbone network includes a first convolutional module and a first feature enhancement module. The neck network includes a second convolutional module and a second feature enhancement module.

[0015] The feature enhancement map extraction module is used to input several sample road images into the first convolution module for convolution processing to obtain a first convolution feature map of each sample road image, and input the convolution feature map into the first feature enhancement module for feature enhancement to obtain a first feature enhancement map of each sample road image;

[0016] The feature segmentation map extraction module is used to input the first feature enhancement map of each of the sample road images into the second convolution module for convolution processing to obtain the second convolution feature map of each of the sample road images, and to perform segmentation processing on the second convolution feature map to obtain the feature segmentation map of each of the sample road images.

[0017] The feature map extraction module is used to input the feature segmentation map into the second feature enhancement module, obtain the second feature enhancement map of each sample road image at several scales according to several preset scales, and stitch the second convolution feature map, feature segmentation map and the second feature enhancement map at several scales of the same sample road image to obtain the stitched feature map of each sample road image.

[0018] The fusion feature map extraction module is used to input the stitched feature map of each of the sample road images into the head network, perform upsampling processing on the stitched feature map according to a preset number of detection heads, obtain the upsampled feature map of each of the sample road images output by each detection head, and perform fusion processing on the upsampled feature maps output by each detection head of the same sample road image to obtain the fusion feature map of each of the sample road images.

[0019] The model training module is used to input the fused feature map of each of the sample road images into the prediction network to obtain several prediction regions and several label data of the prediction regions of each of the sample road images. Based on the label data of the several prediction regions and several label regions of each of the sample road images, the pothole detection model is trained to obtain the target pothole detection model.

[0020] The pothole detection module is used to respond to a detection command, obtain a road image to be detected, input the road image to be detected into the target pothole detection model, and obtain the pothole detection result of the road image to be detected.

[0021] Thirdly, embodiments of this application provide a computer device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor; when the computer program is executed by the processor, it implements the steps of the pothole detection method for road images as described in the first aspect.

[0022] Fourthly, embodiments of this application provide a storage medium storing a computer program that, when executed by a processor, implements the steps of the pothole detection method for road images as described in the first aspect.

[0023] In this application embodiment, a method, apparatus, device, and storage medium for pothole detection of road images are provided. The method employs instance segmentation and feature enhancement to fully extract feature information from sample road images, construct training images, and train a preset pothole detection model for pothole detection. This achieves comprehensive and sufficient pothole detection of the road images under test, improves the accuracy and efficiency of pothole detection, and reduces the cost of pothole detection.

[0024] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description

[0025] Figure 1 A schematic flowchart illustrating a method for detecting potholes in road images according to an embodiment of this application;

[0026] Figure 2 This is a schematic flowchart of step S2 in a road image pothole detection method provided in one embodiment of this application;

[0027] Figure 3 This is a schematic flowchart of step S22 in a road image pothole detection method provided in one embodiment of this application;

[0028] Figure 4 This is a flowchart illustrating step S23 of a pothole detection method for road images provided in one embodiment of this application.

[0029] Figure 5 This is a schematic flowchart of step S4 in a road image pothole detection method provided in one embodiment of this application;

[0030] Figure 6 This is a flowchart illustrating step S5 of a road image pothole detection method provided in one embodiment of this application.

[0031] Figure 7 A schematic diagram of the structure of a pothole detection device for road images provided in one embodiment of this application;

[0032] Figure 8 This is a schematic diagram of the structure of a computer device provided in one embodiment of this application; Detailed Implementation

[0033] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0034] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0035] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0036] Please see Figure 1 , Figure 1 This is a flowchart illustrating a method for detecting potholes in road images according to an embodiment of this application. The method includes the following steps:

[0037] S1: Obtain several sample road images and a preset pothole detection model.

[0038] The pothole detection method for road images is implemented by a detection device (hereinafter referred to as the detection device). In an optional embodiment, the detection device may be a computer device, a server, or a server cluster composed of multiple computer devices.

[0039] In this embodiment, the detection device can obtain several sample road images input by the user, or it can obtain several sample road images from a preset database. Specifically, the detection device obtains the UDTIRI dataset as a sample road image set, providing various formats for the road pothole detection task. The UDTIRI dataset contains pothole images taken under various lighting and road conditions, accurately reflecting the diversity of pothole sizes in real-world scenes.

[0040] The detection equipment obtains a preset pothole detection model, wherein the pothole detection model is an improved LEPS model (Lightweight and Effective Pothole Segmentation Detector for pothole segmentation). The LEPS model is an embedded model that can solve various problems in the actual operation of road pothole detection and balances computational cost and accuracy. The improved LEPS model includes a backbone network, a neck network, and a prediction network (YoloHead). The backbone network includes a first convolutional module and a first feature enhancement module, and the neck network includes a second convolutional module and a second feature enhancement module.

[0041] S2: Input several sample road images into the first convolution module for convolution processing to obtain a first convolution feature map of each sample road image. Input the convolution feature map into the first feature enhancement module for feature enhancement to obtain a first feature enhancement map of each sample road image.

[0042] The backbone network uses DarkNet-53 (a neural network architecture designed for efficient object detection and image classification) as its main network. This network draws on the design ideas of the classic backbone network ResNet, introduces residual structures, and improves the performance of the model by continuously stacking the number of layers of convolutional modules.

[0043] In this embodiment, the detection device inputs several sample road images into the first convolution module for convolution processing to obtain a first convolution feature map of each sample road image, and inputs the convolution feature map into the first feature enhancement module for feature enhancement to obtain a first feature enhancement map of each sample road image.

[0044] The first feature enhancement module includes a branch enhancement unit and a detail enhancement unit; please refer to [link / reference]. Figure 2 , Figure 2 The flowchart of S2 in the pothole detection method for road images provided in one embodiment of this application is shown below, including steps S21 to S23, as follows:

[0045] S21: Construct the linear mapping feature map corresponding to the convolutional feature map.

[0046] In this embodiment, the detection device constructs a linear mapping feature map corresponding to the convolutional feature map, wherein the linear mapping feature map includes a V linear mapping feature map, a K linear mapping feature map, and a Q linear mapping feature map.

[0047] S22: Input the V linear mapping feature map into the branch enhancement unit for branch enhancement to obtain a branch enhancement feature map.

[0048] In this embodiment, the detection device inputs the V linear mapping feature map into the Enbranching Aggration unit for branch enhancement to obtain an enhanced branch feature map, thereby obtaining more edge information and details of the pit detection task, improving the accuracy and detail of local edge features in the pit detection task.

[0049] The branch enhancement unit includes a standard convolutional layer, a segmentation layer, a first full-dimensional dynamic convolutional layer, a depthwise separable convolutional layer, a second full-dimensional dynamic convolutional layer, and a first activation layer; please refer to [link to relevant documentation]. Figure 3 , Figure 3 The flowchart of S22 in the pothole detection method for road images provided in one embodiment of this application is shown below, including steps S221 to S222:

[0050] S221: Based on the V linear mapping feature map and the preset first local feature extraction algorithm, obtain the standard convolutional feature map output by the standard convolutional layer, the first segmentation feature map output by the segmentation layer, the first dynamic convolutional feature map output by the first full-dimensional dynamic convolutional layer, the depth convolutional feature map output by the depth separable convolutional layer, and the second dynamic convolutional feature map output by the second full-dimensional dynamic convolutional layer. Then, concatenate the first segmentation feature map, the first dynamic convolutional feature map, the depth convolutional feature map, and the second dynamic convolutional feature map through channels to obtain a channel concatenated feature map.

[0051] In this embodiment, the detection device obtains the standard convolutional feature map output by the standard convolutional layer, the first segmentation feature map output by the segmentation layer, the first dynamic convolutional feature map output by the first full-dimensional dynamic convolutional layer, the depth convolutional feature map output by the depthwise separable convolutional layer, and the second dynamic convolutional feature map output by the second full-dimensional dynamic convolutional layer based on the V linear mapping feature map and a preset first local feature extraction algorithm. The first local feature extraction algorithm is as follows:

[0052]

[0053] In the formula, V is the V linear mapping feature map, F1(·) is the standard convolution function corresponding to the standard convolution layer, and F1(·)=σ1(ρ(f conv (·))), ρ(·) is the normalization function, σ1(·) is the first activation function, f conv(·) represents a standard convolution function, x1 represents the first segmentation feature map, Split(·) represents the segmentation function corresponding to the segmentation layer, x2 represents the first dynamic convolution feature map, F2(·) represents the first dynamic convolution function corresponding to the first full-dimensional dynamic convolution layer, and F2(·) = ρ(σ1(f conv (·))), x3 is the depthwise convolution feature map, and F3(·) is the depthwise convolution function corresponding to the depthwise separable convolutional layer. T is the number of convolution kernels, α t Let ω be the attention scalar of the t-th convolutional kernel. t Let x be the t-th convolutional kernel composed of filters, x4 be the second dynamic convolutional feature map, and F4(·) be the second dynamic convolutional function corresponding to the second full-dimensional dynamic convolutional layer. In an optional embodiment, the first dynamic convolutional function is the same as the second dynamic convolutional function.

[0054] Specifically, the detection device inputs the V-linear mapping feature map into the standard convolutional layer, performs convolution processing according to the standard convolution function to obtain a standard convolutional feature map, inputs the standard convolutional feature map into the segmentation layer, performs segmentation processing according to the segmentation function to obtain a first segmentation feature map; inputs the first segmentation feature map into the first full-dimensional dynamic convolutional layer, performs convolution processing according to the first dynamic convolution function to obtain a first dynamic convolutional feature map; inputs the first dynamic convolutional feature map into the depth-separable convolutional layer, performs convolution processing according to the depth convolution function to obtain a depth convolutional feature map, inputs the depth convolutional feature map into the second full-dimensional dynamic convolutional layer, performs convolution processing according to the second dynamic convolution function to obtain a second dynamic convolutional feature map.

[0055] The detection device performs channel-by-channel concatenation of the first segmentation feature map, the first dynamic convolutional feature map, the depthwise convolutional feature map, and the second dynamic convolutional feature map to obtain a channel-by-channel concatenated feature map. This results in a feature map containing more bias and gradient information, thereby improving the accuracy of the pit detection model training.

[0056] After segmentation by the segmentation layer, the standard convolutional feature map is divided into two parts with an equal number of channels. Different processing is applied to the two first segmented feature maps x1, each containing different local information. One first segmented feature map x1 is directly used as the basis for subsequent concatenation operations, while the other first segmented feature map x2 is input into a filter consisting of two ODConv (Omni-dimensional dynamic convolution) layers and one DWConv (Depthwise separable convolution) layer for convolution processing. Both ODConv and DWConv enhance the adaptability to features, enabling the module to achieve the same feature extraction effect as ordinary convolution while reducing computational cost and improving computational efficiency. With lower computational cost, it separates local information from two scales to retain most of the effective global information, ensuring both accuracy and efficiency in feature extraction.

[0057] S222: Obtain a residual information retention flag, which indicates whether to perform residual information retention processing on the channel splicing feature map; obtain a branch enhancement feature map by combining the residual information retention flag, the standard convolutional feature map, the channel splicing feature map, and a preset branch aggregation algorithm.

[0058] The branch aggregation algorithm is as follows:

[0059]

[0060] In the formula, y is the branch enhancement feature map, x5 is the channel splicing feature map, F1(X) is the standard convolution feature map, σ1(·) is the first activation function corresponding to the first activation layer, and shortcut is the residual information retention identifier.

[0061] In this embodiment, the detection device obtains a residual information retention identifier, wherein the residual information retention identifier is used to indicate whether residual information retention processing is performed on the channel splicing feature map.

[0062] The detection device retains the residual information identifier, standard convolutional feature map, channel splicing feature map, and preset branch aggregation algorithm to obtain branch enhancement feature map. The obtained feature map is further enhanced with branch aggregation to improve the accuracy of pit detection model training.

[0063] S23: Input the V linear mapping feature map, K linear mapping feature map and Q linear mapping feature map into the detail enhancement unit to perform detail enhancement and obtain a detail enhancement feature map.

[0064] The detail enhancement unit is called Detail Enhancement. In this embodiment, the detection device inputs the V linear mapping feature map, K linear mapping feature map and Q linear mapping feature map into the detail enhancement unit to perform detail enhancement and obtain a detail-enhanced feature map.

[0065] The detail enhancement unit includes a standard convolutional layer, a first full-dimensional dynamic convolutional layer, a normalization layer, and a second activation layer; please refer to [link to relevant documentation]. Figure 4 , Figure 4 The flowchart of S23 in the road image pothole detection method provided in one embodiment of this application is shown, including step S231, as follows:

[0066] S231: The V linear mapping feature map, K linear mapping feature map and Q linear mapping feature map are concatenated dimensionally to obtain a dimensional concatenated map. Based on the dimensional concatenated map and the preset second local feature extraction algorithm, a detail enhancement feature map is obtained.

[0067] The second local feature extraction algorithm is as follows:

[0068] z=ρ(F1(σ2(ρ(F2(x6)))))

[0069] In the formula, z is the detail enhancement feature map, x6 is the dimension stitched map, F1(·) is the standard convolution function corresponding to the standard convolution layer, F2(·) is the dynamic convolution function corresponding to the first full-dimensional dynamic convolution layer, ρ(·) is the normalization function corresponding to the normalization layer, and σ2(·) is the second activation function corresponding to the second activation layer.

[0070] In this embodiment, the detection device performs dimensional concatenation of the V linear mapping feature map, K linear mapping feature map, and Q linear mapping feature map to obtain a dimensional concatenation map. Based on the dimensional concatenation map and a preset second local feature extraction algorithm, a detail enhancement feature map is obtained, thereby enhancing the details of local features and improving the richness of the obtained feature map.

[0071] S24: The branch enhancement feature map and the detail enhancement feature map are spliced ​​together, and the result of the splicing process is used as the first feature enhancement map.

[0072] In this embodiment, the detection device stitches the branch enhancement feature map and the detail enhancement feature map together, and uses the stitched result as the first feature enhancement map, as follows:

[0073] Y = Mul(σ2(y),z)

[0074] In the formula, Y is the first feature enhancement function, and Mul(·) is the feature multiplication function.

[0075] By employing a first feature enhancement module that includes branch enhancement units and detail enhancement units, additional local feature information and gradient information can be extracted from the input feature map. This module provides more effective feature information for subsequent feature fusion and prediction heads. The fused feature map contains richer local information in the gradient flow. The auxiliary convolutional kernel plays a good role in enhancing spatial details while effectively extracting global information while preserving local details, thus improving the accuracy and detail of local edge features in the pit detection task.

[0076] S3: Input the first feature enhancement map of each of the sample road images into the second convolution module for convolution processing to obtain the second convolution feature map of each of the sample road images. Perform segmentation processing on the second convolution feature map to obtain the feature segmentation map of each of the sample road images.

[0077] In this embodiment, the detection device inputs the first feature enhancement map of each of the sample road images into the second convolution module for convolution processing to obtain the second convolution feature map of each of the sample road images. The second convolution feature map is then segmented to obtain the feature segmentation map of each of the sample road images.

[0078] S4: Input the feature segmentation map into the second feature enhancement module, and obtain the second feature enhancement map of each sample road image at several scales according to several preset scales. Then, stitch together the second convolution feature map, feature segmentation map and the second feature enhancement map at several scales of the same sample road image to obtain the stitched feature map of each sample road image.

[0079] In this embodiment, the detection device inputs the feature segmentation map into the second feature enhancement module, and obtains second feature enhancement maps of several scales for each of the sample road images according to several preset scales, thereby extracting more comprehensive multi-scale pothole image features for each of the sample road images.

[0080] The detection device stitches together the second convolutional feature map, the feature segmentation map, and the second feature enhancement maps at several scales of the same sample road image to obtain the stitched feature map of each sample road image.

[0081] The second feature enhancement module includes several second sub-feature enhancement modules stacked sequentially. Each second sub-feature enhancement module includes a phantom convolutional unit and a context aggregation unit. The phantom convolutional unit includes a phantom convolutional layer, a normalization layer, and a second activation layer. (See also...) Figure 5 , Figure 5The flowchart of S4 in the road image pothole detection method provided in one embodiment of this application is shown, including steps S41 to S42, as follows:

[0082] S41: Using the feature segmentation map as the input feature map of the first second sub-feature enhancement module, and obtaining the output feature enhancement map of the first second sub-feature enhancement module according to the preset feature enhancement algorithm.

[0083] The phantom convolutional unit uses the GhostNet phantom convolutional network. The GhostNet module not only makes the improved algorithm easier to execute quickly on standard hardware, but also extracts semantic information between distant pixels. The context aggregation unit is a general building block for multi-head context aggregation, which can integrate far-end information of the image and also utilize the inductive bias of local convolution.

[0084] In this embodiment, the detection device uses the feature segmentation map as the input feature map of the first second sub-feature enhancement module, and obtains the output feature enhancement map of the first second sub-feature enhancement module according to a preset feature enhancement algorithm. The feature enhancement algorithm is as follows:

[0085] X out =Mul(σ2(ρ(f) Ghost (X))),f CA-Block (X))

[0086] Y out =cat(ρ(f) Ghost (X out )),X)

[0087] In the formula, X out X is the intermediate feature enhancement map, f is the feature segmentation map, and f is the feature enhancement map. Ghost (·) represents the convolution function corresponding to the phantom convolutional layer, f CA-Block (·) represents the residual function corresponding to the context aggregation unit, ρ(·) represents the normalization function corresponding to the normalization layer, σ2(·) represents the activation function corresponding to the second activation layer, Mul(·) represents the feature multiplication function, and Y out The output feature enhancement map is generated by cat(·), which is the channel concatenation function.

[0088] Specifically, the detection device inputs the feature segmentation map into a phantom convolutional unit. After processing through a phantom convolutional layer, normalization layer, and activation layer constructed using an inverted residual bottleneck structure, the first output of the phantom convolutional unit is obtained, which expands the features and increases the number of channels. The detection device then inputs the feature segmentation map into a context aggregation unit, obtaining its output to enhance the expansion function, strengthen the semantic and positional information in the features, and improve feature fusion capabilities. Finally, the detection device performs a feature image multiplication on the first output of the phantom convolutional unit and the output of the context aggregation unit to obtain an intermediate feature enhancement map X. out .

[0089] The detection equipment enhances the intermediate feature image X. out The input is processed by a phantom convolutional unit to obtain the second output of the phantom convolutional unit. The second output of the phantom convolutional unit is then concatenated with the feature segmentation map through channels. The concatenated result is used as the output feature enhancement map of the second sub-feature enhancement module. By integrating long-distance semantic information between pixels at different spatial locations, the number of channels in the output feature map is reduced to match the number of input channels, thereby reducing computational costs while enhancing model performance and improving the accuracy and efficiency of model training.

[0090] S42: Use the output feature enhancement map of the first second sub-feature enhancement module as the input feature map of the next second sub-feature enhancement module, repeat the above steps to obtain several output feature enhancement maps of the second sub-feature enhancement modules, which are used as second feature enhancement maps of several scales of the sample road image.

[0091] In this embodiment, the detection device uses the output feature enhancement map of the first second sub-feature enhancement module as the input feature map of the next second sub-feature enhancement module, repeats the above steps, and obtains several output feature enhancement maps of the second sub-feature enhancement modules as second feature enhancement maps of several scales of the sample road image.

[0092] By constructing and stacking multiple second sub-feature enhancement modules, including phantom convolutional units and context aggregation units, to form a second feature enhancement module, a cross-stage feature fusion strategy and truncated gradient flow technique are employed to increase the variability of learned features across different network layers, minimizing the impact of redundant gradient information and improving the network's learning ability. Furthermore, by introducing phantom convolutional layers (GhostConv) within the phantom convolutional units to replace the numerous 3×3 ordinary convolutions in the original structure, the network's model size is compressed, achieving lightweight design. This allows the model to be deployed on mobile devices and more easily detects potholes.

[0093] S5: Input the stitched feature map of each of the sample road images into the head network, and perform upsampling processing on the stitched feature map according to a number of preset detection heads to obtain the upsampled feature map of each of the sample road images output by each detection head. Then, perform fusion processing on the upsampled feature maps output by each detection head of the same sample road image to obtain the fused feature map of each of the sample road images.

[0094] Each detection head predicts k mask coefficients, bounding boxes, and categories. These k different masks are linearly combined to fit each predicted object. In this embodiment, the detection device inputs the stitched feature maps of each of the sample road images into the head network. Based on a preset number of detection heads, the stitched feature maps are upsampled to obtain upsampled feature maps of each of the sample road images output by each detection head. The upsampled feature maps output by each detection head of the same sample road image are then fused to obtain a fused feature map of each of the sample road images.

[0095] Please see Figure 6 , Figure 6 The flowchart of S5 in the road image pothole detection method provided in one embodiment of this application is shown below, including steps S51 to S52, as follows:

[0096] S51: The stitched feature map of the sample road image is used as the input feature map of several detection heads respectively. According to the preset upsampling algorithm, the upsampled feature map of the sample road image output by each detection head is obtained.

[0097] The upsampling algorithm is as follows:

[0098] P i,upsample =F2(F ConvTranspose (F1(P i ) i ))

[0099] In the formula, P i,upsample F1(·) is the upsampled feature map of the sample road image output by the i-th detection head, F2(·) is the standard convolution function corresponding to the standard convolution layer, and F2(·) is the dynamic convolution function corresponding to the first full-dimensional dynamic convolution layer. i Let F be the input feature map of the i-th detector head. ConvTranspose (·) is the convolution transpose function.

[0100] To maintain the fast detection speed of the segmentation task and preserve the single-stage detection style, in this embodiment, the detection device uses the stitched feature map of the sample road image as the input feature map of several detection heads. According to the preset upsampling algorithm, the upsampled feature map of the sample road image output by each detection head is obtained, which can significantly improve the feature richness.

[0101] S52: Based on the upsampled feature maps output by each detection head of the same sample road image and the preset feature fusion algorithm, obtain the fused feature map of each sample road image.

[0102] The feature fusion algorithm is as follows:

[0103]

[0104] In the formula, P out For fused feature maps, n is the number of detection heads.

[0105] In this embodiment, the detection device obtains the fused feature map of each sample road image based on the upsampled feature map output by each detection head of the same sample road image and the preset feature fusion algorithm, thereby achieving more refined and higher quality feature extraction. This helps to improve the quality of the final mask generation and thus improves the accuracy of model training.

[0106] S6: Input the fused feature map of each of the sample road images into the prediction network to obtain several prediction regions and label data of several prediction regions of each of the sample road images. Based on the label data of several prediction regions and label data of several label regions of each of the sample road images, train the pothole detection model to obtain the target pothole detection model.

[0107] In this embodiment, the detection device inputs the fused feature map of each of the sample road images into the prediction network to obtain several prediction regions and label data of several prediction regions for each of the sample road images.

[0108] Specifically, due to the irregular shape of potholes, they are often affected by low-quality prediction regions during the calculation process. To reduce the above influence, the detection device uses a Soft-NMS (Soft and Non-Maximum Suppression) target detection module as the prediction network. The detection device inputs the fused feature map of each sample road image into the prediction network to obtain several initial prediction regions and several initial prediction region label data for each sample road image. The label data includes the center point coordinate parameters, width parameters, and height parameters of the label region, which are used to indicate the position and size of the prediction region.

[0109] The detection device calculates the overlap rate between each initial predicted region and other initial predicted regions based on the label data. Based on the overlap rate and a preset weight calculation function, it calculates the weight coefficient of each initial predicted region. Based on the weight coefficient, it calculates the score data for each initial predicted region. Based on the score data and a preset score threshold, it filters several initial predicted regions, removing those with scores below the threshold, thus obtaining several predicted regions for each sample road image. Based on the weight coefficient, the weight of poorly performing initial predicted regions is reduced, retaining as many predicted regions as possible. The pothole detection model is trained using the label data of the predicted regions and the label data of the labeled regions in each sample road image, resulting in a target pothole detection model. This improves the prediction performance to some extent and avoids the impact of low-quality bounding boxes on the calculation process, thereby improving the accuracy and efficiency of model training.

[0110] S7: In response to the detection command, obtain the road image to be detected, input the road image to be detected into the target pothole detection model, and obtain the pothole detection result of the road image to be detected.

[0111] The detection command is issued by the user and received by the detection device.

[0112] In this embodiment, the detection device responds to the detection command, obtains the road image to be detected, inputs the road image to be detected into the target pothole detection model, obtains the pothole detection result of the road image to be detected, and displays it on the preset display interface of the detection device.

[0113] Please refer to Figure 7 , Figure 7 This is a schematic diagram of a pothole detection device for road images provided in one embodiment of this application. The device can be implemented entirely or partially through software, hardware, or a combination of both. The device 7 includes:

[0114] The data acquisition module 71 is used to acquire several sample road images and a preset pothole detection model. The pothole detection model includes a backbone network, a neck network, a head network, and a prediction network. The backbone network includes a first convolutional module and a first feature enhancement module. The neck network includes a second convolutional module and a second feature enhancement module.

[0115] The feature enhancement map extraction module 72 is used to input several sample road images into the first convolution module for convolution processing to obtain a first convolution feature map of each sample road image, and input the convolution feature map into the first feature enhancement module for feature enhancement to obtain a first feature enhancement map of each sample road image.

[0116] The feature segmentation map extraction module 73 is used to input the first feature enhancement map of each of the sample road images into the second convolution module for convolution processing to obtain the second convolution feature map of each of the sample road images, and to perform segmentation processing on the second convolution feature map to obtain the feature segmentation map of each of the sample road images.

[0117] The feature map extraction module 74 is used to input the feature segmentation map into the second feature enhancement module, obtain the second feature enhancement map of each sample road image at several scales according to several preset scales, and stitch the second convolution feature map, feature segmentation map and the second feature enhancement map at several scales of the same sample road image to obtain the stitched feature map of each sample road image.

[0118] The fusion feature map extraction module 75 is used to input the stitched feature map of each of the sample road images into the head network, perform upsampling processing on the stitched feature map according to a preset number of detection heads, obtain the upsampled feature map of each of the sample road images output by each detection head, and perform fusion processing on the upsampled feature maps output by each detection head of the same sample road image to obtain the fusion feature map of each of the sample road images.

[0119] The model training module 76 is used to input the fused feature map of each of the sample road images into the prediction network, obtain several prediction regions and label data of several prediction regions of each of the sample road images, and train the pothole detection model based on the label data of several prediction regions and label data of several label regions of each of the sample road images to obtain the target pothole detection model.

[0120] The pothole detection module 77 is used to respond to a detection command, obtain a road image to be detected, input the road image to be detected into the target pothole detection model, and obtain the pothole detection result of the road image to be detected.

[0121] In this embodiment, a data acquisition module obtains several sample road images and a preset pothole detection model. The pothole detection model includes a backbone network, a neck network, a head network, and a prediction network. The backbone network includes a first convolutional module and a first feature enhancement module, and the neck network includes a second convolutional module and a second feature enhancement module. A feature enhancement map extraction module inputs the sample road images into the first convolutional module for convolution processing to obtain a first convolutional feature map for each sample road image. The convolutional feature map is then input into the first feature enhancement module for feature enhancement to obtain a first feature enhancement map for each sample road image. A feature segmentation map extraction module inputs the first feature enhancement maps of each sample road image into the second convolutional module for convolution processing to obtain a second convolutional feature map for each sample road image. The second convolutional feature map is then segmented to obtain a feature segmentation map for each sample road image. A stitched feature map extraction module inputs the feature segmentation map into the second feature enhancement module and, based on several preset scales, obtains second feature enhancement maps at several scales for each sample road image. The second convolutional feature map, feature segmentation map, and several scales of second feature enhancement maps of the same sample road image are concatenated to obtain concatenated feature maps of each sample road image. A fusion feature map extraction module inputs the concatenated feature maps of each sample road image into the head network. Based on several preset detection heads, the concatenated feature maps are upsampled to obtain upsampled feature maps of each sample road image output by each detection head. The upsampled feature maps output by each detection head of the same sample road image are then fused to obtain fused feature maps of each sample road image. Feature maps; through the model training module, the fused feature maps of each sample road image are input into the prediction network to obtain several prediction regions and label data of several prediction regions for each sample road image. Based on the label data of several prediction regions and label data of several label regions for each sample road image, the pothole detection model is trained to obtain a target pothole detection model. Through the pothole detection module, in response to the detection command, the road image to be detected is obtained, and the road image to be detected is input into the target pothole detection model to obtain the pothole detection result of the road image to be detected. By employing instance segmentation and feature enhancement methods, feature information in the sample road images is fully extracted, training images are constructed, and a preset pothole detection model is trained for pothole detection. This achieves comprehensive and sufficient pothole detection of the road image to be tested, improving the accuracy and efficiency of pothole detection and reducing the cost of pothole detection.

[0122] Please refer to Figure 8 , Figure 8 This is a schematic diagram of the structure of a computer device provided in one embodiment of this application. The computer device 8 includes: a processor 81, a memory 82, and a computer program 83 stored in the memory 82 and executable on the processor 81; the computer device can store multiple instructions, which are adapted to be loaded and executed by the processor 81. Figures 1 to 6 The method steps shown can be found in the following document for detailed execution process. Figures 1 to 6 The specific details shown will not be repeated here.

[0123] The processor 81 may include one or more processing cores. The processor 81 connects to various parts of the server using various interfaces and lines, and executes various functions and data processing of the road image pothole detection device 7 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 82, and by calling data stored in the memory 82. Optionally, the processor 81 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 81 may integrate one or a combination of several of the following: a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required to be displayed on the touch screen; and the modem is used for wireless communication. It is understood that the modem may also not be integrated into the processor 81 and may be implemented as a separate chip.

[0124] The memory 82 may include random access memory (RAM) or read-only memory. Optionally, the memory 82 may include a non-transitory computer-readable storage medium. The memory 82 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 82 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory 82 may also be at least one storage device located remotely from the aforementioned processor 81.

[0125] This application embodiment also provides a storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figures 1 to 6 The method steps shown can be found in the following document for detailed execution process. Figures 1 to 6 The specific details shown will not be repeated here.

[0126] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0127] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0128] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the algorithm. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0129] In the embodiments provided by this invention, it should be understood that the disclosed apparatus / terminal devices and methods can be implemented in other ways. For example, the apparatus / terminal device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0130] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0131] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0132] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms.

[0133] This invention is not limited to the above-described embodiments. If any modifications or variations to this invention do not depart from the spirit and scope of this invention, and if such modifications and variations fall within the scope of the claims and equivalent technologies of this invention, then this invention also intends to include such modifications and variations.

Claims

1. A method for detecting potholes in road images, characterized in that, Includes the following steps: Several sample road images and a preset pothole detection model are obtained. The pothole detection model includes a backbone network, a neck network, a head network, and a prediction network. The backbone network includes a first convolutional module and a first feature enhancement module. The neck network includes a second convolutional module and a second feature enhancement module. Several sample road images are input into the first convolution module for convolution processing to obtain a first convolution feature map of each sample road image. The convolution feature map is then input into the first feature enhancement module for feature enhancement to obtain a first feature enhancement map of each sample road image. The first feature enhancement map of each of the sample road images is input into the second convolution module for convolution processing to obtain the second convolution feature map of each of the sample road images. The second convolution feature map is then segmented to obtain the feature segmentation map of each of the sample road images. The feature segmentation map is input into the second feature enhancement module. Based on several preset scales, several scales of second feature enhancement maps of each sample road image are obtained. The second convolution feature map, feature segmentation map and several scales of second feature enhancement maps of the same sample road image are stitched together to obtain the stitched feature map of each sample road image. The stitched feature map of each of the sample road images is input into the head network. According to a number of preset detection heads, the stitched feature map is upsampled to obtain the upsampled feature map of each of the sample road images output by each detection head. The upsampled feature maps output by each detection head of the same sample road image are fused to obtain the fused feature map of each of the sample road images. The fused feature maps of each of the sample road images are input into the prediction network to obtain several prediction regions and label data of several prediction regions of each of the sample road images. Based on the label data of several prediction regions and label data of several label regions of each of the sample road images, the pothole detection model is trained to obtain the target pothole detection model. In response to a detection command, an image of the road to be detected is obtained, and the image of the road to be detected is input into the target pothole detection model to obtain the pothole detection result of the image of the road to be detected.

2. The method for detecting potholes in road images according to claim 1, characterized in that: The first feature enhancement module includes a branch enhancement unit and a detail enhancement unit; The step of inputting the convolutional feature map into the first feature enhancement module for feature enhancement to obtain the first feature enhancement map of each sample road image includes the following steps: Construct a linear mapping feature map corresponding to the convolutional feature map, wherein the linear mapping feature map includes a V linear mapping feature map, a K linear mapping feature map, and a Q linear mapping feature map; The V-linear mapping feature map is input into the branch enhancement unit for branch enhancement to obtain a branch enhancement feature map; The V linear mapping feature map, K linear mapping feature map, and Q linear mapping feature map are input into the detail enhancement unit for detail enhancement to obtain a detail-enhanced feature map. The branch enhancement feature map and the detail enhancement feature map are concatenated, and the result of the concatenation process is used as the first feature enhancement map.

3. The method for detecting potholes in road images according to claim 2, characterized in that: The branch enhancement unit includes a standard convolutional layer, a segmentation layer, a first full-dimensional dynamic convolutional layer, a depthwise separable convolutional layer, a second full-dimensional dynamic convolutional layer, and a first activation layer; The step of inputting the V linear mapping feature map into the branch enhancement unit for local feature extraction to obtain the branch enhancement feature map includes the following steps: Based on the V-linear mapping feature map and a preset first local feature extraction algorithm, the standard convolutional feature map output by the standard convolutional layer, the first segmentation feature map output by the segmentation layer, the first dynamic convolutional feature map output by the first full-dimensional dynamic convolutional layer, the depth convolutional feature map output by the depthwise separable convolutional layer, and the second dynamic convolutional feature map output by the second full-dimensional dynamic convolutional layer are obtained. The first segmentation feature map, the first dynamic convolutional feature map, the depth convolutional feature map, and the second dynamic convolutional feature map are then concatenated by channel to obtain a channel-concatenated feature map. The first local feature extraction algorithm is as follows: In the formula, V is the V linear mapping feature map, F1(·) is the standard convolution function corresponding to the standard convolution layer, x1 is the first segmentation feature map, Split(·) is the segmentation function corresponding to the segmentation layer, x2 is the first dynamic convolution feature map, F2(·) is the first dynamic convolution function corresponding to the first full-dimensional dynamic convolution layer, x3 is the depth convolution feature map, F3(·) is the depth convolution function corresponding to the depth separable convolution layer, x4 is the second dynamic convolution feature map, and F4(·) is the second dynamic convolution function corresponding to the second full-dimensional dynamic convolution layer. Obtain a residual information retention flag, which indicates whether residual information retention processing is performed on the channel stitching feature map; combine the residual information retention flag, the standard convolutional feature map, the channel stitching feature map, and a preset branch aggregation algorithm to obtain a branch enhancement feature map, wherein the branch aggregation algorithm is: In the formula, y is the branch enhancement feature map, x5 is the channel splicing feature map, F1(X) is the standard convolution feature map, σ1(·) is the first activation function corresponding to the first activation layer, and shortcut is the residual information retention identifier.

4. The method for detecting potholes in road images according to claim 2, characterized in that: The detail enhancement unit includes a standard convolutional layer, a first full-dimensional dynamic convolutional layer, a normalization layer, and a second activation layer; The step of inputting the V linear mapping feature map, K linear mapping feature map, and Q linear mapping feature map into the detail enhancement unit for local feature extraction to obtain the detail enhancement feature map includes the following steps: The V-linear mapping feature map, K-linear mapping feature map, and Q-linear mapping feature map are concatenated dimensionally to obtain a dimensional concatenated image. Based on the dimensional concatenated image and a preset second local feature extraction algorithm, a detail enhancement feature map is obtained. The second local feature extraction algorithm is as follows: z=ρ(F1(σ2(ρ(F2(x6))))) In the formula, z is the detail enhancement feature map, x6 is the dimension stitched map, F1(·) is the standard convolution function corresponding to the standard convolution layer, F2(·) is the dynamic convolution function corresponding to the first full-dimensional dynamic convolution layer, ρ(·) is the normalization function corresponding to the normalization layer, and σ2(·) is the second activation function corresponding to the second activation layer.

5. The method for detecting potholes in road images according to claim 1, characterized in that: The second feature enhancement module includes several second sub-feature enhancement modules stacked sequentially. Each second sub-feature enhancement module includes a phantom convolution unit and a context aggregation unit. The phantom convolution unit includes a phantom convolution layer, a normalization layer, and a second activation layer. The step of inputting the feature segmentation map into the second feature enhancement module to obtain second feature enhancement maps of several scales for each sample road image according to several preset scales includes the following steps: The feature segmentation map is used as the input feature map of the first second sub-feature enhancement module. Based on a preset feature enhancement algorithm, the output feature enhancement map of the first second sub-feature enhancement module is obtained. The feature enhancement algorithm is as follows: X out = Mul(σ2(ρ(f Ghost (X))),f CA-Block (X)) Y out = cat(ρ(f Ghost (X out )),X) In the formula, X out X is the intermediate feature enhancement map, f is the feature segmentation map, and f is the feature enhancement map. Ghost (·) represents the convolution function corresponding to the phantom convolutional layer, f CA-Block (·) represents the residual function corresponding to the context aggregation unit, ρ(·) represents the normalization function corresponding to the normalization layer, σ2(·) represents the activation function corresponding to the second activation layer, Mul(·) represents the feature multiplication function, and Y out To output the feature enhancement map, cat(·) is the channel concatenation function; The output feature enhancement map of the first second sub-feature enhancement module is used as the input feature map of the next second sub-feature enhancement module. The above steps are repeated to obtain several output feature enhancement maps of the second sub-feature enhancement modules, which are used as second feature enhancement maps of several scales of the sample road image.

6. The method for detecting potholes in road images according to claim 1, characterized in that: The process involves inputting the stitched feature maps of each of the sample road images into the head network, upsampling the stitched feature maps according to a preset number of detection heads to obtain upsampled feature maps of each of the sample road images output by each detection head, and fusing the upsampled feature maps output by each detection head of the same sample road image to obtain a fused feature map of the sample road images. The steps include: The stitched feature maps of the sample road images are used as input feature maps for several detection heads. Based on a preset upsampling algorithm, upsampled feature maps of the sample road images output by each detection head are obtained. The upsampling algorithm is as follows: P i,upsample =F2(F ConvTranspose (F1(P i ) i )) In the formula, P i,upsample F1(·) is the upsampled feature map of the sample road image output by the i-th detection head, F2(·) is the standard convolution function corresponding to the standard convolution layer, and F2(·) is the dynamic convolution function corresponding to the first full-dimensional dynamic convolution layer. i Let F be the input feature map of the i-th detection head. ConvTranspose (·) is the convolution transpose function; Based on the upsampled feature maps output by each detection head of the same sample road image and a preset feature fusion algorithm, a fused feature map of each sample road image is obtained, wherein the feature fusion algorithm is as follows: In the formula, P out For fused feature maps, n is the number of detection heads.

7. A pothole detection device for road images, characterized in that, include: The data acquisition module is used to obtain several sample road images and a preset pothole detection model. The pothole detection model includes a backbone network, a neck network, a head network, and a prediction network. The backbone network includes a first convolutional module and a first feature enhancement module. The neck network includes a second convolutional module and a second feature enhancement module. The feature enhancement map extraction module is used to input several sample road images into the first convolution module for convolution processing to obtain a first convolution feature map of each sample road image, and input the convolution feature map into the first feature enhancement module for feature enhancement to obtain a first feature enhancement map of each sample road image; The feature segmentation map extraction module is used to input the first feature enhancement map of each of the sample road images into the second convolution module for convolution processing to obtain the second convolution feature map of each of the sample road images, and to perform segmentation processing on the second convolution feature map to obtain the feature segmentation map of each of the sample road images. The feature map extraction module is used to input the feature segmentation map into the second feature enhancement module, obtain the second feature enhancement map of each sample road image at several scales according to several preset scales, and stitch the second convolution feature map, feature segmentation map and the second feature enhancement map at several scales of the same sample road image to obtain the stitched feature map of each sample road image. The fusion feature map extraction module is used to input the stitched feature map of each of the sample road images into the head network, perform upsampling processing on the stitched feature map according to a preset number of detection heads, obtain the upsampled feature map of each of the sample road images output by each detection head, and perform fusion processing on the upsampled feature maps output by each detection head of the same sample road image to obtain the fusion feature map of each of the sample road images. The model training module is used to input the fused feature map of each of the sample road images into the prediction network to obtain several prediction regions and several label data of the prediction regions of each of the sample road images. Based on the label data of the several prediction regions and several label regions of each of the sample road images, the pothole detection model is trained to obtain the target pothole detection model. The pothole detection module is used to respond to a detection command, obtain a road image to be detected, input the road image to be detected into the target pothole detection model, and obtain the pothole detection result of the road image to be detected.

8. A computer device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and executable on the processor; the computer program, when executed by the processor, implements the steps of the pothole detection method for road images as claimed in any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores a computer program that, when executed by a processor, implements the steps of the pothole detection method for road images as described in any one of claims 1 to 6.