Crack detection method and system based on road maintenance
Through image processing technology and YOLOX-X algorithm, the recognition model is optimized to achieve rapid and accurate detection of road cracks, solving the problems of low detection efficiency and inaccurate results in the existing technology.
Patent Information
- Application Number
- CN202410065317.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-01-16
AI Technical Summary
The efficiency of road crack detection in the existing technology is low and the results are inaccurate, mainly due to the reliance on manual visual inspection and simple tools, which are greatly affected by the experience and status of the inspection personnel.
Using an image processing-based method, the target detection neural network composed of the YOLOX-X algorithm is used, combined with the image collector and image transmission unit, to optimize the recognition model to identify cracks on cement and asphalt pavements, and achieve automation through image acquisition, recognition and transmission. detection.
It improves the accuracy and efficiency of road crack detection, can quickly identify cracks on cement pavement, and enhances the accurate location of cracks in the road and the accuracy of detection results.
Smart Images

Figure CN117893902B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of road detection, and in particular to a crack detection method, system, electronic equipment and computer-readable storage medium based on road maintenance. Background Art
[0002] With the development of society, more and more people choose to travel by car. Correspondingly, the increase in traffic volume and the extension of road service life have increased the probability of road cracks. The appearance of cracks not only affects the appearance and safety performance of the road, but may also cause structural problems of the road. Therefore, timely and accurate detection of road cracks is of great significance to ensure road safety and extend the service life of the road.
[0003] At present, traditional crack detection methods mainly rely on manual visual inspection and measurement using simple tools.
[0004] Although the above method can detect road cracks, it is easily affected by the experience and status of the inspector during the detection, resulting in low efficiency and inaccurate results of road crack detection. Summary of the invention
[0005] The present invention provides a crack detection method, system and computer-readable storage medium based on road maintenance, the main purpose of which is to achieve rapid and accurate detection of road cracks.
[0006] To achieve the above object, the present invention provides a crack detection method based on road maintenance, comprising:
[0007] receiving a crack detection instruction, and confirming a crack detection environment based on the crack detection instruction, wherein the crack detection environment includes: an initial road section to be detected, an image processing unit, and an image collector for collecting road images, wherein the image collector includes: an image collection unit, a positioning unit, and an image transmission unit;
[0008] Acquire a detection path based on an initial road section, divide the detection path by using preset road section types, and obtain one or more target road sections, wherein the road section types include: cement road surface and asphalt road surface;
[0009] Extract target road segments from the one or more target road segments in sequence, and perform the following operations on the extracted target road segments:
[0010] After confirming that the extracted target road section is a cement road surface, a first image set is acquired based on an image acquisition unit in an image acquisition device, and a first recognition image set is acquired based on the first image set, wherein an acquisition frequency of the image acquisition device and a travel speed of the image acquisition device are preset;
[0011] After confirming that the extracted target road section is an asphalt road surface, acquiring a second image set based on an image acquisition unit in the image acquisition device, and acquiring a second recognition image set based on the second image set;
[0012] Optimize the pre-built image recognition model to obtain an optimized recognition model, wherein the image recognition model is: a target detection neural network composed of a YOLOX-X algorithm;
[0013] Using the optimized recognition model and the first recognition image set to obtain a first crack image set and a first defect image set, obtaining a first crack image sequence based on the first crack image set, and using the second recognition image set and a pre-constructed asphalt pavement crack recognition model to obtain a second crack image set and a second defect image set;
[0014] The first crack image sequence, the first defect image set, the second crack image set and the second defect image set are sent to the initiator of the crack detection instruction to realize the detection of cracks in the road.
[0015] Optionally, the dividing the detection path by using preset road section types to obtain one or more target road sections includes:
[0016] Acquire the road section information of the detection path, wherein the road section information includes: the road section type of the detection path and the geographical location of the detection path;
[0017] Divide the detection path based on the road section information to obtain one or more initial road sections;
[0018] Utilize the preset road segment division threshold to divide the one or more initial road segments to obtain one or more detection road segments, wherein the distance corresponding to each detection road segment in the one or more detection road segments is less than or equal to the road segment division threshold, perform identification operation on the one or more detection road segments, and obtain one or more target road segments.
[0019] Optionally, acquiring a first recognition image set according to the first image set includes:
[0020] Performing a sorting operation on the first images in the first image set according to the chronological order of acquisition time to obtain a first image sequence;
[0021] The first images are sequentially extracted from the first image sequence, and the following operations are performed on the extracted first images:
[0022] Calculating a road section distance according to the travel speed and the acquisition frequency, and performing a marking operation on the first image based on the road section distance to obtain a first marked image;
[0023] The first identification images are aggregated to obtain a first identification image set, and the first identification image set is transmitted to an image processing unit by using the image transmission unit to obtain a first recognition image set.
[0024] Optionally, optimizing the pre-built image recognition model to obtain an optimized recognition model includes:
[0025] Optimizing the image recognition model using a pre-built optimization unit to obtain a first optimization model, wherein the optimization unit is a convolutional attention mechanism;
[0026] An optimized recognition model is obtained based on the first optimization model, a pre-constructed cement pavement crack image set and a preset loss function relationship, wherein the loss function of the optimized recognition model is: 0.5.
[0027] Optionally, the loss function relationship is as follows:
[0028]
[0029] Where L represents the loss function, β represents the ratio of the overlapping area between the prediction box and the target box to the total area, d represents the distance between the center point of the prediction box and the target box, c represents the length of the diagonal of the minimum coverage box, where the minimum coverage box is related to the prediction box and the target box, α represents the weight parameter, w′ and h′ represent the width and height of the target box, respectively, and w and h represent the width and height of the prediction box, respectively.
[0030] Optionally, the acquiring a first crack image set and a first defect image set by using the optimized recognition model and the first recognition image set includes:
[0031] Extracting initial recognition images from the first recognition image set in sequence, and performing the following operations on the extracted initial recognition images:
[0032] Acquire a road surface area estimation value based on a pre-built first area estimation model and an initial recognition image, and compare the road surface area estimation value with a preset road surface area threshold;
[0033] If the estimated road surface area value is less than the road surface area threshold, confirming that the initial recognition image is a first defect image;
[0034] If the road surface area estimation value is greater than or equal to the road surface area threshold, the initial recognition image is confirmed as a target recognition image, and the target recognition image is recognized using the optimized recognition model. If cracks exist in the target recognition image, the target recognition image is confirmed as a first crack image.
[0035] The first defect image and the first crack image are respectively collected to obtain a first crack image set and a first defect image set.
[0036] Optionally, acquiring a first crack image sequence according to the first crack image set includes:
[0037] The first crack images are sequentially extracted from the first crack image set, and the following operations are performed on the extracted first crack images:
[0038] Calculate the crack length and crack area in the first crack image using the pre-constructed crack length calculation formula and crack area calculation formula, and calculate the comprehensive evaluation value using the pre-constructed comprehensive evaluation relationship, the crack length and the crack area;
[0039] Summarizing the comprehensive evaluation values to obtain a comprehensive evaluation value set, wherein the comprehensive evaluation values in the comprehensive evaluation value set correspond one-to-one to the first crack images in the first crack image set;
[0040] The comprehensive evaluation value sets are sorted in descending order to obtain a comprehensive evaluation sequence, and a first crack image sequence is acquired based on the comprehensive evaluation sequence.
[0041] Optionally, the crack length calculation formula is as follows:
[0042]
[0043] Where C represents the crack length, (x k ,y k ) represents the pixel coordinates of the kth pixel, (x k+1 ,y k+1 ) represents the pixel coordinate of the (k+1)th pixel point, j represents that there are j pixels in the crack area;
[0044] The crack area calculation formula is as follows:
[0045] M=j×μ 2
[0046] Where M represents the crack area, μ represents the pixel equivalent;
[0047] The comprehensive evaluation relationship is as follows:
[0048] Z=σC+τM
[0049] Wherein, Z represents the comprehensive evaluation value, σ and τ are preset proportional coefficients, and σ+T=1.
[0050] Optionally, the step of acquiring the second crack image set and the second defect image set by using the second recognition image set and the pre-built asphalt pavement crack recognition model includes:
[0051] A second defect image set and a second initial image set are obtained based on the second recognition image set, and a second crack image set is obtained based on the second initial image set and the asphalt pavement crack recognition model, wherein the asphalt pavement crack recognition model is a neural network model.
[0052] In order to solve the above problems, the present invention also provides a crack detection system based on road maintenance, the system comprising:
[0053] A detection instruction receiving module, used for receiving a crack detection instruction, and confirming a crack detection environment based on the crack detection instruction, wherein the crack detection environment includes: an initial road section to be detected, an image processing unit, and an image collector for collecting road images, wherein the image collector includes: an image collection unit, a positioning unit, and an image transmission unit;
[0054] An initial road segment division module is used to obtain a detection path based on an initial road segment, and divide the detection path using a preset road segment type to obtain one or more target road segments, wherein the road segment types include: cement road surface and asphalt road surface;
[0055] The image acquisition and preliminary processing module is used to extract target road sections from the one or more target road sections in sequence, and perform the following operations on the extracted target road sections:
[0056] After confirming that the extracted target road section is a cement road surface, a first image set is acquired based on an image acquisition unit in an image acquisition device, and a first recognition image set is acquired based on the first image set, wherein an acquisition frequency of the image acquisition device and a travel speed of the image acquisition device are preset;
[0057] After confirming that the extracted target road section is an asphalt road surface, acquiring a second image set based on an image acquisition unit in the image acquisition device, and acquiring a second recognition image set based on the second image set;
[0058] A model optimization module is used to optimize a pre-built image recognition model to obtain an optimized recognition model, wherein the image recognition model is: a target detection neural network composed of a YOLOX-X algorithm;
[0059] A target image processing module, used to obtain a first crack image set and a first defect image set using the optimized recognition model and the first recognition image set, obtain a first crack image sequence based on the first crack image set, and obtain a second crack image set and a second defect image set using the second recognition image set and a pre-constructed asphalt pavement crack recognition model;
[0060] The first crack image sequence, the first defect image set, the second crack image set and the second defect image set are sent to the initiator of the crack detection instruction to realize the detection of cracks in the road.
[0061] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0062] a memory storing at least one instruction; and
[0063] The processor executes the instructions stored in the memory to implement the above-mentioned crack detection method based on road maintenance.
[0064] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned crack detection method based on road maintenance.
[0065] To solve the problems described in the background technology, the embodiment of the present invention receives a crack detection instruction, confirms the crack detection environment based on the crack detection instruction, obtains a detection path based on an initial road section, divides the detection path using a preset road section type, and obtains one or more target road sections. It can be seen that the embodiment of the present invention considers the actual detection environment for cracks in the road before detecting road cracks, that is, it considers common road types: cement pavement and asphalt pavement. Further, by subsequently using different methods for different types of pavements, the accurate recognition of cracks in different types of pavements is improved. The pre-constructed image recognition model is optimized to obtain an optimized recognition model, wherein the image recognition model is: a target detection neural network composed of a YOLOX-X algorithm. It can be seen that the embodiment of the present invention uses an image recognition model with high recognition accuracy. At the same time, it is considered to optimize it so that the optimized recognition model can more quickly identify cracks in the cement pavement, further speeding up the speed of performing crack detection on the cement pavement and increasing the accuracy of performing crack detection on the cement pavement. The first crack image set and the first defect image set are obtained by using the optimized recognition model and the first recognition image set, the first crack image sequence is obtained according to the first crack image set, and the second crack image set and the second defect image set are obtained by using the second recognition image set and the pre-constructed asphalt pavement crack recognition model. It can be seen that the embodiment of the present invention does not perform crack detection on all collected images, but first performs a classification operation on the image, and performs a crack detection operation on the classified pictures that can express the pavement conditions, thereby increasing the speed of pavement crack detection, and by sending the first crack image sequence, the first defect image set, the second crack image set and the second defect image set to the initiator of the crack detection instruction, using the information identified in the image, the cracks in the road are accurately located, and by improving the location of the image acquisition position, the accuracy of the detection result of cracks in the road is improved. Therefore, the crack detection method, system, electronic device and computer-readable storage medium based on road maintenance proposed by the present invention can achieve fast and accurate detection of road cracks. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 A schematic diagram of a process flow of a crack detection method based on road maintenance provided by an embodiment of the present invention;
[0067] Figure 2 A functional module diagram of a crack detection system based on road maintenance provided by an embodiment of the present invention;
[0068] Figure 3 A schematic diagram of the structure of an electronic device for implementing the crack detection method based on road maintenance provided by an embodiment of the present invention.
[0069] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0070] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0071] The embodiment of the present application provides a crack detection method based on road maintenance. The execution subject of the crack detection method based on road maintenance includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the crack detection method based on road maintenance can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0072] Reference Figure 1 FIG. 1 is a flow chart of a crack detection method based on road maintenance provided by an embodiment of the present invention. In this embodiment, the crack detection method based on road maintenance includes:
[0073] S1. Receive a crack detection instruction, and confirm a crack detection environment based on the crack detection instruction, wherein the crack detection environment includes: an initial road section to be detected, an image processing unit, and an image collector for collecting road images, wherein the image collector includes: an image collection unit, a positioning unit, and an image transmission unit.
[0074] It should be understood that the crack detection instruction is an instruction issued by road maintenance staff to detect whether there are cracks on the road, and the crack detection environment is a necessary environment for performing detection on whether there are cracks in the road. The main function of the image collector is to collect images of the initial road section. Optionally, a drone with a camera is selected as the image collector. The positioning unit is a unit that can locate the location information of the image collector. Optionally, a GPS system is selected as the positioning unit of the image collector. The image acquisition unit is a unit for the image collector to collect images. Optionally, a camera is used as the image acquisition unit. The image transmission unit is configured in the image collector and can realize the transmission of the collected image to the image processing unit. The image processing unit is a unit that detects whether the image collected by the image collector contains cracks. Optionally, a computer is selected as the image processing unit.
[0075] Furthermore, this embodiment is mainly intended to solve the problems of inaccurate detection results of cracks in roads and low efficiency of crack detection in roads.
[0076] For example, Xiao Wang is a road maintenance worker. Now Xiao Wang wants to inspect Road A and Road B. Xiao Wang selects UAV C with a camera and sets the image acquisition frequency, travel speed and other parameters of UAV C for collecting images and completing the image acquisition task. UAV C collects images and transmits the collected images to the image processing unit, which then detects the collected images.
[0077] S2. Acquire a detection path based on the initial road section, divide the detection path by using preset road section types, and obtain one or more target road sections.
[0078] It should be explained that cement pavement refers to pavement with cement concrete as the surface layer. Asphalt pavement refers to various types of pavement paved with road asphalt materials mixed into mineral materials.
[0079] It should be understood that the detection path is divided by using preset road segment types to obtain one or more target road segments, including:
[0080] Acquire the road section information of the detection path, wherein the road section information includes: the road section type of the detection path and the geographical location of the detection path;
[0081] Divide the detection path based on the road section information to obtain one or more initial road sections;
[0082] Utilize the preset road segment division threshold to divide the one or more initial road segments to obtain one or more detection road segments, wherein the distance corresponding to each detection road segment in the one or more detection road segments is less than or equal to the road segment division threshold, perform identification operation on the one or more detection road segments, and obtain one or more target road segments.
[0083] Exemplarily, the initial road sections are Road A and Road B, and Road A is a cement road surface, Road B is an asphalt road surface, the length of Road A is 100 meters, the length of Road B is 60 meters, and the preset section division threshold is 50 meters. Then, Road A is divided into two detection sections, each of which is 50 meters in length, and Road B is divided into one detection section of 50 meters and the other detection section of 10 meters. The divided Road A and Road B are marked to obtain one or more target sections, such as: Road A-1-Cement-50, where Road A represents the Ath road in the initial section, 1 represents the first detection section in Road A, Cement represents that the road surface type of Road A is a cement road surface, and 50 represents that the length of the detection section is 50 meters.
[0084] It should be understood that by dividing and marking the detection path, it is possible to locate the target road section, thereby achieving rapid response to emergencies or accurately calculating the location of cracks in the road surface to help construction teams remedy cracked sections.
[0085] Optionally, the method for obtaining the road section information is to identify the road section type of the initial road section through satellite images and neural networks, and then obtain the geographical location through existing APP or software. Other technologies can achieve the same effect, which will not be repeated here.
[0086] Furthermore, by dividing the initial road sections, it is possible to be realistic and perform different tests on the divided target paths according to different road surface characteristics, thereby increasing the accuracy of the test results.
[0087] It is understandable that there are differences in the road surface forms of cement pavement and asphalt pavement. For example, the road surface of asphalt pavement is irregularly grid-shaped, while the road surface of cement pavement is relatively flat. Therefore, in this embodiment, different image processing methods are used to process the images collected from the cement pavement and the images collected from the asphalt pavement respectively. For the specific processing methods, please refer to the subsequent embodiments.
[0088] For example, the section type of Road A is cement pavement, while the section type of Road B is asphalt pavement, and Road A and Road B are directly connected. The images collected by image collector C in Road A are all cement pavement images, and algorithm A is used to process and accurately identify the cement pavement images. When image collector C is located in Road B, the images collected by image collector C are all asphalt pavement images, and algorithm B is used to process and accurately identify the asphalt pavement images.
[0089] S3. After confirming that the extracted target road section is a cement road surface, a first image set is acquired based on an image acquisition unit in an image acquisition device, and a first recognition image set is acquired based on the first image set.
[0090] It should be understood that the first image is an image directly captured by the image capture unit.
[0091] Further, acquiring a first recognition image set according to the first image set includes:
[0092] Performing a sorting operation on the first images in the first image set according to the chronological order of acquisition time to obtain a first image sequence;
[0093] The first images are sequentially extracted from the first image sequence, and the following operations are performed on the extracted first images:
[0094] Calculating a road section distance according to the travel speed and the acquisition frequency, and performing a marking operation on the first image based on the road section distance to obtain a first marked image;
[0095] The first identification images are aggregated to obtain a first identification image set, and the first identification image set is transmitted to an image processing unit by using the image transmission unit to obtain a first recognition image set.
[0096] It should be understood that the first image set includes one or more first images, and after performing a marking operation on the first image sequence using the road section distance, the position of the first marked image in the target road section can be clearly identified in combination with the target road section.
[0097] It should be explained that the road section distance is calculated according to the travel speed and the acquisition frequency, and the calculation formula is as follows:
[0098] S=vt
[0099] Among them, S represents the road section distance, v represents the travel speed, and t represents the collection frequency.
[0100] For example, the length of Road A is 100 meters, the speed of the image collector is 2 meters per second, and the acquisition frequency is twice per second. The number of images collected by the image collector in Road A is 100 times, and the position corresponding to the first identification image is located at zero to one meter from the starting position of Road A, and the position corresponding to the second identification image is located at one to two meters from the starting position of Road A, and so on. The result after the first identification image is marked is: Road A-1-Cement-50-1 to 2 meters.
[0101] S4. After confirming that the extracted target road section is an asphalt road surface, a second image set is acquired based on an image acquisition unit in the image acquisition device, and a second recognition image set is acquired based on the second image set.
[0102] It is understandable that the acquisition method of the second image set and the second recognition image set is the same as the acquisition method of the first image set and the first recognition image set, and can achieve the same effects, which will not be repeated here.
[0103] S5. Optimize the pre-built image recognition model to obtain an optimized recognition model.
[0104] It should be explained that the YOLOX-X algorithm is a YOLOX algorithm with a network depth of 1.33 and a network width of 1.25, and the YOLOX algorithm is a prior art and will not be described in detail here.
[0105] Furthermore, the optimizing the pre-built image recognition model to obtain the optimized recognition model includes:
[0106] Optimizing the image recognition model using a pre-built optimization unit to obtain a first optimization model, wherein the optimization unit is a convolutional attention mechanism;
[0107] An optimized recognition model is obtained based on the first optimization model, a pre-constructed cement pavement crack image set and a preset loss function relationship, wherein the loss function of the optimized recognition model is: 0.5.
[0108] It should be explained that adding a convolutional attention mechanism to the YOLOX-X algorithm can achieve faster recognition of cracks in the image, and the technology of adding a convolutional attention mechanism to the YOLOX-X algorithm is a prior art and will not be repeated here. By formulating the loss function in the first optimization model and obtaining the second optimization model, a model with convergence properties can be obtained, and compared with the existing YOLOX algorithm, the detection accuracy and speed of the model are higher. By training the second optimization model, faster and more accurate recognition of the first recognition image in the first recognition image set can be achieved.
[0109] It should be understood that the loss function relationship is as follows:
[0110]
[0111] Where L represents the loss function, β represents the ratio of the overlapping area between the prediction box and the target box to the total area, d represents the distance between the center point of the prediction box and the target box, c represents the length of the diagonal of the minimum coverage box, where the minimum coverage box is related to the prediction box and the target box, α represents the weight parameter, w′ and h′ represent the width and height of the target box, respectively, and w and h represent the width and height of the prediction box, respectively.
[0112] It should be explained that the minimum coverage box refers to the smallest rectangular box used to cover all target areas. The distance between the center points of the prediction box and the target box is the Euclidean distance or Manhattan distance between the center points of the two boxes.
[0113] S6. Use the optimized recognition model and the first recognition image set to obtain a first crack image set and a first defect image set, obtain a first crack image sequence based on the first crack image set, and use the second recognition image set and a pre-constructed asphalt pavement crack recognition model to obtain a second crack image set and a second defect image set.
[0114] Furthermore, the step of acquiring a first crack image set and a first defect image set by using the optimized recognition model and the first recognition image set includes:
[0115] Extracting initial recognition images from the first recognition image set in sequence, and performing the following operations on the extracted initial recognition images:
[0116] Acquire a road surface area estimation value based on a pre-built first area estimation model and an initial recognition image, and compare the road surface area estimation value with a preset road surface area threshold;
[0117] If the estimated road surface area value is less than the road surface area threshold, confirming that the initial recognition image is a first defect image;
[0118] If the road surface area estimation value is greater than or equal to the road surface area threshold, the initial recognition image is confirmed as a target recognition image, and the target recognition image is recognized using the optimized recognition model. If cracks exist in the target recognition image, the target recognition image is confirmed as a first crack image.
[0119] The first defect image and the first crack image are respectively collected to obtain a first crack image set and a first defect image set.
[0120] It should be explained that the acquisition of the initial recognition image is limited by the road conditions at the time of shooting, that is, the road surface in the initial recognition image is not necessarily complete. For example, when the first initial recognition image is taken, one or more vehicles are jammed on the cement road due to road congestion, which makes it difficult to use the first initial recognition image to judge whether there are cracks in the cement road surface in the first recognition image. Therefore, the images in the first recognition image set are first divided into: first defect images or target recognition images, and the target recognition images are recognized using an optimized recognition model to achieve recognition of images that can fully express the cement road conditions. By screening out images that cannot express the road surface conditions, only images that can express the road surface conditions are recognized, thereby improving the speed of road surface condition recognition, and by optimizing the construction of the recognition model, accurate recognition of images is achieved through the optimized recognition model. Optionally, the first area estimation model is a pre-trained neural network model, and other technologies can achieve the same effect, which will not be repeated here.
[0121] It can be understood that the step of acquiring the first crack image sequence according to the first crack image set includes:
[0122] The first crack images are sequentially extracted from the first crack image set, and the following operations are performed on the extracted first crack images:
[0123] Calculate the crack length and crack area in the first crack image using the pre-constructed crack length calculation formula and crack area calculation formula, and calculate the comprehensive evaluation value using the pre-constructed comprehensive evaluation relationship, the crack length and the crack area;
[0124] Summarizing the comprehensive evaluation values to obtain a comprehensive evaluation value set, wherein the comprehensive evaluation values in the comprehensive evaluation value set correspond one-to-one to the first crack images in the first crack image set;
[0125] The comprehensive evaluation value sets are sorted in descending order to obtain a comprehensive evaluation sequence, and a first crack image sequence is acquired based on the comprehensive evaluation sequence.
[0126] Furthermore, the crack length calculation formula is as follows:
[0127]
[0128] Where C represents the crack length, (x k ,y k ) represents the pixel coordinates of the kth pixel, (x k+1 ,y k+1 ) represents the pixel coordinate of the (k+1)th pixel point, j represents that there are j pixels in the crack area;
[0129] The crack area calculation formula is as follows:
[0130] M=j×μ 2
[0131] Where M represents the crack area, μ represents the pixel equivalent;
[0132] The comprehensive evaluation relationship is as follows:
[0133] Z=σC+τM
[0134] Wherein, Z represents the comprehensive evaluation value, σ and τ are preset proportional coefficients, and σ+T=1.
[0135] It should be explained that pixel equivalent refers to the actual physical size represented by a pixel in a digital image. By calculating the comprehensive evaluation value, the estimation of the cracks contained in the first crack image can be achieved. Acquiring the first crack image sequence can provide guidance for operations such as crack repair and road hazard assessment.
[0136] Furthermore, the method of obtaining the second crack image set and the second defect image set by using the second recognition image set and the pre-built asphalt pavement crack recognition model includes:
[0137] A second defect image set and a second initial image set are obtained based on the second recognition image set, and a second crack image set is obtained based on the second initial image set and the asphalt pavement crack recognition model, wherein the asphalt pavement crack recognition model is a neural network model.
[0138] It can be understood that the second initial images contained in the second initial image set are images in the captured asphalt pavement images that are expected to express the road conditions of the asphalt pavement, the second defect image set is images in the captured asphalt pavement images that are not expected to express the road conditions of the asphalt pavement, and the second crack image set is a set of images of asphalt pavement with cracks. The method of obtaining the second defect image set and the second initial image set based on the second recognition image set is consistent with the method of obtaining the first defect image using the initial recognition image, and can achieve the same effect, which will not be repeated here.
[0139] Exemplarily, the first crack image sequence includes two first crack images, and the comprehensive evaluation values corresponding to the two first crack images are respectively 0.8 and 0.7, and the first crack image corresponding to 0.8 is located first in the first crack image sequence.
[0140] S7. Send the first crack image sequence, the first defect image set, the second crack image set and the second defect image set to the initiator of the crack detection instruction to detect cracks in the road.
[0141] For example, after receiving the first crack image sequence, the first defect image set, the second crack image set and the second defect image set, Xiao Wang, a road maintenance worker, found that there were ten crack images in the first crack image sequence, and the position corresponding to the first crack image was three to four meters of the road A-1-cement, where serious cracks appeared and urgently needed to be repaired. The first defect image set included a first defect image, and the position corresponding to the image was seven to eight meters of the road A-2-cement. Due to the large number of pedestrians at this location, the captured image could not express the road conditions at this location. Therefore, Xiao Wang decided to personally drive to seven to eight meters of the road A-2-cement to check whether there were cracks on the road after repairing the three to four meters of the road A-1-cement. The second crack image set and the second defect image set have the same effect as the first crack image sequence and the first defect image set, which will not be repeated here.
[0142] To solve the problems described in the background technology, the embodiment of the present invention receives a crack detection instruction, confirms the crack detection environment based on the crack detection instruction, obtains a detection path based on an initial road section, divides the detection path using a preset road section type, and obtains one or more target road sections. It can be seen that the embodiment of the present invention considers the actual detection environment for cracks in the road before detecting road cracks, that is, it considers common road types: cement pavement and asphalt pavement. Further, by subsequently using different methods for different types of pavements, the accurate recognition of cracks in different types of pavements is improved. The pre-constructed image recognition model is optimized to obtain an optimized recognition model, wherein the image recognition model is: a target detection neural network composed of a YOLOX-X algorithm. It can be seen that the embodiment of the present invention uses an image recognition model with high recognition accuracy. At the same time, it is considered to optimize it so that the optimized recognition model can more quickly identify cracks in the cement pavement, further speeding up the speed of performing crack detection on the cement pavement and increasing the accuracy of performing crack detection on the cement pavement. The first crack image set and the first defect image set are obtained by using the optimized recognition model and the first recognition image set, the first crack image sequence is obtained according to the first crack image set, and the second crack image set and the second defect image set are obtained by using the second recognition image set and the pre-constructed asphalt pavement crack recognition model. It can be seen that the embodiment of the present invention does not perform crack detection on all collected images, but first performs a classification operation on the image, and performs a crack detection operation on the classified pictures that can express the pavement conditions, thereby increasing the speed of pavement crack detection, and by sending the first crack image sequence, the first defect image set, the second crack image set and the second defect image set to the initiator of the crack detection instruction, using the information identified in the image, the cracks in the road are accurately located, and by improving the location of the image acquisition position, the accuracy of the detection result of cracks in the road is improved. Therefore, the crack detection method, system, electronic device and computer-readable storage medium based on road maintenance proposed by the present invention can achieve fast and accurate detection of road cracks.
[0143] like Figure 2 , which is a functional module diagram of a crack detection system based on road maintenance provided by an embodiment of the present invention.
[0144] The crack detection system 100 based on road maintenance of the present invention can be installed in an electronic device. According to the functions to be implemented, the crack detection system 100 based on road maintenance can include a detection instruction receiving module 101, an initial road segment division module 102, an image acquisition and preliminary processing module 103, a model optimization module 104 and a target image processing module 105. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0145] The detection instruction receiving module 101 is used to receive a crack detection instruction and confirm a crack detection environment based on the crack detection instruction, wherein the crack detection environment includes: an initial road section to be detected, an image processing unit and an image collector for collecting road images, wherein the image collector includes: an image collection unit, a positioning unit and an image transmission unit;
[0146] The initial road segment division module 102 is used to obtain a detection path based on the initial road segment, and divide the detection path using a preset road segment type to obtain one or more target road segments, wherein the road segment types include: cement road surface and asphalt road surface;
[0147] The image acquisition and preliminary processing module 103 is used to sequentially extract target road sections from the one or more target road sections, and perform the following operations on the extracted target road sections:
[0148] After confirming that the extracted target road section is a cement road surface, a first image set is acquired based on an image acquisition unit in an image acquisition device, and a first recognition image set is acquired based on the first image set, wherein an acquisition frequency of the image acquisition device and a travel speed of the image acquisition device are preset;
[0149] After confirming that the extracted target road section is an asphalt road surface, acquiring a second image set based on an image acquisition unit in the image acquisition device, and acquiring a second recognition image set based on the second image set;
[0150] The model optimization module 104 is used to optimize the pre-built image recognition model to obtain an optimized recognition model, wherein the image recognition model is: a target detection neural network composed of a YOLOX-X algorithm;
[0151] The target image processing module 105 is used to obtain a first crack image set and a first defect image set using the optimized recognition model and the first recognition image set, obtain a first crack image sequence based on the first crack image set, and obtain a second crack image set and a second defect image set using the second recognition image set and a pre-constructed asphalt pavement crack recognition model;
[0152] The first crack image sequence, the first defect image set, the second crack image set and the second defect image set are sent to the initiator of the crack detection instruction to realize the detection of cracks in the road.
[0153] like Figure 3 , is a schematic diagram of the structure of an electronic device for implementing a crack detection method based on road maintenance provided by an embodiment of the present invention.
[0154] The electronic device 1 may include a processor 10, a memory 11, a bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a crack detection program based on road maintenance.
[0155] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card, etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the crack detection program under road maintenance, but also be used to temporarily store data that has been output or is to be output.
[0156] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, crack detection programs based on road maintenance, etc.), and calls data stored in the memory 11, so as to execute various functions of the electronic device 1 and process data.
[0157] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0158] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0159] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management system, so that the power management system can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0160] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0161] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0162] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0163] The crack detection program based on road maintenance stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0164] receiving a crack detection instruction, and confirming a crack detection environment based on the crack detection instruction, wherein the crack detection environment includes: an initial road section to be detected, an image processing unit, and an image collector for collecting road images, wherein the image collector includes: an image collection unit, a positioning unit, and an image transmission unit;
[0165] Acquire a detection path based on an initial road section, divide the detection path by using preset road section types, and obtain one or more target road sections, wherein the road section types include: cement road surface and asphalt road surface;
[0166] Extract target road segments from the one or more target road segments in sequence, and perform the following operations on the extracted target road segments:
[0167] After confirming that the extracted target road section is a cement road surface, a first image set is acquired based on an image acquisition unit in an image acquisition device, and a first recognition image set is acquired based on the first image set, wherein an acquisition frequency of the image acquisition device and a travel speed of the image acquisition device are preset;
[0168] After confirming that the extracted target road section is an asphalt road surface, acquiring a second image set based on an image acquisition unit in the image acquisition device, and acquiring a second recognition image set based on the second image set;
[0169] Optimize the pre-built image recognition model to obtain an optimized recognition model, wherein the image recognition model is: a target detection neural network composed of a YOLOX-X algorithm;
[0170] Using the optimized recognition model and the first recognition image set to obtain a first crack image set and a first defect image set, obtaining a first crack image sequence based on the first crack image set, and using the second recognition image set and a pre-constructed asphalt pavement crack recognition model to obtain a second crack image set and a second defect image set;
[0171] The first crack image sequence, the first defect image set, the second crack image set and the second defect image set are sent to the initiator of the crack detection instruction to realize the detection of cracks in the road.
[0172] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figures 1 to 3 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0173] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or system capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0174] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0175] receiving a crack detection instruction, and confirming a crack detection environment based on the crack detection instruction, wherein the crack detection environment includes: an initial road section to be detected, an image processing unit, and an image collector for collecting road images, wherein the image collector includes: an image collection unit, a positioning unit, and an image transmission unit;
[0176] Acquire a detection path based on an initial road section, divide the detection path by using preset road section types, and obtain one or more target road sections, wherein the road section types include: cement road surface and asphalt road surface;
[0177] Extract target road segments from the one or more target road segments in sequence, and perform the following operations on the extracted target road segments:
[0178] After confirming that the extracted target road section is a cement road surface, a first image set is acquired based on an image acquisition unit in an image acquisition device, and a first recognition image set is acquired based on the first image set, wherein an acquisition frequency of the image acquisition device and a travel speed of the image acquisition device are preset;
[0179] After confirming that the extracted target road section is an asphalt road surface, acquiring a second image set based on an image acquisition unit in the image acquisition device, and acquiring a second recognition image set based on the second image set;
[0180] Optimize the pre-built image recognition model to obtain an optimized recognition model, wherein the image recognition model is: a target detection neural network composed of a YOLOX-X algorithm;
[0181] Using the optimized recognition model and the first recognition image set to obtain a first crack image set and a first defect image set, obtaining a first crack image sequence based on the first crack image set, and using the second recognition image set and a pre-constructed asphalt pavement crack recognition model to obtain a second crack image set and a second defect image set;
[0182] The first crack image sequence, the first defect image set, the second crack image set and the second defect image set are sent to the initiator of the crack detection instruction to realize the detection of cracks in the road.
[0183] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0184] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0185] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0186] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0187] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0188] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0189] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or systems stated in a system claim can also be implemented by one unit or system through software or hardware. Secondary words are used to indicate names, but not to indicate any particular order.
[0190] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A crack detection method based on road maintenance, characterized in that: The method comprises: receiving a crack detection instruction, and confirming a crack detection environment based on the crack detection instruction, wherein the crack detection environment includes: an initial road section to be detected, an image processing unit, and an image collector for collecting road images, wherein the image collector includes: an image collection unit, a positioning unit, and an image transmission unit; Acquire a detection path based on an initial road section, divide the detection path by using preset road section types, and obtain one or more target road sections, wherein the road section types include: cement road surface and asphalt road surface; Extract target road segments from the one or more target road segments in sequence, and perform the following operations on the extracted target road segments: After confirming that the extracted target road section is a cement road surface, a first image set is acquired based on an image acquisition unit in an image acquisition device, and a first recognition image set is acquired based on the first image set, wherein an acquisition frequency of the image acquisition device and a travel speed of the image acquisition device are preset; After confirming that the extracted target road section is an asphalt road surface, acquiring a second image set based on an image acquisition unit in the image acquisition device, and acquiring a second recognition image set based on the second image set; Optimize the pre-built image recognition model to obtain an optimized recognition model, wherein the image recognition model is: a target detection neural network composed of a YOLOX-X algorithm; The step of optimizing the pre-built image recognition model to obtain an optimized recognition model includes: Optimizing the image recognition model using a pre-built optimization unit to obtain a first optimization model, wherein the optimization unit is a convolutional attention mechanism; Acquire an optimization recognition model based on the first optimization model, a pre-constructed cement pavement crack image set, and a preset loss function relationship; The loss function relationship is as follows: Where L represents the loss function, β represents the ratio of the overlapping area of the prediction box and the target box to the total area, d represents the distance between the center point of the prediction box and the target box, c represents the length of the diagonal of the minimum coverage box, where the minimum coverage box is related to the prediction box and the target box, α represents the weight parameter, w′ and h′ represent the width and height of the target box, respectively, and w and h represent the width and height of the prediction box, respectively; The first crack image set and the first defect image set are obtained by using the optimized recognition model and the first recognition image set, wherein the first crack image set and the first defect image set are obtained by using the optimized recognition model and the first recognition image set, including: Extracting initial recognition images from the first recognition image set in sequence, and performing the following operations on the extracted initial recognition images: Acquire a road surface area estimation value based on a pre-built first area estimation model and an initial recognition image, and compare the road surface area estimation value with a preset road surface area threshold; If the estimated road surface area value is less than the road surface area threshold, confirming that the initial recognition image is a first defect image; If the road surface area estimation value is greater than or equal to the road surface area threshold, the initial recognition image is confirmed as a target recognition image, and the target recognition image is recognized using the optimized recognition model. If cracks exist in the target recognition image, the target recognition image is confirmed as a first crack image. The first defect image and the first crack image are respectively collected to obtain a first crack image set and a first defect image set; Acquiring a first crack image sequence according to the first crack image set, wherein acquiring the first crack image sequence according to the first crack image set comprises: The first crack images are sequentially extracted from the first crack image set, and the following operations are performed on the extracted first crack images: Calculate the crack length and crack area in the first crack image using the pre-constructed crack length calculation formula and crack area calculation formula, and calculate the comprehensive evaluation value using the pre-constructed comprehensive evaluation relationship, the crack length and the crack area; Summarizing the comprehensive evaluation values to obtain a comprehensive evaluation value set, wherein the comprehensive evaluation values in the comprehensive evaluation value set correspond one-to-one to the first crack images in the first crack image set; sorting the comprehensive assessment value sets in descending order to obtain a comprehensive assessment sequence, and acquiring a first crack image sequence based on the comprehensive assessment sequence; The crack length calculation formula is as follows: Where C represents the crack length, (x k ,y k ) represents the pixel coordinates of the kth pixel, (x k+1 ,y k+1 ) represents the pixel coordinate of the (k+1)th pixel point, j represents that there are j pixels in the crack area; The crack area calculation formula is as follows: M=j×μ 2 Where M represents the crack area, μ represents the pixel equivalent; The comprehensive evaluation relationship is as follows: Z=σC+TM Wherein, Z represents the comprehensive evaluation value, σ and τ are preset proportional coefficients, and σ+T=1; Acquire a second crack image set and a second defect image set using a second recognition image set and a pre-constructed asphalt pavement crack recognition model; The method of obtaining the second crack image set and the second defect image set by using the second recognition image set and the pre-built asphalt pavement crack recognition model includes: Acquire a second defect image set and a second initial image set based on the second recognition image set, and acquire a second crack image set based on the second initial image set and the asphalt pavement crack recognition model, wherein the asphalt pavement crack recognition model is a neural network model; The first crack image sequence, the first defect image set, the second crack image set and the second defect image set are sent to the initiator of the crack detection instruction to realize the detection of cracks in the road.
2. The crack detection method based on road maintenance according to claim 1, characterized in that: The method of dividing the detection path by using preset road segment types to obtain one or more target road segments includes: Acquire the road section information of the detection path, wherein the road section information includes: the road section type of the detection path and the geographical location of the detection path; Divide the detection path based on the road section information to obtain one or more initial road sections; Utilize the preset road segment division threshold to divide the one or more initial road segments to obtain one or more detection road segments, wherein the distance corresponding to each detection road segment in the one or more detection road segments is less than or equal to the road segment division threshold, perform identification operation on the one or more detection road segments, and obtain one or more target road segments.
3. The crack detection method based on road maintenance according to claim 1, characterized in that: The step of acquiring a first recognition image set according to the first image set comprises: Performing a sorting operation on the first images in the first image set according to the chronological order of acquisition time to obtain a first image sequence; The first images are sequentially extracted from the first image sequence, and the following operations are performed on the extracted first images: Calculating a road section distance according to the travel speed and the acquisition frequency, and performing a marking operation on the first image based on the road section distance to obtain a first marked image; The first identification images are aggregated to obtain a first identification image set, and the first identification image set is transmitted to an image processing unit by using the image transmission unit to obtain a first recognition image set.
4. A crack detection system based on road maintenance, characterized in that: The system comprises: A detection instruction receiving module, used for receiving a crack detection instruction, and confirming a crack detection environment based on the crack detection instruction, wherein the crack detection environment includes: an initial road section to be detected, an image processing unit, and an image collector for collecting road images, wherein the image collector includes: an image collection unit, a positioning unit, and an image transmission unit; An initial road segment division module is used to obtain a detection path based on an initial road segment, and divide the detection path using a preset road segment type to obtain one or more target road segments, wherein the road segment types include: cement road surface and asphalt road surface; The image acquisition and preliminary processing module is used to extract target road sections from the one or more target road sections in sequence, and perform the following operations on the extracted target road sections: After confirming that the extracted target road section is a cement road surface, a first image set is acquired based on an image acquisition unit in an image acquisition device, and a first recognition image set is acquired based on the first image set, wherein an acquisition frequency of the image acquisition device and a travel speed of the image acquisition device are preset; After confirming that the extracted target road section is an asphalt road surface, acquiring a second image set based on an image acquisition unit in the image acquisition device, and acquiring a second recognition image set based on the second image set; A model optimization module is used to optimize a pre-built image recognition model to obtain an optimized recognition model, wherein the image recognition model is: a target detection neural network composed of a YOLOX-X algorithm; The step of optimizing the pre-built image recognition model to obtain an optimized recognition model includes: Optimizing the image recognition model using a pre-built optimization unit to obtain a first optimization model, wherein the optimization unit is a convolutional attention mechanism; Acquire an optimization recognition model based on the first optimization model, a pre-constructed cement pavement crack image set, and a preset loss function relationship; The loss function relationship is as follows: Where L represents the loss function, β represents the ratio of the overlapping area of the prediction box and the target box to the total area, d represents the distance between the center point of the prediction box and the target box, c represents the length of the diagonal of the minimum coverage box, where the minimum coverage box is related to the prediction box and the target box, α represents the weight parameter, w′ and h′ represent the width and height of the target box, respectively, and w and h represent the width and height of the prediction box, respectively; A target image processing module is used to obtain a first crack image set and a first defect image set by using the optimized recognition model and the first recognition image set, wherein the obtaining of the first crack image set and the first defect image set by using the optimized recognition model and the first recognition image set includes: Extracting initial recognition images from the first recognition image set in sequence, and performing the following operations on the extracted initial recognition images: Acquire a road surface area estimation value based on a pre-built first area estimation model and an initial recognition image, and compare the road surface area estimation value with a preset road surface area threshold; If the estimated road surface area value is less than the road surface area threshold, confirming that the initial recognition image is a first defect image; If the road surface area estimation value is greater than or equal to the road surface area threshold, the initial recognition image is confirmed as a target recognition image, and the target recognition image is recognized using the optimized recognition model. If cracks exist in the target recognition image, the target recognition image is confirmed as a first crack image. The first defect image and the first crack image are respectively collected to obtain a first crack image set and a first defect image set; Acquiring a first crack image sequence according to the first crack image set, wherein acquiring the first crack image sequence according to the first crack image set comprises: The first crack images are sequentially extracted from the first crack image set, and the following operations are performed on the extracted first crack images: Calculate the crack length and crack area in the first crack image using the pre-constructed crack length calculation formula and crack area calculation formula, and calculate the comprehensive evaluation value using the pre-constructed comprehensive evaluation relationship, the crack length and the crack area; Summarizing the comprehensive evaluation values to obtain a comprehensive evaluation value set, wherein the comprehensive evaluation values in the comprehensive evaluation value set correspond one-to-one to the first crack images in the first crack image set; sorting the comprehensive assessment value sets in descending order to obtain a comprehensive assessment sequence, and acquiring a first crack image sequence based on the comprehensive assessment sequence; The crack length calculation formula is as follows: Where C represents the crack length, (x k ,y k ) represents the pixel coordinates of the kth pixel, (x k+1 ,y k+1 ) represents the pixel coordinate of the (k+1)th pixel point, j represents that there are j pixels in the crack area; The crack area calculation formula is as follows: M=j×μ 2 Where M represents the crack area, μ represents the pixel equivalent; The comprehensive evaluation relationship is as follows: Z=σC+TM Wherein, Z represents the comprehensive evaluation value, σ and τ are preset proportional coefficients, and σ+T=1; Acquire a second crack image set and a second defect image set using a second recognition image set and a pre-constructed asphalt pavement crack recognition model; The method of obtaining the second crack image set and the second defect image set by using the second recognition image set and the pre-built asphalt pavement crack recognition model includes: Acquire a second defect image set and a second initial image set based on the second recognition image set, and acquire a second crack image set based on the second initial image set and the asphalt pavement crack recognition model, wherein the asphalt pavement crack recognition model is a neural network model; The first crack image sequence, the first defect image set, the second crack image set and the second defect image set are sent to the initiator of the crack detection instruction to realize the detection of cracks in the road.
Citation Information
Patent Citations
Road surface crack detection method based on MobileNet-PSPNet neural network model
CN113034444A
Road surface disease detection network training method and device, equipment and storage medium
CN114882356A
