Real-time enhancement method and system for images acquired by unmanned aerial vehicle
By using the neural network model in UAVs to enhance images in real time, the problem of traditional methods that are not effective in real-time scenarios is solved, and efficient and accurate image enhancement is achieved, which is suitable for UAV inspection tasks.
Patent Information
- Application Number
- CN202410865277.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional UAV image deblurring methods are difficult to provide robust enhancement effects in real-time scenes under the limitations of lighting conditions, environmental noise, image quality and other factors, and require a large amount of computing resources or prior knowledge for motion blur problems, which limits its application. Feasibility in real-time applications of drones.
By acquiring images and environmental information in drone inspection missions, a neural network model is established and trained, using fuzzy images as input and clear images as output, optimizing weights to build a neural network model for real-time enhancement, combined with environmental information. Iterative training to achieve real-time enhancement of captured images.
It realizes image enhancement under different environmental information, improves the accuracy of image enhancement results, avoids the influence of environmental factors, and estimates resource allocation to avoid resource waste.
Smart Images

Figure CN118691501A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned aerial vehicle (UAV) image acquisition, and in particular to a method and system for real-time enhancement of images acquired by unmanned aerial vehicles. Background Art
[0002] In the industrial and commercial fields, drones are increasingly becoming the focus of research. They are favored for their high mobility, high efficiency, low cost, and reusability. In particular, the use of high-precision cameras for aerial inspections can obtain image data of the target area, and achieve accurate and real-time image analysis through target measurement technology. This technology can be widely used in traffic flow analysis, urban construction planning, power transmission line inspection, oil pipeline inspection, border inspection and other fields. Through drone aerial photography, detailed information about the detection area can be quickly obtained, providing more efficient and accurate data support for various industries, thereby improving work efficiency and reducing labor costs.
[0003] Traditional UAV image deblurring methods usually rely on predefined image processing algorithms, such as histogram equalization, filters, or enhancement devices. However, these methods are often limited by factors such as lighting conditions, environmental noise, and image quality, and it is difficult to provide robust enhancement effects in real-time scenarios. In addition, traditional methods for specific problems such as motion blur may also require real-time configuration of a large amount of computing resources or prior knowledge, limiting their feasibility in real-time UAV applications. Summary of the invention
[0004] In view of the problems existing in the prior art, an embodiment of the present invention provides a method and system for real-time enhancement of images collected by a drone.
[0005] The embodiment of the present invention provides a method for real-time enhancement of images collected by a drone, comprising: Obtaining the inspection image collected by the drone when performing the inspection task, as well as the inspection route corresponding to the inspection task, and determining the image position corresponding to the inspection image and the environmental information of the image position in combination with the identified target in the inspection image; Detecting the clarity score of the inspection image, when the clarity score is lower than a preset score, establishing a training image data set based on the clarity score, constructing a first neural network model, taking the blurred image as input data and the clear image as output data, back-propagating and optimizing the weights, and obtaining a trained first neural network model, wherein the training image data set includes the blurred image and the clear image; Inputting the environmental information and the clarity score into a second neural network model for training, and iterating the training to obtain a trained second neural network model; When a real-time inspection task is received, the real-time environmental information of the route corresponding to the real-time inspection task is obtained, the real-time environmental information is input into the second neural network model, an estimated clarity score is output, and the corresponding first neural network model is configured based on the estimated clarity score to perform real-time enhancement on the captured image.
[0006] In one embodiment, the method further comprises: An image with a score lower than a preset score in the historical image data is obtained as a blurred image, and an image position corresponding to the blurred image is determined, and an image with a score higher than the preset score at the same image position is obtained as a clear image.
[0007] In one embodiment, the method further comprises: The blurred images with the same clarity score are used as input data, and the clear images with the same image position are used as output data. The weights are optimized by back propagation to obtain the trained first neural network. The clarity scores of the blurred images are adjusted and retrained until the training of blurred images with all clarity scores is completed.
[0008] In one embodiment, the method further comprises: Based on the estimated clarity score and the route of the real-time inspection task, draw a corresponding task route map, and mark the estimated clarity score on the task route map; When change information of the real-time environmental information is received, the estimated clarity score of the corresponding location is retrained through the second neural network based on the location information of the change information to obtain an updated estimated clarity score, and the estimated clarity score marked on the task roadmap is updated.
[0009] In one embodiment, the environmental information includes: Light intensity, shooting angle, visibility, drone speed The embodiment of the present invention provides a real-time enhancement system for images collected by a drone, comprising: An acquisition module is used to acquire the inspection image collected by the drone when performing the inspection task, as well as the inspection route corresponding to the inspection task, and determine the image position corresponding to the inspection image and the environmental information of the image position in combination with the identified target in the inspection image; A first training module is used to detect the clarity score of the inspection image. When the clarity score is lower than a preset score, a training image data set is established based on the clarity score, a first neural network model is constructed, the blurred image is used as input data, the clear image is used as output data, and the weights are optimized by back propagation to obtain a trained first neural network model, wherein the training image data set includes the blurred image and the clear image; A second training module, used for inputting the environmental information and the clarity score into a second neural network model for training, and iteratively training to obtain a trained second neural network model; The output module is used to obtain the real-time environmental information of the route corresponding to the real-time inspection task when receiving the real-time inspection task, input the real-time environmental information into the second neural network model, output the estimated clarity score, and configure the corresponding first neural network model based on the estimated clarity score to perform real-time enhancement on the captured image.
[0010] In one embodiment, the system further comprises: The second acquisition module is used to acquire images with a score lower than a preset score in the historical image data as blurred images, determine the image position corresponding to the blurred image, and acquire images with a score higher than the preset score at the same image position as clear images.
[0011] In one embodiment, the system further comprises: The adjustment module is used to take blurred images with the same clarity score as input data and clear images with the same image position as output data, optimize weights by back-propagation, obtain the trained first neural network, adjust the clarity score of the blurred image and re-train until the training of blurred images with all clarity scores is completed.
[0012] An embodiment of the present invention provides an electronic device, including a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method described in one or more embodiments.
[0013] An embodiment of the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the above-mentioned method for real-time enhancement of images collected by a drone are implemented.
[0014] In view of the above, in one or more embodiments of the present specification, inspection images collected when the drone performs an inspection task and the inspection route corresponding to the inspection task are obtained, and the image position corresponding to the inspection image and the environmental information of the image position are determined in combination with the identification target in the inspection image; the clarity score of the inspection image is detected, and when the clarity score is lower than the preset score, a training image data set is established based on the clarity score, and a first neural network model is constructed, with the blurred image as input data and the clear image as output data, and the weights are optimized by back propagation to obtain a trained first neural network model, and the training image data set includes the blurred image and the clear image; the environmental information and the clarity score are input into the second neural network model for training, and the trained second neural network model is obtained by iterative training; when a real-time inspection task is received, the real-time environmental information of the route corresponding to the real-time inspection task is obtained, the real-time environmental information is input into the second neural network model, an estimated clarity score is output, and the corresponding first neural network model is configured based on the estimated clarity score to perform real-time enhancement on the captured image. In this way, corresponding image enhancement algorithms can be used for different environmental information, avoiding the influence of environmental factors while improving the accuracy of image enhancement results. In addition, the resources required for inspection tasks can be estimated, thus avoiding waste of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 This is a flow chart of a method for real-time enhancement of images collected by a drone provided by an embodiment of this specification.
[0017] Figure 2 It is a structural schematic diagram of a real-time enhancement system for drone-collected images provided in one embodiment of the present specification.
[0018] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0019] The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that the discussion of these embodiments is only to enable those skilled in the art to better understand and implement the subject matter described herein, and is not a limitation of the scope of protection, applicability or examples set forth in the claims. The functions and arrangements of the elements discussed can be changed without departing from the scope of protection of the contents of this specification. Various examples can omit, replace or add various processes or components as needed. For example, the described method can be performed in an order different from the described order, and various steps can be added, omitted or combined. In addition, the features described relative to some examples can also be combined in other examples.
[0020] As used herein, the term "including" and its variations represent open terms, meaning "including but not limited to". The term "based on" means "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one other embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other definitions may be included below, whether explicit or implicit. Unless the context clearly indicates otherwise, the definition of a term is consistent throughout the specification.
[0021] like Figure 1 As shown, an embodiment of the present invention provides a method for real-time enhancement of images collected by a drone, comprising: Step S101, obtaining the inspection image collected by the drone when performing the inspection task, and the inspection route corresponding to the inspection task, and combining the identification target in the inspection image to determine the image position corresponding to the inspection image and the environmental information of the image position.
[0022] Specifically, the image data captured by the shooting module carried by the drone during the drone's inspection mission and the corresponding flight inspection route when the drone performs the inspection mission are collected. The inspection route can be determined in advance, and the flight information can be recorded through the MQTT (Message Queuing Telemetry Transport) protocol. In the drone inspection project, the client on the drone will publish flight status information to the message broker (Broker) through the MQTT protocol. At the same time, the drone's real-time location information and sensor data (such as lidar or inertial measurement unit IMU data) will also be recorded through MQTT to determine the corresponding inspection route. On the inspection route of the drone, some obvious and easy-to-identify landmarks may be arranged, and then the image position and corresponding environmental information are determined in the inspection image. The image position refers to the position of the drone when the corresponding image is taken. The position of the drone can usually be determined through visual SLAM, ORB-SLAM, GPS-assisted image positioning and other methods. The landmarks can further help the drone to accurately determine the image position, and the environmental information refers to the corresponding external information and drone information at the image position, such as light intensity, shooting angle, visibility, drone speed, etc., which may affect the clarity of the inspection image.
[0023] Step S102, detecting the clarity score of the inspection image. When the clarity score is lower than a preset score, establishing a training image data set based on the clarity score, constructing a first neural network model, using the blurred image as input data and the clear image as output data, back-propagating and optimizing the weights, and obtaining a trained first neural network model, wherein the training image data set includes the blurred image and the clear image.
[0024] Specifically, the clarity score of the inspection image is detected. For the judgment of blurriness / clarity of motion blurred images, the edge information of the image can be scored by the Laplace variance method to judge the blurriness of the image, that is, the image is converted from the RGB color space to a grayscale image, the grayscale image is convolved using the Laplace operator, and then the image obtained after applying the Laplace operator can be regarded as an edge intensity map, and the variance is calculated for all pixel values of the edge intensity map. A large variance indicates that the edge intensity in the image changes greatly, which means that the image contains rich details and high clarity; conversely, if the variance is small, it indicates that the image is relatively flat and may be blurred. After determining the clarity score of the inspection image, the corresponding preset score is determined, that is, the threshold for distinguishing between a clear image and a blurred image. For example, when the preset score is 6, images above 6 points are clear images, and images below 6 points are blurred images. For blurred images, further training is required to deblur. For clear images, images above the preset score of the blurred image at the same position can be clear images taken by the drone when performing other inspection tasks. Based on the clarity score, an inspection image dataset is established, where the inspection image dataset includes clear images and blurred images, and the first neural network model is constructed to learn the mapping relationship from blurred images to clear images. Common network structures include U-Net, ResNet, etc., which can capture multi-level features and perform effective image restoration, and through regularization strategies, such as combining L1 / L2 regularization to prevent overfitting, TV (Total Variation) regularization, promote smooth changes between adjacent pixels, maintain the structural continuity of the image, etc., with blurred images as input data and clear images as output data, back propagation optimizes weights, and the loss function combines content loss (such as mean square error MSE, structural similarity SSIM) and regularization terms to balance the accuracy of restoration and the naturalness of the image. Hyperparameters such as learning rate and batch size are adjusted, and multiple iterations of training are performed to obtain the trained first neural network model.
[0025] In addition, for blurred images with scores lower than a preset score, such as blurred images with scores lower than 6 points, corresponding training image data sets and neural network model training can be set according to different scores. For example, neural network model training can be performed separately for blurred images with scores of 5 points, blurred images with scores of 4 points, blurred images with scores of 3 points... and blurred images with scores of 0 points, and the first neural network models corresponding to the training with different clarity scores can be determined respectively.
[0026] In addition, the specific steps for defuzzifying the first neural network through the regularization strategy can be specifically as follows: The blurring artifacts of drones during motion are caused by various factors. The blurring process can be expressed mathematically as: in and are blurred and clear images respectively. K is the unknown (blind) or known (non-blind) blur kernel, and N is the additive noise. The above formula is the forward model of the fuzzy process. After simplifying the above model, the following formula is obtained: Among them, y represents the clear image, A represents the degradation operator, and n represents the noise Deblurring is the inverse of the above process. According to the Bayesian formula, regularization The model on the data is defined, and p represents some prior. Deep neural networks (DNNs) have also proven their effectiveness in learning realistic models from observational databases. Therefore, the random fuzzy regularization formula is as follows: is the value for regularization of the fuzzy model, Represents the prior If the estimate of The fuzzy version of is very likely in the prior distribution, then the last quantity is the largest, that is, after an image is processed, even if there is a blurred area, if the content of the image can still be clearly seen, then the image is considered clean. In other words, even if there is a blurred area, if the object or details in the image can still be easily identified without being disturbed by the blurred area, it is considered a clear image.
[0027] Step S103: input the environmental information and the clarity score into a second neural network model for training, and perform iterative training to obtain a trained second neural network model.
[0028] Specifically, the environmental information and clarity score are taken as input and input into the input layer of the second neural network model for model training. The convolutional neural network model performs deep learning through the convolution layer-pooling layer-fully connected layer to obtain the trained convolutional neural network model. The trained second neural network model can determine the correlation weights between environmental factors such as light intensity, shooting angle, visibility, and drone speed in the environmental information and the clarity score, providing data support for subsequent inspection tasks.
[0029] Step S104, when a real-time inspection task is received, the real-time environmental information of the route corresponding to the real-time inspection task is obtained, the real-time environmental information is input into the second neural network model, an estimated clarity score is output, and the corresponding first neural network model is configured based on the estimated clarity score to perform real-time enhancement on the captured image.
[0030] Specifically, after receiving a real-time UAV inspection task, it is necessary to enhance the images collected by the UAV in real time during the UAV inspection process, and obtain the real-time environmental information of the route corresponding to the real-time inspection task, including the light intensity, shooting angle, visibility of the UAV during flight, and the preset flight speed of the UAV during inspection. The real-time environmental information is input into the second neural network model. Through the trained second neural network model, the image clarity of the route corresponding to the real-time inspection task can be estimated. Specifically, the corresponding inspection task route can be generated on the model or AR technology, or the corresponding task route map can be drawn, and then the corresponding estimated clarity score can be marked on the task route for relevant operators to determine the corresponding inspection situation and allocate corresponding image processing resources. Then, the corresponding first neural network model can be configured according to the estimated clarity score to perform real-time enhancement and deblurring on the real-time collected images in a targeted manner.
[0031] In addition, if the duration of the drone inspection mission is long and the mission distance is long, the real-time environmental information may suddenly change during the actual execution. When the real-time environmental information changes, the change information of the real-time environmental information is received, and the estimated clarity score of the corresponding location is retrained based on the location information of the change information. The second neural network is retrained to obtain the updated estimated clarity score of the corresponding location, and the estimated clarity score on the corresponding identification route map is updated, so as to further improve the pertinence and accuracy of real-time image enhancement during mission execution.
[0032] The embodiment of the present invention provides a method for real-time enhancement of images collected by a drone. The method comprises the following steps: obtaining an inspection image collected by a drone when performing an inspection task, and an inspection route corresponding to the inspection task, and determining an image position corresponding to the inspection image and environmental information of the image position in combination with an identification target in the inspection image; detecting a clarity score of the inspection image, and when the clarity score is lower than a preset score, establishing a training image data set based on the clarity score, constructing a first neural network model, taking a blurred image as input data and a clear image as output data, back-propagating and optimizing weights, and obtaining a trained first neural network model, wherein the training image data set includes blurred images and clear images; inputting environmental information and the clarity score into a second neural network model for training, and iterating through training to obtain a trained second neural network model; when a real-time inspection task is received, obtaining real-time environmental information of the route corresponding to the real-time inspection task, inputting the real-time environmental information into the second neural network model, outputting an estimated clarity score, and configuring the corresponding first neural network model based on the estimated clarity score to perform real-time enhancement on the captured image. In this way, corresponding image enhancement algorithms can be used for different environmental information, avoiding the influence of environmental factors while improving the accuracy of image enhancement results. In addition, the resources required for inspection tasks can be estimated, thus avoiding waste of resources.
[0033] See also Figure 2 , Figure 2 Schematic diagram of a real-time enhancement system for drone-collected images provided in an embodiment of the present application. Figure 2 As shown, the system comprises: The acquisition module S201 is used to acquire the inspection image collected when the drone performs the inspection task, and the inspection route corresponding to the inspection task, and determine the image position corresponding to the inspection image and the environmental information of the image position in combination with the identification target in the inspection image; A first training module S202 is used to detect the clarity score of the inspection image. When the clarity score is lower than a preset score, a training image data set is established based on the clarity score, a first neural network model is constructed, and the blurred image is used as input data and the clear image is used as output data. The weights are optimized by back propagation to obtain a trained first neural network model, and the training image data set includes the blurred image and the clear image; A second training module S203 is used to input the environmental information and the clarity score into a second neural network model for training, and iterate the training to obtain a trained second neural network model; The output module S204 is used to obtain the real-time environmental information of the route corresponding to the real-time inspection task when receiving the real-time inspection task, input the real-time environmental information into the second neural network model, output the estimated clarity score, and configure the corresponding first neural network model based on the estimated clarity score to perform real-time enhancement on the captured image.
[0034] In one embodiment, the system further comprises: The second acquisition module is used to acquire images with a score lower than a preset score in the historical image data as blurred images, determine the image position corresponding to the blurred image, and acquire images with a score higher than the preset score at the same image position as clear images.
[0035] In one embodiment, the system further comprises: The adjustment module is used to take blurred images with the same clarity score as input data and clear images with the same image position as output data, optimize weights by back-propagation, obtain the trained first neural network, adjust the clarity score of the blurred image and re-train until the training of blurred images with all clarity scores is completed.
[0036] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.
[0037] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
[0038] See also Figure 3 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 3 As shown, the electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .
[0039] The communication bus 302 is used to realize the connection and communication between these components.
[0040] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0041] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0042] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the terminal 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (ProgrammableLogic Array, PLA). The processor 301 can integrate one or a combination of a processor (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.
[0043] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally be at least one storage device located away from the aforementioned processor 301. As Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.
[0044] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the interactive application based on image generation stored in the memory 305, and specifically perform the following operations: obtain the inspection image collected when the drone performs the inspection task, and the inspection route corresponding to the inspection task, and determine the image position corresponding to the inspection image and the environmental information of the image position in combination with the identification target in the inspection image; detect the clarity score of the inspection image, when the clarity score is lower than the preset score, establish a training image data set based on the clarity score, construct a first neural network model, use the blurred image as input data and the clear image as output data, back propagate and optimize the weights, and obtain the trained first neural network model, the training image data set includes the blurred image and the clear image; input the environmental information and the clarity score into the second neural network model for training, and iterate the training to obtain the trained second neural network model; when a real-time inspection task is received, obtain the real-time environmental information of the route corresponding to the real-time inspection task, input the real-time environmental information into the second neural network model, output the estimated clarity score, and configure the corresponding first neural network model based on the estimated clarity score to enhance the captured image in real time.
[0045] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0046] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0047] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0048] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0049] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0050] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0051] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0052] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0053] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A real-time enhancement method for images collected by unmanned aerial vehicles, characterized in that: include: Obtaining the inspection image collected by the drone when performing the inspection task, as well as the inspection route corresponding to the inspection task, and determining the image position corresponding to the inspection image and the environmental information of the image position in combination with the identified target in the inspection image; Detecting the clarity score of the inspection image, when the clarity score is lower than a preset score, establishing a training image data set based on the clarity score, constructing a first neural network model, taking the blurred image as input data and the clear image as output data, back-propagating and optimizing the weights, and obtaining a trained first neural network model, wherein the training image data set includes the blurred image and the clear image; Inputting the environmental information and the clarity score into a second neural network model for training, and iterating the training to obtain a trained second neural network model; When a real-time inspection task is received, the real-time environmental information of the route corresponding to the real-time inspection task is obtained, the real-time environmental information is input into the second neural network model, an estimated clarity score is output, and the corresponding first neural network model is configured based on the estimated clarity score to perform real-time enhancement on the captured image.
2. The real-time enhancement method for drone-collected images according to claim 1, characterized in that: The step of establishing a training image dataset based on the clarity score comprises: An image with a score lower than a preset score in the historical image data is obtained as a blurred image, and an image position corresponding to the blurred image is determined, and an image with a score higher than the preset score at the same image position is obtained as a clear image.
3. The real-time enhancement method for drone-collected images according to claim 1, characterized in that: The method uses the blurred image as input data, the clear image as output data, and back-propagates the weights to obtain the trained first neural network model, including: The blurred images with the same clarity score are used as input data, and the clear images with the same image position are used as output data. The weights are optimized by back propagation to obtain the trained first neural network. The clarity scores of the blurred images are adjusted and retrained until the training of blurred images with all clarity scores is completed.
4. The real-time enhancement method for drone-collected images according to claim 1, characterized in that: After outputting the estimated clarity score, it also includes: Based on the estimated clarity score and the route of the real-time inspection task, draw a corresponding task route map, and mark the estimated clarity score on the task route map; When change information of the real-time environmental information is received, the estimated clarity score of the corresponding location is retrained through the second neural network based on the location information of the change information to obtain an updated estimated clarity score, and the estimated clarity score marked on the task roadmap is updated.
5. The real-time enhancement method for drone-collected images according to claim 1, characterized in that: The environmental information includes: Light intensity, shooting angle, visibility, drone speed Latitude and longitude information, altitude information.
6. A real-time enhancement system for images collected by unmanned aerial vehicles, characterized in that: The system comprises: An acquisition module is used to acquire the inspection image collected by the drone when performing the inspection task, as well as the inspection route corresponding to the inspection task, and determine the image position corresponding to the inspection image and the environmental information of the image position in combination with the identified target in the inspection image; A first training module is used to detect the clarity score of the inspection image. When the clarity score is lower than a preset score, a training image data set is established based on the clarity score, a first neural network model is constructed, the blurred image is used as input data, the clear image is used as output data, and the weights are optimized by back propagation to obtain a trained first neural network model, wherein the training image data set includes the blurred image and the clear image; A second training module, used for inputting the environmental information and the clarity score into a second neural network model for training, and iteratively training to obtain a trained second neural network model; The output module is used to obtain the real-time environmental information of the route corresponding to the real-time inspection task when receiving the real-time inspection task, input the real-time environmental information into the second neural network model, output the estimated clarity score, and configure the corresponding first neural network model based on the estimated clarity score to perform real-time enhancement on the captured image.
7. The real-time enhancement system for drone image acquisition according to claim 1, characterized in that: The system further comprises: The second acquisition module is used to acquire images with a score lower than a preset score in the historical image data as blurred images, determine the image position corresponding to the blurred image, and acquire images with a score higher than the preset score at the same image position as clear images.
8. The real-time enhancement system for drone image acquisition according to claim 1 is characterized in that: The system further comprises: The adjustment module is used to take blurred images with the same clarity score as input data and clear images with the same image position as output data, optimize weights by back-propagation, obtain the trained first neural network, adjust the clarity score of the blurred image and re-train until the training of blurred images with all clarity scores is completed.
9. An electronic device comprising a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 5.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 5.
