Real-time automatic detection method and system of pavement defects based on edge computing technology
The real-time automatic detection method of pavement diseases through edge computing technology solves the problems of data processing lag and untimely detection results in the existing technology, realizes real-time identification and rapid response of pavement diseases, and improves detection efficiency and flexibility.
Patent Information
- Application Number
- CN202311638886.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-01
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-12-01
AI Technical Summary
Existing pavement disease detection methods have problems such as data processing lag, inability to achieve real-time detection, and the separation of field collection and in-house identification processing, resulting in detection results that cannot be grasped in a timely manner.
A real-time automatic detection method of road pavement diseases based on edge computing technology is adopted. By receiving the original image data of the road, decoding, preprocessing and deep neural network calculation are performed, and the detection frame is optimized by combining the non-maximum suppression algorithm and the connectivity principle to realize the disease type and Real-time recognition and response to location.
It realizes real-time recognition and processing of road surface disease image data, ensures real-time data collection, transmission and processing, improves edge data processing efficiency, and can quickly respond and adapt to the needs of different detection tasks.
Smart Images

Figure CN117671495B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition technology, and in particular to a real-time pavement disease automatic detection method and system based on edge computing technology. Background Art
[0002] At present, road condition detection is mostly completed by automated detection equipment, among which road surface disease images are the main collected data, and the data volume can reach more than 1GB per kilometer. The labeling and identification of road surface disease images is also one of the main tasks of road condition detection. The huge volume of road surface disease images has put forward an urgent need for automated identification and processing.
[0003] The existing pavement disease image data processing adopts the "collect first, then identify" mode, that is, field collection and identification processing are carried out in two steps: after field collection, the data is mailed to the hard disk to the identification processing end, and then the image recognition processing is completed through a large amount of manual recognition. Considering the data mailing and manual identification processing time, the road condition evaluation results will generally lag behind the field inspection for more than 10-20 days, which cannot meet the goal of rapid road condition detection and evaluation. With the development of cloud computing technology, the industry has also developed a model that uses cloud-based centralized automatic recognition, that is, after the field inspection is completed, the image data is uploaded to the cloud server for centralized processing. However, this model is limited by network bandwidth and cloud computing costs, making it difficult to achieve large-scale real-time detection of road images, and it cannot be promoted on a large scale. In addition, field collection and internal identification processing are completed separately, and the inspection personnel cannot grasp the road conditions in real time, which is not conducive to the inspection management personnel to make timely judgments on the inspection results.
[0004] It can be seen that the above existing road surface detection methods still have inconveniences and defects in use, and are in urgent need of further improvement. How to create a new road surface real-time detection method has become a goal that the industry urgently needs to improve. Summary of the invention
[0005] In view of this, an embodiment of the present disclosure provides a real-time automatic detection method for pavement defects based on edge computing technology, which at least partially solves the problems existing in the prior art.
[0006] In a first aspect, an embodiment of the present disclosure provides a real-time automatic detection method for pavement defects based on edge computing technology, the method comprising the following steps:
[0007] Receive original road surface image data and automatic recognition request;
[0008] Decoding and preprocessing the original road surface image data to generate road surface image data;
[0009] Performing deep neural network calculation on the road surface image data to obtain a detection type of the disease and a detection frame of the location of the disease;
[0010] The non-maximum suppression algorithm is used to retain the detection frame with the highest confidence. The data of the detection frame with the highest confidence is optimized based on the connectivity principle to determine the optimal detection frame position. The response data is generated from the disease type and location identification results and returned to the road condition collection device.
[0011] According to a specific implementation of the embodiment of the present disclosure, decoding and preprocessing the original road surface image data to generate road surface image data includes:
[0012] The image size is uniformly scaled based on the following formula, the image height is scaled to 640 pixels, and the image width is scaled in the same proportion;
[0013] width resize =Int((width / height)×20)×32
[0014] Among them, widthresize indicates the width after scaling, width is the width of the original image, height is the height of the original image, and Int is the maximum integer rounded down for the calculated value;
[0015] Normalize the scaled image.
[0016] According to a specific implementation of the embodiment of the present disclosure, the performing of deep neural network calculation on the road surface image data further includes:
[0017] Build dynamic batches, set the maximum number of processing batches n, and the maximum waiting time t max , and calculate the current number of image batches to be processed m and the current waiting time t current ;
[0018] If the maximum waiting time t max If the number of batches m to be processed does not reach the specified maximum number of batches n, the waiting is stopped and the current accumulated number of image batches m is submitted to the deep neural network for inference.
[0019] According to a specific implementation of the embodiment of the present disclosure, the data optimization of the detection frame with the highest confidence based on the connectivity principle includes:
[0020] Construct a binary image, use the mask to filter the detection frames of the same crack type, and mark the filtered results in the binary image;
[0021] Connected clusters are formed by performing connectivity analysis on the markers in the binary graph;
[0022] Analyze the size and location of the connected area to determine the accurate boundary location information;
[0023] The initial small box and large box detection results are updated based on the analysis results of the connected area.
[0024] According to a specific implementation of the embodiment of the present disclosure, the detection result includes corner point position coordinates, average confidence, and crack type.
[0025] In a second aspect, an embodiment of the present disclosure provides a real-time automatic road disease detection system based on edge computing technology, the system comprising:
[0026] A data acquisition module is configured to receive original road surface image data and automatic recognition requests;
[0027] A front-end image preprocessing module is configured to decode and preprocess the original road surface image data to generate road surface image data;
[0028] A model reasoning detection module is configured to perform deep neural network calculation on the road surface image data to obtain a detection type of a defect and a detection frame of a location of the defect;
[0029] The result post-processing module is configured to retain the detection frame with the highest confidence by using the non-maximum suppression algorithm, optimize the data of the detection frame with the highest confidence based on the connectivity principle, determine the optimal detection frame position, generate response data based on the disease type and location identification results, and return it to the road condition collection device.
[0030] According to a specific implementation of the embodiment of the present disclosure, the system further includes:
[0031] The dynamic batch module is configured to build dynamic batches, set the maximum number of processing batches n, and the maximum waiting time t max , and calculate the current number of image batches to be processed m and the current waiting time t current ;
[0032] If the maximum waiting time t max If the number of batches m to be processed does not reach the specified maximum number of batches n, the waiting is stopped and the current accumulated number of image batches m is submitted to the deep neural network for inference.
[0033] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0034] at least one processor; and,
[0035] a memory communicatively connected to the at least one processor; wherein,
[0036] The memory stores instructions that can be executed by the at least one processor. When the instructions are executed by the at least one processor, the at least one processor implements the real-time automatic pavement defect detection method based on edge computing technology as described in any one of the first aspect or any one of the implementations of the first aspect.
[0037] In a fourth aspect, an embodiment of the present disclosure further provides a non-transitory computer-readable storage medium, which stores computer instructions, and when the computer instructions are executed by at least one processor, the at least one processor executes the real-time automatic pavement defect detection method based on edge computing technology in the aforementioned first aspect or any implementation of the first aspect.
[0038] In the fifth aspect, the embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the real-time pavement disease automatic detection method based on edge computing technology in the aforementioned first aspect or any implementation of the first aspect.
[0039] The real-time automatic detection method of pavement defects based on edge computing technology in the embodiments of the present disclosure has at least the following advantages:
[0040] 1. The present invention uses edge computing equipment to achieve real-time recognition and processing of pavement disease image data;
[0041] 2. Based on the characteristics of edge computing and road data collection, the present invention develops a real-time monitoring and automatic push program for collected data, ensuring the real-time nature of collection, data transmission and data processing;
[0042] 3. The present invention comprehensively considers factors such as mixed precision and dynamic batches, fully taps the performance of edge devices, and improves the efficiency of edge data processing.
[0043] 4. The present invention is easy to configure and adjust and can be used for different detection tasks and requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The above is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0045] Figure 1 A schematic diagram of a real-time automatic road surface disease detection device based on edge computing technology provided in an embodiment of the present disclosure;
[0046] Figure 2A schematic diagram of a real-time road surface disease detection workflow based on edge computing technology provided in an embodiment of the present disclosure;
[0047] Figure 3 A schematic diagram of a real-time automatic road surface disease detection device based on edge computing technology provided in an embodiment of the present disclosure;
[0048] Figure 4 A schematic flow chart of a method for automatic detection of road defects in real time based on edge computing technology provided in an embodiment of the present disclosure;
[0049] Figure 5 A flowchart of a method for automatic detection of road surface defects in real time based on edge computing technology provided in an embodiment of the present disclosure;
[0050] Figure 6 A schematic diagram of the structure of a real-time automatic road surface disease detection system based on edge computing technology provided in an embodiment of the present disclosure; and
[0051] Figure 7 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0052] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0053] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0054] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement a device and / or practice a method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0055] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0056] The present invention proposes a real-time automatic detection method, system and equipment for pavement defects based on edge computing technology. The equipment integration and deployment are as follows: Figure 1 As shown, it includes: a rectifier 101, a power cord 102, a switching power supply 103, an edge computing board 104, a network cable 105 and an industrial control all-in-one machine 106.
[0057] Among them, the edge computing service deployment flow chart is as follows Figure 2 The specific steps are as follows:
[0058] Step 201 deploys and optimizes the deep neural network based on the edge computing board.
[0059] 201-1 uses edge computing boards to accelerate computing and optimize basic environment deployment.
[0060] 201-2 Deployment of automatic road surface defect identification service based on edge computing board.
[0061] Step 202 comprehensively considers data latency and throughput to build a model library required for deep neural network inference service. The model library includes: front-end image preprocessing, model inference detection, and result post-processing, which are used for disease detection and analysis of collected data. The specific steps are as follows:
[0062] 202-1 Data pre-processing: Build and deploy an image data pre-processing model, obtain the input image data from the inference request of the acquisition end, decode and pre-process the image data, including image resizing, image channel conversion and normalization operations, and generate an inference request.
[0063] 202-2 Deep neural network inference model: Build and deploy image data inference models, and convert deep learning training models (.onnx files) into inference models (.engine files) that are suitable for edge computing devices through model pruning and numerical precision optimization to achieve inference deployment and acceleration. Based on the inference model, the inference request generated by the pre-processing is received, and the target recognition detection box and classification results are generated through the calculation of the trained pavement disease deep neural network; at the same time, the throughput of the inference process is improved through dynamic batch processing technology.
[0064] 202-3 Data post-processing: Build and deploy an image data post-processing model, obtain the target recognition detection box and classification results of the inference model, and retain the detection box with the highest confidence through the non-maximum suppression algorithm.
[0065] 202-4 assembles the data pre-processing model, deep neural network inference model, and data post-processing model into a pipeline to form an automatic identification service API with a "request-response" mechanism.
[0066] 202-5 Set the automatic identification service to start automatically at boot, automatically load the model, and keep running in the background.
[0067] Step 203 integrates the edge computing device with the road condition collection device through software and hardware, so as to realize the coordinated work between the road condition collection terminal and the disease identification processing.
[0068] 203-1 Hardware integration deployment: Integrate edge computing devices with road condition collection devices, including equipment installation, power supply, network connection, etc.
[0069] 203-2 Data transmission deployment: Connect the road condition collection device and the edge computing device through an RJ45 network cable and establish an Ethernet network link; deploy an automatic identification request program on the road condition collection device, which realizes two-way data transmission with the edge computing device through the Google Remote Procedure Call (hereinafter referred to as gRPC protocol) protocol.
[0070] In an embodiment of the present invention, the edge computing board should support the deployment and use of the Nvidia TensorRT reasoning framework.
[0071] In an embodiment of the present invention, the edge computing board is Nvidia Jetson AGX Orin.
[0072] The workflow diagram of real-time road surface detection based on edge computing is as follows: Figure 3 As shown, the following steps are included:
[0073] Step 301: Original data collection: road condition field data collection is performed based on the road condition collection equipment, and the collected original road surface image data is saved.
[0074] Step 302 real-time monitoring and sending automatic identification requests: the road condition collection device monitors the data collection status and sends an automatic identification request to the edge computing device through the gRPC protocol.
[0075] In the embodiment of the present invention, step 302 also includes an automatic push program, which has the characteristics of being able to resume transmission from breakpoints and multi-thread transmission.
[0076] Step 303: Data pre-processing: After the edge computing device receives the automatic recognition request data, it decodes and pre-processes the image data through the data pre-processing model, including image resizing, channel conversion, and normalization operations, and generates a deep neural network inference request.
[0077] Step 304: Deep learning inference calculation: deep neural network calculation is performed on the received road image data to obtain target detection and image classification result data; dynamic batches are introduced into the processing process to maximize the inference speed.
[0078] Step 305: Data post-processing: Post-process the target detection and image classification results, use the non-maximum suppression algorithm to retain the detection frame with the highest confidence, generate response data from the recognition results such as the disease type and location, and return it to the road condition collection device.
[0079] More specifically, Figure 4 A schematic diagram of the process of a real-time automatic pavement defect detection method based on edge computing technology provided in an embodiment of the present disclosure.
[0080] Figure 5 For Figure 1 Corresponding flow chart of the real-time automatic pavement defect detection method based on edge computing technology.
[0081] like Figure 4 As shown, at step S410, original road surface image data and an automatic recognition request are received.
[0082] More specifically, the acquired request is parsed to obtain the request ID and road surface image data.
[0083] More specifically, the process proceeds to step S420.
[0084] In step S420, the original road surface image data is decoded and preprocessed to generate road surface image data.
[0085] In the embodiment of the present invention, the decoding and preprocessing of the original road surface image data to generate road surface image data includes:
[0086] The image size is uniformly scaled based on the following formula, the image height is scaled to 640 pixels, and the image width is scaled in the same proportion;
[0087] width resize =Int((width / height)×20)×32 (1)
[0088] Among them, width resize Indicates the width after scaling, width is the width of the original image, height is the height of the original image, and Int is the largest integer rounded down for the calculated value; normalize the scaled image.
[0089] Next, go to step S430.
[0090] In step S430, a deep neural network calculation is performed on the road surface image data to obtain a detection type of the defect and a detection frame of the location of the defect.
[0091] More specifically, an inference response is constructed, and the processed image data is input to the "Data Inference Model" node.
[0092] In an embodiment of the present invention, performing deep neural network calculation on the road surface image data further includes:
[0093] Build dynamic batches, set the maximum number of processing batches n, and the maximum waiting time t max , and calculate the current number of image batches to be processed m and the current waiting time t current ;
[0094] If the maximum waiting time t max If the number of batches m to be processed does not reach the specified maximum number of batches n, the waiting is stopped and the current accumulated number of image batches m is submitted to the deep neural network for inference.
[0095] More specifically, a deep neural network is called to identify and detect the image data input in step S420, and the detection type of the disease and the detection frame of the disease location are returned. The output of the detection result comprehensively considers both large and small frames, and a dynamic batch is introduced into the detection process to improve the detection efficiency.
[0096] Next go to step S440.
[0097] In step S440, the non-maximum suppression algorithm is used to retain the detection frame with the highest confidence, and the data of the detection frame with the highest confidence is optimized based on the connectivity principle to determine the optimal detection frame position, and the disease type and location identification results are generated into response data and returned to the road condition collection device.
[0098] More specifically, the detection result of the inference model in step S430 is obtained, and the results of multiple target detection boxes are evaluated using a non-maximum suppression algorithm, and the detection box with the highest confidence is retained.
[0099] In the embodiment of the present invention, the data optimization of the detection frame with the highest confidence based on the connectivity principle includes:
[0100] Construct a binary image, use the mask to filter the detection frames of the same crack type, and mark the filtered results in the binary image;
[0101] Connected clusters are formed by performing connectivity analysis on the markers in the binary graph;
[0102] Analyze the size and location of the connected area to determine the accurate boundary location information;
[0103] The initial small box and large box detection results are updated based on the analysis results of the connected area.
[0104] In the embodiment of the present invention, the detection result includes the corner point position coordinates, average confidence, and crack type.
[0105] More specifically, the data of the detection frames are analyzed to construct a binary map, and the detection frames of the same crack type are screened using a mask, and the screening results are marked in the binary map. Connected clusters are formed by performing connectivity analysis on the marks in the binary map.
[0106] According to the connectivity principle, the types of diseases represented in a single connected area are the same. At the same time, the size and position of the connected area are analyzed to determine the accurate boundary position information. Based on the analysis results of the connected area, the initial small frame and large frame detection results are updated, including the corner point position coordinates, average confidence, crack type, etc.
[0107] The detection frame results are post-processed to form response data including request ID, disease type, disease location, confidence level and other information, and the response data is returned to the road condition collection device.
[0108] The real-time automatic detection method of pavement defects based on edge computing technology proposed in the present invention realizes the real-time processing of pavement defect collection data and dynamic monitoring of the process based on the characteristics of edge computing and pavement data collection; based on the characteristics of edge computing and pavement data collection, a real-time monitoring and automatic push program for collected data is developed to ensure the timeliness of data transmission between the collection end and the processing end; based on the characteristics of edge computing and pavement data collection, the influencing factors such as mixed precision and dynamic batches are comprehensively considered to fully explore the performance of edge devices and improve the efficiency of edge data processing. In addition, the present invention is easy to configure and adjust, and can be used for different detection tasks and needs.
[0109] Figure 6 The real-time pavement disease automatic detection system 600 based on edge computing technology provided by the present invention is shown, including a data acquisition module 610, a front-end image preprocessing module 620, a model reasoning detection module 630 and a result post-processing module 640.
[0110] The data acquisition module 610 is used to receive original road surface image data and automatic recognition requests;
[0111] The front-end image preprocessing module 620 is used to decode and preprocess the original road surface image data to generate road surface image data;
[0112] The model reasoning detection module 630 is used to perform deep neural network calculation on the road surface image data to obtain the detection type of the disease and the detection frame of the location of the disease;
[0113] The result post-processing module 640 is used to retain the detection frame with the highest confidence using the non-maximum suppression algorithm, optimize the data of the detection frame with the highest confidence based on the connectivity principle, determine the optimal detection frame position, generate response data based on the disease type and location identification results, and return it to the road condition collection device.
[0114] In an embodiment of the present invention, the system further comprises: a dynamic batch module configured to construct dynamic batches, set the maximum number of processed batches n, the maximum waiting time t max , and calculate the current number of image batches to be processed m and the current waiting time t current ;
[0115] If the maximum waiting time t max If the number of batches m to be processed does not reach the specified maximum number of batches n, the waiting is stopped and the current accumulated number of image batches m is submitted to the deep neural network for inference.
[0116] See also Figure 7 The present disclosure also provides an electronic device 70, which includes:
[0117] at least one processor; and,
[0118] a memory communicatively connected to the at least one processor; wherein,
[0119] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the real-time pavement disease automatic detection method based on edge computing technology in the aforementioned method embodiment.
[0120] The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the real-time pavement disease automatic detection method based on edge computing technology in the aforementioned method embodiment.
[0121] The embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the real-time pavement disease automatic detection method based on edge computing technology in the aforementioned method embodiment.
[0122] Reference below Figure 7 , which shows a schematic structural diagram of an electronic device 70 suitable for implementing an embodiment of the present disclosure.
[0123] The electronic devices in the disclosed embodiments may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0124] like Figure 7 As shown, the electronic device 70 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 70 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0125] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication device 709 may allow the electronic device 70 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 70 with various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
[0126] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0127] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0128] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0129] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains at least two Internet Protocol addresses; sends a node evaluation request including the at least two Internet Protocol addresses to a node evaluation device, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein the obtained Internet Protocol address indicates an edge node in a content distribution network.
[0130] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; selects an Internet Protocol address from the at least two Internet Protocol addresses; and returns the selected Internet Protocol address; wherein the received Internet Protocol address indicates an edge node in a content distribution network.
[0131] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0132] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0133] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0134] It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
[0135] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A real-time automatic detection method for pavement defects based on edge computing technology, characterized in that: The method comprises the following steps: Receive original road surface image data and automatic recognition request; Decoding and preprocessing the original road surface image data to generate road surface image data; Performing deep neural network calculation on the road surface image data to obtain a detection type of the disease and a detection frame of the location of the disease; The performing deep neural network calculation on the road surface image data further includes: Build dynamic batches, set the maximum number of processing batches n, and the maximum waiting time t max , and calculate the current number of image batches to be processed m and the current waiting time t current ; If the maximum waiting time t max If the number of batches to be processed m does not reach the specified maximum number of batches n, then no more waiting is done and the current accumulated number of image batches m is submitted to the deep neural network for inference; The detection frame with the highest confidence is retained by using the non-maximum suppression algorithm, and data optimization is performed on the detection frame with the highest confidence based on the connectivity principle to determine the optimal detection frame position, and the response data is generated from the disease type and position recognition results and returned to the road condition collection device; The data optimization of the detection frame with the highest confidence based on the connectivity principle includes: Construct a binary image, use the mask to filter the detection frames of the same crack type, and mark the filtered results in the binary image; Connected clusters are formed by performing connectivity analysis on the markers in the binary graph; Analyze the size and location of the connected area to determine the accurate boundary location information; Update the initial small frame and large frame detection results based on the analysis results of the connected area; The detection results include corner point position coordinates, average confidence, and crack type.
2. The real-time automatic detection method for pavement defects based on edge computing technology according to claim 1 is characterized in that: The decoding and preprocessing of the original road surface image data to generate road surface image data includes: The image size is uniformly scaled based on the following formula, the image height is scaled to 640 pixels, and the image width is scaled in the same proportion; width resize =Int((width / height)×20)×32 Among them, width resize Indicates the width after scaling, width is the width of the original image, height is the height of the original image, and Int is the maximum integer rounded down for the calculated value; Normalize the scaled image.
3. A real-time automatic road surface disease detection system based on edge computing technology, characterized in that: The system comprises: A data acquisition module is configured to receive original road surface image data and automatic recognition requests; A front-end image preprocessing module is configured to decode and preprocess the original road surface image data to generate road surface image data; A model reasoning detection module is configured to perform deep neural network calculation on the road surface image data to obtain a detection type of a defect and a detection frame of a location of the defect; The result post-processing module is configured to retain the detection frame with the highest confidence by using a non-maximum suppression algorithm, optimize the data of the detection frame with the highest confidence based on the connectivity principle, determine the optimal detection frame position, generate response data from the disease type and position recognition results, and return it to the road condition collection device; The data optimization of the detection frame with the highest confidence based on the connectivity principle includes: Construct a binary image, use the mask to filter the detection frames of the same crack type, and mark the filtered results in the binary image; Connected clusters are formed by performing connectivity analysis on the markers in the binary graph; Analyze the size and location of the connected area to determine the accurate boundary location information; Update the initial small frame and large frame detection results based on the analysis results of the connected area; The detection results include corner point position coordinates, average confidence, and crack type; The dynamic batch module is configured to build dynamic batches, set the maximum number of processing batches n, and the maximum waiting time t max , and calculate the current number of image batches to be processed m and the current waiting time t current ; If the maximum waiting time t max If the number of batches m to be processed does not reach the specified maximum number of batches n, the waiting is stopped and the current accumulated number of image batches m is submitted to the deep neural network for inference.
4. An electronic device, characterized in that: The electronic device includes: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor. When the instructions are executed by the at least one processor, the at least one processor executes the real-time pavement disease automatic detection method based on edge computing technology as described in any one of claims 1 to 2.
5. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, which, when executed by at least one processor, cause the at least one processor to execute the real-time pavement disease automatic detection method based on edge computing technology as described in any one of claims 1 to 2.
6. A computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes the real-time automatic pavement defect detection method based on edge computing technology as described in any one of claims 1 to 2.
Citation Information
Patent Citations
System and method for automatically identifying cement pavement diseases based on digital images
CN111784657A
Pavement disease detection method and device, terminal equipment and storage medium
CN113255605A
Pavement disease recognition method and system, electronic equipment and storage medium
CN113537037A
Picture analysis model adjustment method and device and computer readable storage medium
CN114359669A
Pavement disease detection method
CN115661765A
