A UAV image acquisition and analysis system based on image analysis
By introducing image analysis and automatic adjustment technology into the UAV image collection system, the problems of UAV image quality evaluation and intelligent collection are solved, and efficient, automated image quality control and intelligent operation are achieved.
Patent Information
- Application Number
- CN202410821625.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-06-24
AI Technical Summary
The existing UAV image collection system lacks an effective image quality assessment mechanism, resulting in quality problems in the collected image data, which affects subsequent data analysis and processing, and it is impossible to perform targeted collection when unqualified images are collected. The degree of intelligence is low.
A UAV image acquisition and analysis system based on image analysis is designed. The data acquisition module plans the flight path. The data processing module evaluates the quality of the image data. The acquisition and evaluation module processes and adjusts the unqualified images. The UAV camera Parameters are automatically adjusted to ensure image quality.
It realizes automated quality assessment of image data collected by drones, screens out qualified image fragments, improves image quality and collection efficiency, ensures the quality of unqualified image areas, and enhances the intelligence of drones.
Smart Images

Figure CN118590639B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of unmanned aerial vehicle (UAV) imaging technology, and in particular to an unmanned aerial vehicle (UAV) imaging acquisition and analysis system based on image analysis. Background Art
[0002] With the continuous advancement of science and technology, drone technology has been widely used in many fields, including but not limited to aerial photography, monitoring, agriculture, geological exploration, etc. The image acquisition function of drones is valued for its high efficiency, flexibility and cost-effectiveness.
[0003] However, the existing UAV image acquisition system still has the following defects in actual operation:
[0004] The lack of an effective image quality assessment mechanism may result in quality issues in the collected image data, affecting subsequent data analysis and processing, and reducing the application value of the image data;
[0005] Furthermore, when the quality of the collected images is unqualified, the unqualified image data cannot be analyzed, so the drone is controlled to carry out targeted collection of the unqualified parts on the basis of retaining the qualified parts, and the degree of intelligence is low.
[0006] To this end, a UAV image acquisition and analysis system based on image analysis is introduced. Summary of the invention
[0007] In view of this, the present invention provides an unmanned aerial vehicle image acquisition and analysis system based on image analysis to solve the problems raised by the above background technology.
[0008] The purpose of the present invention can be achieved through the following technical solutions: A drone image acquisition and analysis system based on image analysis, comprising:
[0009] Data acquisition module: Plan the flight path of the drone according to the geographic information of the target area and the expected image coverage. The drone starts to perform the mission according to the planned flight path, and collects image data of the target area through the onboard camera and sends it to the data processing module.
[0010] Data processing module: Receives image data collected by the drone, analyzes and evaluates the quality of the image data, and obtains the quality evaluation index α of the image data collected in the current target area; compares the quality evaluation index α of the image data collected in the current target area with the set quality standard index. If it is greater than the set quality standard index, the image data is marked as unqualified, and the acquisition signal is generated and packaged and sent to the acquisition evaluation module;
[0011] Acquisition and evaluation module: receiving the acquisition signal and unqualified images generated by the current target area, and executing corresponding steps to process the unqualified images of the current target area, and obtaining the image to be stitched of the current target area based on the processing results; sending the drone inspection signal to the status evaluation module according to the current time point, and executing corresponding steps based on the signal fed back by the status evaluation module, so as to control the drone to acquire images of the target area to be stitched; after pre-processing the image of the area to be stitched, it is fused with the image to be stitched of the current target area as the adjusted image data of the current target area, and is sent to the data processing module again for quality evaluation;
[0012] Feedback optimization module; record relevant data from the data processing module and the acquisition and evaluation module, and establish a database;
[0013] Status Assessment Module: Receives the drone inspection signal from the acquisition and assessment module, and inspects and analyzes the drone status. Based on the analysis results, it feeds back the drone replacement signal or status pass signal to the acquisition and assessment module.
[0014] In some embodiments, the quality of the image data is analyzed and evaluated, specifically:
[0015] S1: import the image data of the current target area collected by the drone, and perform preliminary processing on the image data; after the preliminary processing, analyze and calculate the image data of the current target area to obtain the sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 of the image data;
[0016] S1-101: Convert the image data into a grayscale image and apply an edge detection algorithm to find the edge of the image; for each pixel in the image, calculate its edge strength, which is represented by the gradient amplitude; based on the gradient amplitude of the image, create a sharpness map, in which the value of each pixel represents the sharpness of the position; perform statistical analysis on the sharpness map and calculate the average gradient value as the sharpness mean of the image data;
[0017] Convert the image data to the frequency domain, select the part representing the high-frequency information in the frequency domain and calculate its energy by summing, and use the calculated result as the high-frequency energy value of the image data;
[0018] Set the weight coefficients of the sharpness mean and high-frequency energy value; construct a formula to multiply the sharpness mean and high-frequency energy value of the image data by the corresponding weight coefficients respectively, and then sum them to obtain the sharpness evaluation value R1 of the image data of the current target area;
[0019] S1-102: Perform statistics on each brightness level of the grayscale image of the image data, add the brightness values of all pixels in the image data, and then divide it by the total number of pixels to obtain the average brightness; at the same time, calculate the standard deviation of the brightness value, and based on the average brightness and standard deviation of the image data, calculate the ratio between the average brightness and the standard deviation to obtain the exposure evaluation value R2 of the image data of the current target area;
[0020] S1-103: Calculate the second-order derivative of each pixel of the image data; for each pixel of the image data, calculate the focus metric; take the average of the focus metric of each pixel of the image data to obtain the focus evaluation value R3 of the image data of the current target area.
[0021] In some embodiments, the quality assessment index α of the image data collected in the current target area is obtained, specifically:
[0022] S2: Setting standard values of sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3; marking the standard values of sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 as R1 respectively 允许 , R2 参考 and R3 最低 , where R1 允许 , R2 参考 and R3 最低 They represent the minimum allowable sharpness value, the moderate exposure reference value, and the minimum allowable focus value respectively;
[0023] Substitute the sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 of the current target area image data into the formula Perform weighted calculation to obtain the quality assessment index α of the image data; where a 1 、a 2 and a 3 are the influence weight factors of sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3; ΔR2 represents the difference between exposure evaluation value R2 and exposure moderate reference value R2 参考 The maximum allowed difference between .
[0024] In some embodiments, corresponding steps are performed to process the unqualified image of the current target area, specifically:
[0025] K1: Import the unqualified image of the current target area, and divide the unqualified image into a set number of sub-area images based on a preset division ratio; set the quality reference index of each sub-area image according to the preset division ratio; calculate the quality evaluation index of each sub-area image based on steps S1 and S2, compare the quality evaluation index of each sub-area with the set quality reference index, and select the divided sub-areas with a quality index less than the quality reference index as qualified image fragments of the current target area;
[0026] K2: According to the screening results, morphological processing is performed on the qualified image fragments of the current target area; the qualified image fragments of the current target area are used to generate a qualified area map and are represented by preset colors;
[0027] K3: The generated qualified area map is used as the image to be stitched in the current target area, and the unqualified area of the current target area is recorded as the area to be stitched in the current target area.
[0028] In some embodiments, corresponding steps are performed based on the signal fed back by the state evaluation module, specifically:
[0029] P1: If the status assessment module feeds back a pass signal, then execute step P2; if the status assessment module feeds back a signal to replace the drone, then execute step P3;
[0030] P2: Extract the sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 of the unqualified image, and compare them with the minimum allowable sharpness value R1 允许 , moderate exposure reference value R2 参考 And the minimum focus value R3 最低 Compare, if R1<R1 允许 , |R2-R2 参考 |>ΔR2,R3<R3 最低 , then calculate R1 and R1 respectively 允许 Between, |R2-R2 参考 | and ΔR2, R3 and R3 最低 The calculated differences are marked as C1, C2 or C3, C4; if R2>R2 参考 , then the difference is marked as C2, otherwise it is marked as C3; preset the difference value ranges of sharpness, exposure and focus, set each difference value range of sharpness, exposure and focus to correspond to a focus distance adjustment range, shutter speed adjustment range and focal length adjustment range respectively, map each group of calculated difference values to the corresponding difference value range respectively, and obtain the adjustment parameters of the drone camera;
[0031] The camera parameters of the drone are adjusted according to the obtained adjustment parameters, and the route is planned according to the current position of the drone and the position of the area to be stitched. After the planning is completed, the drone is controlled to collect image data of the area to be stitched;
[0032] P3: Send a recall signal to the current drone, randomly select drones from the drones to be used, and use the selected drones as the collection drones for the area to be stitched in the current target area. Perform route planning based on the current position of the drone and the location of the area to be stitched. After the planning is completed, further adjust the camera parameters of the collection drone according to step P2, and then control the collection drone to collect image data of the area to be stitched.
[0033] In some embodiments, the drone inspection signal sent by the acquisition and evaluation module is received, and the status of the drone is inspected and analyzed, specifically:
[0034] The route is planned according to the current position of the UAV and the position of the area to be spliced, the end point of the planned route is marked, the route distance between the marked point and the return point is calculated and added to the distance of the planned route to obtain the remaining flight distance of the UAV;
[0035] Get the area of the current target area to be stitched, match the area of the current target area to be stitched with the set area value ranges, set each area value range to correspond to a camera power consumption, and get the camera power consumption of the drone for image acquisition of the area to be stitched; match the remaining flight distance of the drone with the set flight distance value range, set each flight distance value range to correspond to a distance required power; get the distance required power for the remaining flight distance; add the obtained camera power consumption and distance required power as the total power consumption required for the drone to acquire images of the area to be stitched;
[0036] Further obtain the service life and cycle number of the current drone battery and mark them as NX and NW respectively; substitute the service life NX and cycle number NW of the current drone battery into the formula Perform weighted calculation to obtain the aging assessment index FS of the current drone battery; where h1 and h2 are the influencing weight factors of the service life NX and the number of cycles NW respectively;
[0037] Match the obtained aging assessment index FS with the preset index value ranges, set each index value range to correspond to a battery discount rate; obtain the battery discount rate of the current UAV battery; obtain the remaining power of the UAV at the current time point and multiply it by the obtained discount rate to obtain the estimated available power of the UAV at the current time point; compare the obtained estimated available power with the total power required for consumption, if the estimated available power is greater than the total power required for consumption, generate a status pass signal; otherwise, generate a signal to replace the UAV.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] The present invention performs quality analysis and evaluation on the image data collected by the drone, evaluates the sharpness, exposure and focus in multiple aspects to obtain a quality evaluation index, thereby automatically judging whether the image is qualified; further processing the unqualified images, screening out qualified image fragments and generating images to be spliced, and controlling the drone to perform targeted collection for the unqualified image areas, thereby improving efficiency while ensuring image quality; before collecting the unqualified image areas, the calculated difference is mapped to a preset difference value range, thereby adjusting the drone camera parameters, and ensuring the image quality of subsequent unqualified image areas; through continuous evaluation, screening, re-collection and adjustment, continuous improvement of image quality is achieved.
[0040] The present invention can reflect whether the current UAV can complete the image acquisition task of the area to be stitched by estimating the available power and comparing it with the total power consumption required. The wind direction, wind speed and aging assessment index factors are further considered in the power consumption estimation, thereby improving the accuracy and comprehensiveness of the analysis, ensuring that the UAV has sufficient power when performing the task, avoiding mission failure due to insufficient power, and improving the acquisition efficiency and intelligence. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Further details, features and advantages of the present application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0042] Figure 1 It is a principle block diagram of the present invention. DETAILED DESCRIPTION
[0043] Several embodiments of the present application will be described in more detail below with reference to the accompanying drawings so that those skilled in the art can implement the present application. The present application can be embodied in many different forms and purposes and should not be limited to the embodiments described herein. These embodiments are provided to make the present application comprehensive and complete, and to fully convey the scope of the present application to those skilled in the art. The embodiments do not limit the present application.
[0044] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this application belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and / or this specification, and will not be interpreted in an idealized or overly formal sense, unless explicitly defined as such herein.
[0045] See also Figure 1As shown, a UAV image acquisition and analysis system based on image analysis includes a data acquisition module, a data processing module, an acquisition evaluation module, a feedback optimization module and a state evaluation module;
[0046] The data acquisition module plans the flight path and altitude of the drone according to the geographic information of the target area and the expected image coverage. The drone starts to perform the mission according to the planned flight path, and collects image data of the target area through the onboard camera and sends it to the data processing module. The image data is transmitted using wireless transmission technology.
[0047] The data processing module is used to receive the image data collected by the drone, analyze and evaluate the quality of the image data, and obtain the quality evaluation index α of the image data collected in the current target area; compare the quality evaluation index α of the image data collected in the current target area with the set quality standard index. If it is greater than the set quality standard index, the image data is marked as unqualified, and a collection signal is generated and packaged and sent to the collection evaluation module; the quality standard index is determined according to the specific application scenario of the image data in the current target area;
[0048] Analyze and evaluate the quality of image data. The specific steps are as follows:
[0049] S1: Import the image data of the current target area collected by the drone and perform preliminary processing on the image data; the preliminary processing includes denoising, correcting chromatic aberration, adjusting brightness and contrast, etc., for subsequent analysis; after the preliminary processing, analyze and calculate the image data of the current target area to obtain the sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 of the image data;
[0050] S1-101: Convert image data into grayscale image and apply edge detection algorithm to find the edge of the image; the edge corresponds to the high-frequency part of the image; for each pixel in the image, calculate its edge strength, which is represented by the gradient amplitude; based on the gradient amplitude of the image, create a sharpness map, in which the value of each pixel represents the sharpness of the position; perform statistical analysis on the sharpness map and calculate the average gradient value as the mean sharpness of the image data;
[0051] Convert the image data to the frequency domain, select the part representing the high-frequency information in the frequency domain and calculate its energy by summing, and use the calculated result as the high-frequency energy value of the image data; determined according to the specific application scenario of the image data in the current target area;
[0052] Set the weight coefficients of the sharpness mean and high-frequency energy value; construct a formula to multiply the sharpness mean and high-frequency energy value of the image data by the corresponding weight coefficients respectively, and then sum them to obtain the sharpness evaluation value R1 of the image data of the current target area;
[0053] S1-102: Perform statistics on each brightness level of the grayscale image of the image data, add the brightness values of all pixels in the image data, and then divide it by the total number of pixels to obtain the average brightness; at the same time, calculate the standard deviation of the brightness value, and based on the average brightness and standard deviation of the image data, calculate the ratio between the average brightness and the standard deviation to obtain the exposure assessment value R2 of the image data of the current target area; a high R2 value may indicate that the image is brighter overall and the brightness distribution is more concentrated, which means overexposure; a low R2 value may indicate that the image is darker overall or the brightness distribution is more dispersed, which means underexposure or uneven;
[0054] S1-103: Calculate the second-order derivative of each pixel of the image data; use the Laplace operator to perform calculations; for each pixel of the image data, calculate the focus metric; based on the Tenengrad method, use the modulus of the second-order derivative as the focus metric; take the average of the focus metric of each pixel of the image data to obtain the focus evaluation value R3 of the image data of the current target area;
[0055] S2: Set the standard values of sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3; determine according to the specific application scenario of the current target area image data; mark the standard values of sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 as R1 respectively 允许 , R2 参考 and R3 最低 , where R1 允许 , R2 参考 and R3 最低 They represent the minimum allowable sharpness value, the moderate exposure reference value, and the minimum allowable focus value respectively;
[0056] Substitute the sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 of the current target area image data into the formula Perform weighted calculation to obtain the quality assessment index α of the image data; where a 1 、a 2 and a 3 They are the influencing weight factors of sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3, and their values are determined according to the specific application scenario of the current target area image data; ΔR2 represents the difference between exposure evaluation value R2 and moderate exposure reference value R2 参考 The maximum permissible difference between
[0057] It should be noted that the accuracy of the output can be verified by comparison with human visual perception or images of known sharpness, and the weight coefficient, reference value and influencing weight factor can be adjusted accordingly;
[0058] It should be noted that through the above-mentioned automated image data processing steps, rapid quality assessment of image data collected by drones is achieved, data processing speed is accelerated, and response time is improved.
[0059] The acquisition and evaluation module receives the acquisition signal and unqualified images generated by the current target area, and executes corresponding steps to process the unqualified images of the current target area, obtains the image to be stitched of the current target area based on the processing result, and executes corresponding steps to control the drone to acquire images of the target area to be stitched, pre-processes the image of the stitching area, and fuses it with the image to be stitched of the current target area as the adjusted image data of the current target area, and sends it to the data processing module again for quality evaluation;
[0060] Execute the corresponding steps to process the unqualified images of the current target area, specifically:
[0061] K1: Import the unqualified image of the current target area, and divide the unqualified image into a set number of sub-area images based on a preset division ratio; set the quality reference index of each sub-area image according to the preset division ratio; calculate the quality evaluation index of each sub-area image based on steps S1 and S2, compare the quality evaluation index of each sub-area with the set quality reference index, and select the divided sub-areas with a quality index less than the quality reference index as qualified image fragments of the current target area;
[0062] It should be noted that if the quality evaluation index of each sub-region is greater than the set quality reference index, each sub-region is divided again according to a preset division ratio, and analyzed and screened.
[0063] K2: According to the screening results, the qualified image fragments of the current target area are subjected to morphological processing, such as dilation and erosion, to smooth the edges of the qualified image fragments and remove small unqualified areas; the qualified image fragments of the current target area are used to generate a qualified area map and represented by a preset color;
[0064] K3: Use the generated qualified area map as the image to be stitched in the current target area, and record the unqualified area in the current target area as the area to be stitched in the current target area;
[0065] It should be noted that the specific process of fusion is: select the fusion method according to the characteristics of the image fragments and the application scenarios, compare the effects of different fusion methods, and select the best method; such as gradient domain fusion, frequency domain fusion and convolutional neural network.
[0066] It should be noted that controlling the drone to collect images of the target area to be stitched can improve the efficiency and effect of image collection when collecting images of a larger area, and avoid the need to use the drone to shoot the entire image again.
[0067] Execute the corresponding steps to control the drone to collect images of the target area to be stitched, specifically:
[0068] P1: Send a drone inspection signal to the status assessment module based on the current time point. If the status assessment module feeds back a pass signal, then execute step P2; if it feeds back a drone replacement signal, then execute step P3;
[0069] P2: Extract the sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 of the unqualified image, and compare them with the minimum allowable sharpness value R1 允许 , moderate exposure reference value R2 参考 And the minimum focus value R3 最低 Compare, if R1<R1 允许 , |R2-R2 参考 |>ΔR2,R3<R3 最低 , then calculate R1 and R1 respectively 允许 Between, |R2-R2 参考 | and ΔR2, R3 and R3 最低 The calculated differences are marked as C1, C2 or C3, C4; if R2>R2 参考 , then the difference is marked as C2, otherwise it is marked as C3; preset the difference value ranges of sharpness, exposure and focus, set each difference value range of sharpness, exposure and focus to correspond to a focus distance adjustment range, shutter speed adjustment range and focal length adjustment range respectively, map each group of calculated difference values to the corresponding difference value range respectively, and obtain the adjustment parameters of the drone camera;
[0070] It should be noted that the above content can introduce multi-objective optimization technologies, such as genetic algorithms, particle swarm optimization, etc., to find the best parameter combination that meets multiple quality indicators, so that the set adjustment parameters can meet the quality requirements of most of the current tender areas.
[0071] The camera parameters of the drone are adjusted according to the obtained adjustment parameters, and the route is planned according to the current position of the drone and the position of the area to be stitched. After the planning is completed, the drone is controlled to collect image data of the area to be stitched;
[0072] P3: Send a recall signal to the current drone, randomly select drones to be used, and use the selected drones as the collection drones for the area to be stitched in the current target area. Perform route planning based on the current position of the drone and the location of the area to be stitched. After planning is completed, adjust the camera parameters of the collection drone according to step P2, and then control the collection drone to collect image data of the area to be stitched.
[0073] It should be noted that the above method first divides the unqualified images into sub-areas and evaluates them separately, thereby achieving refined control of image quality, screening the unqualified image areas to control the targeted collection of the drone, improving efficiency while ensuring image quality, and further mapping the calculated difference to the preset difference value range, thereby achieving automatic adjustment of the drone camera parameters and ensuring the image quality of the subsequent areas to be stitched; through continuous evaluation, screening, re-collection and adjustment, continuous improvement of image quality is achieved.
[0074] The feedback optimization module is used to record the relevant data of the data processing module and the acquisition evaluation module and establish a database. The technicians can obtain the relevant data of the image acquisition task of the drone on the corresponding date and continuously adjust and optimize the flight parameters and data processing parameters;
[0075] It should be noted that by recording relevant data and establishing a database, a feedback loop is established and continuous optimization and adjustment are carried out to ensure the quality and efficiency of drone image acquisition.
[0076] The status evaluation module is used to receive the drone inspection signal sent by the acquisition and evaluation module, and to check and analyze the status of the drone, and to feed back the drone replacement signal or status pass signal to the acquisition and evaluation module based on the analysis results;
[0077] Check and analyze the status of the drone, specifically:
[0078] The route is planned according to the current position of the UAV and the position of the area to be spliced, the end point of the planned route is marked, the route distance between the marked point and the return point is calculated and added to the distance of the planned route to obtain the remaining flight distance of the UAV;
[0079] Get the area of the current target area to be stitched, match the area of the current target area to be stitched with the set area value ranges, and set each area value range to correspond to a camera power consumption; the camera theoretical power consumption is set based on the model of the currently used camera and is an approximate estimate; get the power consumption of the drone's camera for image acquisition of the area to be stitched;
[0080] Match the remaining flight distance of the drone with the set flight distance value range, set each flight distance value range to correspond to the power required for a distance; obtain the power required for the remaining flight distance; the power required for the distance includes the power required to be consumed due to the influence of wind direction and wind speed in the remaining flight distance, and it is an approximate estimate;
[0081] The power consumption of the camera and the power required for the distance are accumulated to obtain the total power consumption required for the drone to collect images of the area to be stitched.
[0082] Further obtain the service life and cycle number of the current drone battery and mark them as NX and NW respectively; substitute the service life NX and cycle number NW of the current drone battery into the formula Perform weighted calculation to obtain the aging assessment index FS of the current drone battery; h1 and h2 are the influencing weight factors of the service life NX and the number of cycles NW, respectively, and the specific values are set based on the model of the current drone battery;
[0083] The obtained aging assessment index FS is matched with the preset index value ranges, and each index value range is set to correspond to a battery discount rate; the battery discount rate of the current drone battery is obtained;
[0084] Obtain the remaining power of the drone at the current time point and multiply it by the obtained discount rate to obtain the estimated available power of the drone at the current time point; compare the obtained estimated available power with the total power required for consumption. If the estimated available power is greater than the total power required for consumption, generate a status pass signal; otherwise, generate a signal to replace the drone;
[0085] It should be noted that by comparing the estimated available power with the total power consumption, it can be reflected whether the current UAV can complete the image acquisition task of the area to be stitched, and further consider wind direction, wind speed and aging assessment index factors in the power consumption estimation, thereby improving the accuracy and comprehensiveness of the analysis, ensuring that the UAV has sufficient power when performing the mission, avoiding mission failure due to insufficient power, and improving the acquisition efficiency and intelligence.
[0086] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A drone image acquisition and analysis system based on image analysis, characterized in that: include: Data acquisition module: Plan the flight path of the drone according to the geographic information of the target area and the expected image coverage. The drone starts to perform the mission according to the planned flight path, and collects image data of the target area through the onboard camera and sends it to the data processing module. Data processing module: Receives image data collected by the drone, analyzes and evaluates the quality of the image data, and obtains the quality assessment index of the image data collected in the current target area , the quality assessment index of the image data collected in the current target area Compare with the set quality standard index. If it is greater than the set quality standard index, the image data is marked as unqualified image, and the acquisition signal is generated and packaged and sent to the acquisition evaluation module; Acquisition and evaluation module: receiving the acquisition signal and unqualified images generated by the current target area, and executing corresponding steps to process the unqualified images of the current target area, and obtaining the image to be stitched of the current target area based on the processing results; sending the drone inspection signal to the status evaluation module according to the current time point, and executing corresponding steps based on the signal fed back by the status evaluation module, so as to control the drone to acquire images of the target area to be stitched; after pre-processing the image of the area to be stitched, it is fused with the image to be stitched of the current target area as the adjusted image data of the current target area, and is sent to the data processing module again for quality evaluation; Feedback optimization module; record relevant data from the data processing module and the acquisition and evaluation module, and establish a database; Status evaluation module: receives the drone inspection signal sent by the acquisition and evaluation module, and checks and analyzes the status of the drone. Based on the analysis results, it feeds back the drone replacement signal or status pass signal to the acquisition and evaluation module; Analyze and evaluate the quality of image data, specifically: S1: import the image data of the current target area collected by the drone, and perform preliminary processing on the image data; after the preliminary processing, analyze and calculate the image data of the current target area to obtain the sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 of the image data; S1-101: Convert the image data into a grayscale image and apply an edge detection algorithm to find the edge of the image; for each pixel in the image, calculate its edge strength, which is represented by the gradient amplitude; based on the gradient amplitude of the image, create a sharpness map, in which the value of each pixel represents the sharpness of the corresponding position; perform statistical analysis on the sharpness map and calculate the average gradient value as the mean sharpness value of the image data; Convert the image data to the frequency domain, select the part representing the high-frequency information in the frequency domain and calculate its energy by summing, and use the calculated result as the high-frequency energy value of the image data; Set the weight coefficients of the sharpness mean and high-frequency energy value; construct a formula to multiply the sharpness mean and high-frequency energy value of the image data by the corresponding weight coefficients respectively, and then sum them to obtain the sharpness evaluation value R1 of the image data of the current target area; S1-102: Perform statistics on each brightness level of the grayscale image of the image data, add the brightness values of all pixels in the image data, and then divide it by the total number of pixels to obtain the average brightness; at the same time, calculate the standard deviation of the brightness value, and based on the average brightness and standard deviation of the image data, calculate the ratio between the average brightness and the standard deviation to obtain the exposure evaluation value R2 of the image data of the current target area; S1-103: Calculate the second-order derivative of each pixel of the image data; for each pixel of the image data, calculate the focus metric; take the average of the focus metric of each pixel of the image data to obtain the focus evaluation value R3 of the image data of the current target area; Get the quality assessment index of the image data collected in the current target area , specifically: S2: Setting standard values of the sharpness evaluation value R1, the exposure evaluation value R2, and the focus evaluation value R3; marking the standard values of the sharpness evaluation value R1, the exposure evaluation value R2, and the focus evaluation value R3 as , ,as well as ,in , as well as They represent the minimum allowable sharpness value, the moderate exposure reference value, and the minimum allowable focus value respectively; Substitute the sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 of the current target area image data into the formula , perform weighted calculation to obtain the quality assessment index of the image data ,in , as well as are the influencing weight factors of the sharpness evaluation value R1, the exposure evaluation value R2, and the focus evaluation value R3; Indicates the exposure evaluation value R2 and the exposure moderate reference value The maximum permissible difference between Execute the corresponding steps to process the unqualified images of the current target area, specifically: K1: Import the unqualified image of the current target area, and divide the unqualified image into a set number of sub-area images based on a preset division ratio; set the quality reference index of each sub-area image according to the preset division ratio; calculate the quality evaluation index of each sub-area image based on steps S1 and S2, compare the quality evaluation index of each sub-area with the set quality reference index, and select the divided sub-areas with a quality index less than the quality reference index as qualified image fragments of the current target area; K2: According to the screening results, morphological processing is performed on the qualified image fragments of the current target area; the qualified image fragments of the current target area are used to generate a qualified area map and are represented by preset colors; K3: The generated qualified area map is used as the image to be stitched in the current target area, and the unqualified area of the current target area is recorded as the area to be stitched in the current target area.
2. The unmanned aerial vehicle image acquisition and analysis system based on image analysis according to claim 1 is characterized in that: Based on the signal fed back by the state evaluation module, corresponding steps are executed, specifically: P1: If the status assessment module feeds back a pass signal, then execute step P2; if the status assessment module feeds back a signal to replace the drone, then execute step P3; P2: Extract the sharpness evaluation value R1, exposure evaluation value R2 and focus evaluation value R3 of the unqualified image, and compare them with the minimum allowable sharpness value , moderate exposure reference value And the minimum value allowed by focusing Compare, if R1< , , , then calculate R1 and The difference between C1, and The difference between C2 or C3, R3 and The difference between C4; if R2> , the difference is marked as C2, otherwise it is marked as C3; Preset the difference value ranges of sharpness, exposure and focus, set each difference value range of sharpness, exposure and focus to correspond to a focus distance adjustment range, shutter speed adjustment range and focal length adjustment range, map each group of calculated difference values to the corresponding difference value range, and obtain the adjustment parameters of the drone camera; The camera parameters of the drone are adjusted according to the obtained adjustment parameters, and the route is planned according to the current position of the drone and the position of the area to be stitched. After the planning is completed, the drone is controlled to collect image data of the area to be stitched; P3: Send a recall signal to the current drone, randomly select drones from the drones to be used, and use the selected drones as the collection drones for the area to be stitched in the current target area. Perform route planning based on the current position of the drone and the location of the area to be stitched. After the planning is completed, further adjust the camera parameters of the collection drone according to step P2, and then control the collection drone to collect image data of the area to be stitched.
3. The unmanned aerial vehicle image acquisition and analysis system based on image analysis according to claim 1 is characterized in that: Receive the drone inspection signal sent by the acquisition and evaluation module, and inspect and analyze the status of the drone, specifically: The route is planned according to the current position of the UAV and the position of the area to be spliced, the end point of the planned route is marked, the route distance between the marked point and the return point is calculated and added to the distance of the planned route to obtain the remaining flight distance of the UAV; Get the area of the current target area to be stitched, match the area of the current target area to be stitched with the set area value ranges, set each area value range to correspond to a camera power consumption, and get the camera power consumption of the drone for image acquisition of the area to be stitched; match the remaining flight distance of the drone with the set flight distance value range, set each flight distance value range to correspond to a distance required power; get the distance required power for the remaining flight distance; add the obtained camera power consumption and distance required power as the total power consumption required for the drone to acquire images of the area to be stitched; Further obtain the service life and cycle number of the current drone battery and mark them as NX and NW respectively; substitute the service life NX and cycle number NW of the current drone battery into the formula Perform weighted calculation to obtain the aging assessment index FS of the current drone battery; where h1 and h2 are the influencing weight factors of the service life NX and the number of cycles NW respectively; Match the obtained aging assessment index FS with the preset index value ranges, set each index value range to correspond to a battery discount rate; obtain the battery discount rate of the current UAV battery; obtain the remaining power of the UAV at the current time point and multiply it by the obtained discount rate to obtain the estimated available power of the UAV at the current time point; compare the obtained estimated available power with the total power required for consumption, if the estimated available power is greater than the total power required for consumption, generate a status pass signal; otherwise, generate a signal to replace the UAV.
