A highway intelligent image processing method based on drone
Patent Information
- Application Number
- CN202410451353.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-04-15
AI Technical Summary
Existing technology has problems with incomplete coverage and low detection efficiency in detecting safety hazards at the edge of highways. It is difficult for fixed cameras to fully cover edge areas, and vehicle-mounted systems pay more attention to the environment around the vehicle rather than long-term static hazards.
A drone equipped with a high-definition camera is used to collect multiple overhead views of the edge of the highway through the automatic flight control system. The first detection module identifies the position of the guardrail and the second detection module identifies the position of the vibration marking to determine the road edge detection area, and uses the third detection module to identify the position of the guardrail. The three detection modules perform position encoding and neural network target recognition to achieve fast and accurate safety assessment.
It achieves comprehensive, fast and accurate detection of the highway edge, improves driving safety, and solves the problems of low detection efficiency and low accuracy of traditional methods.
Smart Images

Figure CN118230201B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to an intelligent image processing method for a highway based on an unmanned aerial vehicle, which is used to detect and evaluate potential safety hazards at the edge of a highway so as to perform timely maintenance and repair. Background Art
[0002] With the rapid development of the automobile industry and transportation infrastructure, the highway network is becoming increasingly dense, and the management and maintenance of highways have become particularly important. Traditionally, highway inspections have mainly relied on manual work, which is not only time-consuming and labor-intensive, but also inefficient and inaccurate. For problems such as abandoned vehicle parts, animal carcasses, and worn vibration signs on the edge of the highway, these hidden dangers may pose a huge threat to driving safety if they are not detected in time.
[0003] With the advancement of computer vision and machine learning technologies, image processing technology has been widely used in the field of traffic monitoring. Existing technologies include using fixed cameras to monitor highways in real time and using vehicle-mounted systems to detect the surrounding environment of vehicles. However, these methods are still limited in detecting safety hazards at the edge of highways. Fixed cameras are difficult to fully cover the edge of highways, and vehicle-mounted systems focus more on the immediate driving environment of vehicles. There is a lack of effective means to detect long-term and static hazards at the edge of highways.
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention proposes an intelligent image processing method for highways based on drones. The method uses drones equipped with high-definition cameras to cover the edge areas of highways through an automatic flight control system to collect image data. Then, advanced image processing algorithms are used to analyze the images in combination with machine learning and deep learning technologies to provide fast and accurate edge safety assessments, timely guide highway maintenance work, and thus improve highway driving safety. Summary of the invention
[0005] In view of this, the present invention provides a highway intelligent image processing method based on a drone, and the method specifically comprises the following steps:
[0006] S1: Use drones to collect multiple top-down views along the highway;
[0007] S2: using a first detection module to identify the guardrail position information in each top view;
[0008] S3: using a second detection module to identify the position information of the vibrating markings in each top view, wherein the vibrating markings are markings with elliptical raised marks on both sides of the highway;
[0009] S4: determining the road edge detection area information in the top view according to the guardrail position information and the vibration marking information;
[0010] S5: inputting the top view with the road edge detection area information into a third detection module with position coding to detect dangerous targets and position information;
[0011] S6: Count the results of the multiple top view detections to determine whether there is a safety problem at the edge of the road.
[0012] The present invention also provides a highway intelligent image processing system based on a drone, the system comprising:
[0013] Image acquisition module: The image acquisition module uses a drone to collect multiple bird's-eye views along the highway;
[0014] First detection module: The first detection module identifies the guardrail position information in the top view;
[0015] Second detection module: The second detection module identifies the position information of the vibrating marking in the top view, wherein the vibrating marking is a marking with elliptical raised marks on both sides of the highway;
[0016] Edge detection area determination module: The edge detection area determination module determines the road edge detection area information in the top view according to the guardrail position information and the vibration marking information;
[0017] The third detection module: inputs the top view with the road edge detection area information into the third detection module with the position code to detect the dangerous target and the position information;
[0018] Safety assessment module: The safety assessment module collects statistics on the results of multiple top-view inspections to determine whether there are safety issues at the edge of the road.
[0019] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned drone-based highway intelligent image processing method when executing the computer program.
[0020] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned drone-based highway intelligent image processing method is implemented.
[0021] Compared with the prior art, the present invention discloses an intelligent image processing method for highways based on drones. The method first detects the road edge area of the highway, uses traditional recognition methods to quickly recognize guardrails and road edge signs, and obtains the road edge area based on this. When identifying dangerous targets on the road edge, the present invention uses the determined road edge area to perform position encoding, and then guides the model to focus on the road edge area. Using the entire image for dangerous object detection solves the problem of non-fixed road edge position and non-uniform size in each shot image. At the same time, a method combining traditional area detection and neural network target recognition is used to ensure recognition speed and improve recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 It is a network structure diagram of the third detection module in this application;
[0024] Figure 2 It is the CBS layer in the third detection module in this application. DETAILED DESCRIPTION
[0025] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0026] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, 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 application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
[0027] 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 can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present application, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number and aspect described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0028] 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 examples can be practiced without these specific details.
[0029] The technical solutions provided by various embodiments of the present application are described below in conjunction with the accompanying drawings.
[0030] This specification embodiment provides a behavior prediction method based on a sociological knowledge graph, which may include the following steps:
[0031] S1: Use drones to collect multiple top-down views along the highway;
[0032] The image acquisition of the highway needs to cope with the specific shooting environment of the highway, that is, it requires a collection device with high drag coefficient, long endurance, long flight distance and high enough resolution. Therefore, the present invention uses DJI Mavic 3Pro device for image acquisition during the actual shooting process.
[0033] Before the actual collection, first obtain the flight authority and highway shooting permission from the traffic management department or civil aviation management agency. At the same time, specify a detailed flight plan, including flight time, route, shooting angle and altitude. The flight route should be determined by checking whether there are obstacles in the flight area in advance, ensuring that the flight path is away from potential risks such as power lines and communication towers, and determining the safe take-off and landing area; the shooting angle and height should be sufficient to make the highway in the collected image located in the center area of the image, and the image should include all areas within the guardrails on both sides of the highway. Design an emergency plan to prevent the drone from losing control or other sudden situations. Before taking off, you can conduct a simulated flight to check the responsiveness and maneuverability of the drone, adjust the camera to the predetermined bird's-eye view angle, and ensure that the shooting range meets the requirements.
[0034] When formally collecting images, start the drone and let it rise to a predetermined height. After it hovers stably, it starts to move along the cloud top flight path, and controls the flight speed of the drone to ensure image quality and avoid blur. During the flight, the shooting effect is monitored in real time through the remote control screen. During the shooting process, ensure that the data is stored in the drone's internal storage device in real time. After the flight, immediately back up the data to the external storage device to prevent data loss.
[0035] The present invention uses drones to shoot highways. Compared with traditional helicopter shooting, drones have low operating costs and are easy to deploy on a large scale, while minimizing traffic interference. Compared with setting up checkpoints or closing lanes on the road, this method has the least impact on drivers and traffic.
[0036] S2: using the first detection module to identify the guardrail position information in each top view, specifically including:
[0037] S21: performing image preprocessing on the acquired top view, wherein the image preprocessing includes image grayscale conversion, edge detection using a Canny operator, smoothing using a Gaussian filter, and edge thinning to obtain an edge image;
[0038] S22: performing region selection on the edge map, wherein the region selection is the regions on both sides of the image beyond a preset distance on both sides of the central axis;
[0039] S23: Using the LSD algorithm to perform line segment detection on the area selection, connecting the outermost multiple line segments detected to obtain a complete guardrail, and recording the position information of the complete guardrail and the position information of the connected line segments.
[0040] The present invention adopts the traditional operator detection method to detect the guardrail position. The determination of the guardrail position is for the subsequent determination of the potential dangerous object detection area. The determination of the dangerous object detection area does not need to be particularly accurate. In the actual dangerous object detection process, this area can guide the dangerous object detection model to pay more attention to the position of the dangerous object detection area from the guardrail position to the top. Therefore, in the guardrail position detection process, the present invention pays more attention to the detection speed and adopts the traditional digital image processing method.
[0041] S3: using the second detection module to identify the position information of the vibrating markings in each top view, wherein the vibrating markings are markings with elliptical raised marks on both sides of the highway, specifically including:
[0042] S31: Convert the acquired top view to the HSV color space, set the yellow threshold range to 10≤H≤25, use the yellow threshold to identify the yellow area in the image, calculate the average distance from the pixels in the identified yellow area to the two guardrail positions, and filter out the yellow areas whose average distance is greater than the preset threshold.
[0043] S32: Perform Hough ellipse detection on the yellow area obtained after screening in S31, and record the number of ellipses obtained by the detection, which is recorded as the number of vibration identifications;
[0044] S33: performing edge straight line fitting on the yellow area obtained after screening in S31, taking two straight lines far from the image boundary as the vibration marking line boundary, and recording the vibration marking line position information.
[0045] The present invention uses a color threshold segmentation method to identify highway road signs. The highway road signs are used to determine the potential dangerous object detection area in the future. Since the colors of the signs on both sides of the highway are relatively uniform and have obvious differences from the ground colors near them, the color segmentation method can be used to quickly and accurately identify the signs on both sides of the highway. On the basis of identifying road signs, the present application uses Hough fast detection of vibration sign detection to determine the wear of the signs on both sides of the highway according to the number of detected vibration signs, and then judges the safety issues of the road edges on both sides of the highway in combination with the subsequent dangerous object detection results.
[0046] S4: determining the road edge detection area information in the top view according to the guardrail position information and the vibration marking information;
[0047] The road edge detection area information includes an overall road edge detection area and a local road edge detection area. The overall road edge detection area is an area enclosed by the boundary of the vibrating marking in S33 from the complete guardrail obtained in S23 to the nearest distance; the local road edge detection area is a rectangular area constructed based on partial position information of the connecting line segment.
[0048] S5: inputting the top view with the road edge detection area information into a third detection module with an attention module to detect dangerous targets and position information;
[0049] The third detection module includes a position encoding layer, a feature extraction layer, a bidirectional pyramid network and a prediction head network;
[0050] The input of the position encoding layer is the top view with the road edge detection area information in step 3, and the position feature map with attention coding is output through the embedding layer;
[0051] The input of the feature extraction network is the overhead view of the highway collected in step 1, the backbone network of the feature extraction network is ResNet50, the output feature map of the first residual module of ResNet50 is fused with the position coding feature map obtained by the position coding layer, and input into the subsequent residual network structure;
[0052] The input of the bidirectional pyramid network is the output feature map of the second, third and fourth residual modules. Bidirectional feature fusion is performed from top to bottom and from bottom to top, and cross connection is performed at each level. The three outputs of the bidirectional pyramid network are respectively connected to the three prediction head networks.
[0053] The dangerous targets include vehicle parts, animal carcasses, woven bags, and weeds in the road edge detection area;
[0054] The pseudo code using position encoding and superimposed feature maps is as follows:
[0055]
[0056]
[0057]
[0058] When the present invention detects dangerous objects on the edge of the highway, due to the difference in angles of each top view during the shooting process and the difference in the position area of the highway body in the image, the image position of the highway edge area in each top view is not uniform. Therefore, it is impossible to use local images to detect dangerous objects. In order to balance the problem of detection speed and detection accuracy, the present invention uses the edge of the highway for encoding to guide more attention to the edge area of the road during the feature extraction process, and determines the key monitoring area through the guardrail position and road sign position obtained in the previous step. This not only solves the problem of uniform input image size but also improves accuracy. At the same time, the present invention uses the overall recognition method of the top view to provide scalability for the subsequent overall recognition of dangerous objects on the highway.
[0059] S6: Count the results of multiple top view inspections to determine whether there are safety issues at the road edge, including:
[0060] S61: Count the cumulative number of times N1-N4 of appearance of dangerous target vehicle parts, animal carcasses, woven bags, and weeds in multiple top-view images, and the cumulative number N5 of vibration marks in multiple top-view images;
[0061] S62: presetting each hazard threshold data T1-T4, standard vibration identification number T5, and each hazard weight W1-W4, vibration identification weight W5;
[0062] S63: Calculate the dangerous target coefficient S1 = W1*(N1-T1)+W2*(N2-T2)+W3*(N3-T3)+W4*(N4-T4), the wear coefficient S2 = W5*(1-N5 / T5), when the cumulative number of dangerous targets is less than the threshold data, the dangerous score is 0, when the cumulative number of vibration marks N5 is greater than the standard vibration mark number T5, the wear coefficient is 0;
[0063] S64: Calculate the risk factor S=S1+S2, and make maintenance arrangements based on the risk factor.
[0064] The present invention integrates the modeling of dangerous targets and road signs when evaluating the safety of road edges, and defines corresponding danger thresholds and danger weights according to the danger levels of different targets. At the same time, the detection results of multiple images are combined for cumulative judgment. In actual judgment, the cumulative statistical results of multiple overhead images taken every 100 meters and every kilometer can be used for judgment, and the danger of the road edge of the current road section to vehicle driving can be determined according to the risk coefficient, and then a maintenance plan is arranged.
[0065] The present invention also provides a highway intelligent image processing system based on a drone, the system comprising:
[0066] Image acquisition module: The image acquisition module uses a drone to collect multiple bird's-eye views along the highway;
[0067] First detection module: The first detection module identifies the guardrail position information in the top view;
[0068] Second detection module: The second detection module identifies the position information of the vibrating marking in the top view, wherein the vibrating marking is a marking with elliptical raised marks on both sides of the highway;
[0069] Edge detection area determination module: The edge detection area determination module determines the road edge detection area information in the top view according to the guardrail position information and the vibration marking information;
[0070] The third detection module: inputs the top view with the road edge detection area information into the third detection module with the position code to detect the dangerous target and the position information;
[0071] Safety assessment module: The safety assessment module collects statistics on the results obtained from multiple top-view inspections to determine whether there are safety issues at the edge of the road.
[0072] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned drone-based highway intelligent image processing method when executing the computer program.
[0073] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned drone-based highway intelligent image processing method is implemented.
[0074] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0075] The above is only a specific implementation of the present application, but the protection scope of the present application 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 application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A highway intelligent image processing method based on drones, characterized in that: The processing method comprises the following steps: S1: Use drones to collect multiple top-down views along the highway; S2: using a first detection module to identify the guardrail position information in each top view; S3: using a second detection module to identify the position information of the vibrating markings in each top view, wherein the vibrating markings are markings with elliptical raised marks on both sides of the highway; S4: Determine the road edge detection area information in the top view according to the guardrail position information and the vibration marking position information; S5: Inputting the top view with the road edge detection area information into a third detection module with position coding to detect dangerous targets and position information; the third detection module includes a position coding layer, a feature extraction network, a bidirectional pyramid network and a prediction head network; The input of the position encoding layer is the top view with road edge detection area information in S3, and the embedding layer outputs the position feature map with attention coding; The input of the feature extraction network is the overhead view of the highway collected in S1, the backbone network of the feature extraction network is ResNet50, the output feature map of the first residual module of ResNet50 is fused with the position coding feature map obtained by the position coding layer, and input into the subsequent residual network structure; The input of the bidirectional pyramid network is the output feature map of the second, third and fourth residual modules, and bidirectional feature fusion is performed from top to bottom and from bottom to top, and a cross connection is performed at each level. The three outputs of the bidirectional pyramid network are respectively connected to the three prediction head networks; S6: Count the results of the multiple top view detections to determine whether there is a safety problem at the edge of the road.
2. The method for intelligent highway image processing based on drone according to claim 1 is characterized in that: The step of using the first detection module to identify the guardrail position information in each top view specifically includes: S21: performing image preprocessing on the acquired top view, wherein the image preprocessing includes image grayscale conversion, edge detection using a Canny operator, and smoothing and edge refinement using a Gaussian filter to obtain an edge image; S22: performing region selection on the edge image, wherein the region selection obtains regions on both sides of the image beyond a preset distance on both sides of the central axis; S23: Using the LSD algorithm to perform line segment detection on the selected area, connecting the outermost line segments detected to obtain a complete guardrail, and recording the position information of the complete guardrail and the position information of the connected line segments.
3. The method for intelligent highway image processing based on drone according to claim 2 is characterized in that: The step of using the second detection module to identify the vibration marking position information in each top view specifically includes: S31: Convert the acquired top view to the HSV color space, set the yellow threshold range to 10≤H≤25, use the yellow threshold to identify the yellow area in the image, calculate the average distance from the pixels in the identified yellow area to the two guardrail positions, and filter out the yellow areas whose average distance is greater than the preset threshold. S32: Perform Hough ellipse detection on the yellow area obtained after screening in S31, and record the number of ellipses obtained by the detection, which is recorded as the number of vibration identifications; S33: performing edge straight line fitting on the yellow area obtained after screening in S31, taking two straight lines far from the image boundary as the vibration marking line boundary, and recording the vibration marking line position information.
4. The method for intelligent highway image processing based on drone according to claim 3 is characterized in that: Determine the road edge detection area information in the top view according to the guardrail position information and the vibration marking position information; The road edge detection area information includes an overall road edge detection area and a local road edge detection area. The overall road edge detection area is an area enclosed by the boundary of the vibrating marking in S33 from the complete guardrail obtained in S23 to the nearest distance; the local road edge detection area is a rectangular area constructed based on partial position information of the connecting line segment.
5. The method for intelligent highway image processing based on drone according to claim 1 is characterized in that: The dangerous targets include vehicle parts, animal carcasses, woven bags, and weeds in the road edge detection area.
6. The method for intelligent highway image processing based on drone according to claim 1 is characterized in that: The results of multiple top-view inspections are statistically analyzed to determine whether there are safety issues at the edge of the road, including: S61: Counting the cumulative number of times N1-N4 of each of the dangerous target vehicle parts, animal carcasses, woven bags, and weeds appearing in the multiple top views and the cumulative number N5 of vibration marks in the multiple top views; S62: presetting each hazard threshold data T1-T4, standard vibration identification number T5, and each hazard weight W1-W4, vibration identification weight W5; S63: Calculate the dangerous target coefficient S1=W1*(N1-T1)+ W2*(N2-T2)+W3*(N3-T3)+W4*(N4-T4), the wear coefficient S2=W5*(1-N5 / T5), when the cumulative number of dangerous targets is less than the dangerous threshold data, the dangerous score is 0, when the cumulative number of vibration marks N5 is greater than the standard vibration mark number T5, the wear coefficient is 0; S64: Calculate the risk factor S=S1+S2 and make maintenance arrangements based on the risk factor.
7. A highway intelligent image processing system based on drones, characterized in that: The system includes: Image acquisition module: The image acquisition module uses a drone to collect multiple bird's-eye views along the highway; First detection module: The first detection module identifies the guardrail position information in the top view; Second detection module: The second detection module identifies the position information of the vibrating marking in the top view, wherein the vibrating marking is a marking with elliptical raised marks on both sides of the highway; Edge detection area determination module: The edge detection area determination module determines the road edge detection area information in the top view according to the guardrail position information and the vibration marking position information; The third detection module: inputs the top view with the road edge detection area information into the third detection module with position coding to detect dangerous targets and position information; the third detection module includes a position coding layer, a feature extraction network, a bidirectional pyramid network and a prediction head network; The input of the position encoding layer is the top view with road edge detection area information in S3, and the embedding layer outputs the position feature map with attention coding; The input of the feature extraction network is the overhead view of the highway collected in S1, the backbone network of the feature extraction network is ResNet50, the output feature map of the first residual module of ResNet50 is fused with the position coding feature map obtained by the position coding layer, and input into the subsequent residual network structure; The input of the bidirectional pyramid network is the output feature map of the second, third and fourth residual modules, and bidirectional feature fusion is performed from top to bottom and from bottom to top, and a cross connection is performed at each level. The three outputs of the bidirectional pyramid network are respectively connected to the three prediction head networks; Safety assessment module: The safety assessment module collects statistics on the results of multiple top-view inspections to determine whether there are safety issues at the edge of the road.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for intelligent highway image processing based on a drone as described in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements a method for intelligent highway image processing based on a drone as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Airport foreign body detection method, device, computer device and storage medium
CN109086656A
Highway cloud inspection system and data processing method thereof
CN110021167A
