A method and system for detecting vehicles using drone images based on altitude information

Through the drone image vehicle detection method based on height information, the drone prior information and feature pyramid network are used to adjust the size and density of the candidate area, which solves the problem of image blur and object feature weakening during drone shooting, and achieves A more efficient target detection effect.

CN118366065BActive Publication Date: 2024-10-22WUHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410509317.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-26
Publication Date
2024-10-22
Estimated Expiration
2044-04-26

AI Technical Summary

Technical Problem

UAVs are easily affected by the environment during the shooting process. The images are blurred and the object texture is not obvious. As the height increases, the object features in the images weaken, and the existing optimization methods have limited effects.

Method used

A drone image vehicle detection method based on height information is used to determine the bounding box distribution probability and vehicle density of the candidate area by acquiring image data at different heights, and the size and density of the candidate area are adjusted using the drone prior information and scale mapping function. , combining the feature pyramid network and the sequential feature refinement strategy to generate multi-layer refined features to improve the target vehicle positioning accuracy.

Benefits of technology

It improves the target detection accuracy and efficiency of UAVs at different heights and complex environments, reduces regional interference factors, and enhances the accuracy and efficiency of vehicle detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118366065B_ABST
    Figure CN118366065B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for detecting vehicles from drone images based on altitude information, including: determining the bounding box distribution probability of candidate areas corresponding to vehicles of different categories and the vehicle density at a given altitude based on image data of similar vehicles; determining the scale distribution of candidate areas using drone prior information and a scale mapping function, dynamically adjusting the size and distribution density of candidate areas according to the flight altitude, determining the range of a region proposal network, and screening candidate areas in the region proposal network by a density threshold; generating multiple layers of refined features based on a feature pyramid network, adding contextual information to each layer of refined features, adopting a sequential feature refinement strategy, combining the current layer features and drone prior information, and obtaining a target vehicle positioning characterization result. The present invention significantly improves the accuracy and efficiency of target detection by constructing a scale model for object detection, a scale-adaptive target proposal module, and a dynamic feature refinement module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of drone image processing, and in particular to a drone image vehicle detection method and system based on altitude information. Background Art

[0002] At present, drones are widely used in various aerial photography tasks, solving various limitations of traditional shooting methods and bringing great convenience.

[0003] However, drones are susceptible to various interferences during the shooting process, such as the environment around the drone, the vibration of the fuselage, and the performance of the equipment, which can lead to blurred images, unclear object textures, heavy shadows, and other problems. In addition, as the drone's altitude increases, the ground area captured by the camera increases. Due to the physical limitations of the camera's pixels, the information density does not change, and the number of pixels occupied by the same object in the image decreases, resulting in a weakening of the object's features.

[0004] At present, the optimization of drone photography usually involves improving the parameters or shooting methods of the drone itself, or optimizing the shooting targets to a certain extent, but they all have great limitations and the effect of the improvement is often very limited. Summary of the invention

[0005] The present invention provides a method and system for detecting vehicles using drone images based on altitude information, which are used to solve the defects in the prior art of target detection using drone images, such as being easily affected by the environment and having unclear feature recognition.

[0006] In a first aspect, the present invention provides a method for detecting vehicles using drone images based on altitude information, comprising:

[0007] Obtain image data of similar vehicles taken by drones at different altitudes;

[0008] Determine, based on the image data of the same type of vehicles, the probability of distribution of bounding boxes of candidate areas corresponding to vehicles of different categories and the density of vehicles at a given height;

[0009] Determine the scale distribution of candidate regions by using drone prior information and scale mapping function, dynamically adjust the size and distribution density of candidate regions according to the flight altitude, determine the range of region proposal network, and screen candidate regions in the region proposal network by density threshold;

[0010] Based on the feature pyramid network, multiple layers of refined features are generated, context information is added to each layer of refined features, and a sequential feature refinement strategy is adopted to obtain the target vehicle positioning characterization result by combining the current layer features and UAV prior information.

[0011] According to a method for detecting vehicles using drone images based on altitude information provided by the present invention, image data of similar vehicles taken by drones at different altitudes are obtained, including:

[0012] Acquire the position information and attitude information of the drone at any altitude, collect the images taken by the drone at the altitude, and construct a drone parameter annotation data set based on the position information and attitude information at any altitude and the images taken at any altitude;

[0013] Obtain the minimum and maximum values ​​of the horizontal coordinates and the vertical coordinates of each vehicle in any image, and determine a vehicle annotation set based on the minimum and maximum values ​​of the horizontal coordinates and the vertical coordinates of each vehicle;

[0014] The similar vehicle image data is constructed based on the drone parameter annotation data set and the vehicle annotation data set.

[0015] According to a method for detecting vehicles in drone images based on height information provided by the present invention, the bounding box distribution probability of candidate areas corresponding to vehicles of different categories and the vehicle density at a given height are determined according to the image data of the same type of vehicles, including:

[0016] According to the position information and posture information of any height, a probability density function is obtained by fitting;

[0017] According to the position information of any height, a density estimation function is obtained by fitting;

[0018] The probability density function and the density estimation function are added to obtain a priori probability of anchor box distribution, wherein the probability density function is used to determine the bounding box distribution probability, and the density estimation function is used to determine the vehicle density at the given height.

[0019] According to a method for detecting vehicles in drone images based on altitude information provided by the present invention, the scale distribution of candidate regions is determined by using drone prior information and a scale mapping function, the size and distribution density of candidate regions are dynamically adjusted according to the flight altitude, the range of a region proposal network is determined, and the candidate regions in the region proposal network are screened by a density threshold, including:

[0020] A feature extractor is constructed by using a residual network and a feature pyramid network, image features are extracted through multiple convolutional layers, activation functions and pooling layers included in the residual network, and the image features are fused through bottom-up, top-down and lateral connections of the feature pyramid network structure to obtain a feature map;

[0021] Input the feature map into a region proposal network to obtain a bounding box distribution probability corresponding to the candidate region;

[0022] Using the height information in the drone prior information and the probability density function to adjust the bounding box distribution probability, using the scale mapping function to perform scale screening on the candidate area to obtain the candidate area after initial screening;

[0023] Using the height information in the drone prior information and a density estimation function to adjust the vehicle density at the given height, density estimation is performed on the candidate area after the initial screening to obtain the candidate area after the secondary screening;

[0024] The candidate regions exceeding the density threshold are taken as final candidate regions.

[0025] According to a method for detecting vehicles in drone images based on height information provided by the present invention, multiple layers of refined features are generated based on a feature pyramid network, context information is added to each layer of refined features, a sequential feature refinement strategy is adopted, and the current layer features and drone prior information are combined to obtain a target vehicle positioning characterization result, including:

[0026] The convolutional neural network in the feature pyramid network performs feature extraction to obtain a bottom-up information flow, and the pyramid network in the feature pyramid network performs feature fusion to obtain three-layer features of semantic information at different levels;

[0027] Using convolutional neural network RoIPooling, extract the three-layer features of the different levels of semantic information in the final candidate area, and input the extracted features into a detection head, wherein the detection head is composed of a convolutional layer branch and a fully connected layer branch, and a feature refinement matrix is ​​obtained by the convolutional layer branch, and the multi-layer refinement features are obtained by connecting the fully connected layer branches;

[0028] Based on the input value and output value of the current layer and introducing the drone prior information, the multi-layer refined features are cross-layer refined to output the target vehicle positioning characterization result.

[0029] According to a method for detecting vehicles in drone images based on height information provided by the present invention, a convolutional neural network in a feature pyramid network performs feature extraction to obtain a bottom-up information flow, and a pyramid network in the feature pyramid network performs feature fusion to obtain three layers of features of different levels of semantic information, including:

[0030] The convolutional neural network performs multiple convolutions and pooling on the image, gradually reduces the image resolution, and obtains feature map information of different scales to form the information flow;

[0031] The pyramid network upsamples high-level feature maps through a top-down path and lateral connections, gradually fuses feature maps of different resolutions at each layer, and obtains the three-layer features of semantic information at different levels.

[0032] In a second aspect, the present invention further provides a drone image vehicle detection system based on altitude information, comprising:

[0033] An acquisition module is used to acquire image data of similar vehicles taken by drones at different altitudes;

[0034] A determination module, used to determine the bounding box distribution probability of candidate areas corresponding to different categories of vehicles and the vehicle density at a given height based on the image data of the same type of vehicles;

[0035] A suggestion module is used to determine the scale distribution of candidate regions by using drone prior information and a scale mapping function, dynamically adjust the size and distribution density of candidate regions according to the flight altitude, determine the range of the region suggestion network, and filter the candidate regions in the region suggestion network by a density threshold;

[0036] The refinement module is used to generate multiple layers of refined features based on the feature pyramid network, add context information to each layer of refined features, adopt a sequential feature refinement strategy, combine the current layer features and drone prior information, and obtain the target vehicle positioning characterization result.

[0037] In a third aspect, the present invention also provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements any of the above-mentioned methods for detecting vehicles by drone images based on altitude information.

[0038] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described drone image vehicle detection methods based on altitude information.

[0039] In a fifth aspect, the present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned drone image vehicle detection methods based on altitude information.

[0040] The method and system for detecting vehicle using drone images based on altitude information provided by the present invention adopt a height prior network model to determine the influence of internal and external parameters such as the drone's flight altitude on the regional scale and distribution density of the target vehicle, and adopt a regional proposal network to select regional information, remove regional interference factors, and use more contextual information for vehicle detection, thereby achieving rapid improvement in the accuracy and efficiency of target vehicle detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the present invention or 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.

[0042] Figure 1 This is one of the flow charts of the method for detecting vehicles using drone images based on altitude information provided by the present invention;

[0043] Figure 2 This is the second flow chart of the method for detecting vehicles using drone images based on altitude information provided by the present invention;

[0044] Figure 3 It is a comparison chart of the detection performance of the HIT-UAV dataset provided by the present invention;

[0045] Figure 4 It is a comparison chart of the detection performance of the Drone Vehicle dataset provided by the present invention;

[0046] Figure 5 is a schematic diagram of a scale-adaptive target suggestion module provided by the present invention;

[0047] Figure 6 It is a visualization diagram of the dynamic feature refinement module provided by the present invention in the feature heat map;

[0048] Figure 7 It is a structural schematic diagram of a drone image vehicle detection system based on altitude information provided by the present invention;

[0049] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] In view of various interference problems that occur when existing drones perform aerial photography tasks, the embodiment of the present invention proposes a drone image vehicle detection method based on height information, such as Figure 1 As shown, including:

[0052] Step 100: Obtain image data of similar vehicles taken by the drone at different altitudes;

[0053] Step 200: Determine the bounding box distribution probability of candidate regions corresponding to vehicles of different categories and the vehicle density at a given height based on the image data of the same type of vehicles;

[0054] Step 300: Determine the scale distribution of candidate regions using drone prior information and a scale mapping function, dynamically adjust the size and distribution density of candidate regions according to the flight altitude, determine the range of a region proposal network, and screen candidate regions in the region proposal network using a density threshold;

[0055] Step 400: Generate multiple layers of refined features based on the feature pyramid network, add context information to each layer of refined features, adopt a sequential feature refinement strategy, combine the current layer features and drone prior information, and obtain the target vehicle positioning characterization result.

[0056] The embodiment of the present invention studies the internal and external parameters of the sensors on the drone, including the focal length, aperture of the camera and the flight altitude of the drone, to detect vehicles in reconnaissance missions. Because the ground object categories at different heights under the same camera parameters installed on the drone show certain characteristics of scale variation, indicating that the prior scale is strong. In addition, the density of cars in the field of view varies at different flight altitudes of the drone. Therefore, the predefined height prior can help the network better locate the vehicle and guide the generation of the region proposal network. Based on this, the embodiment of the present invention first establishes a height prior network model to understand the impact of the drone's flight altitude and internal parameters on the scale and distribution of cars, and then encodes these priors into deep features, and adopts a region proposal-based method to introduce region selection driven by prior information, and optimize its performance by discarding most unnecessary calculations at runtime. After a carefully designed feature purification network structure, more contextual information is used for vehicle detection, and detailed height priors are used to improve positioning accuracy.

[0057] Specifically, Figure 2 As shown in the figure, three main modules are constructed, including building a scale model for object detection, a scale-adaptive target proposal module, and a dynamic feature refinement module. The structure is specifically tailored to improve vehicle recognition in images taken by drones, taking into account the changes in flight altitude and camera perspective. The main network effectively pulls features from a dataset containing altitude information, a stage that is crucial to understanding the different effects of drone flight altitude and camera positioning on images; the features extracted and converted into high-level representations are then input into the scale-adaptive target proposal module; finally, the altitude-based features are thoroughly processed in the dynamic feature refinement module, focusing on the target and its surrounding areas, further improving the accuracy of target recognition.

[0058] First, a proportional model for object detection is established by collecting image data of the same type of vehicles taken by drones at different altitudes. Then, a probability density function and a density estimation function can be fitted by combining the drone's altitude and the camera's pitch angle information in these image data. This probability density function is used to adapt the probability of the bounding box length and width distribution of different types of vehicles based on the input flight altitude and camera pitch angle. At the same time, the density estimation function is used to estimate the density of vehicles at a given altitude. Such a model can help more accurately estimate and analyze the characteristics and distribution of targets taken under different flight conditions.

[0059] Then, a scale-adaptive target proposal module is established. This mechanism is built on the adaptive target proposal module and uses prior information such as flight altitude and camera angle to flexibly adapt to targets of different scales, thereby improving the accuracy and efficiency of drone target detection. In the early stage of the detection process, the mechanism guides the basic scale distribution of region proposals through a scale mapping function to exclude candidate regions that are not within the expected scale range. At the same time, by considering the impact of flight altitude on the density of candidate regions, the mechanism is able to dynamically adjust the size and distribution density of candidate regions, so that the Region Proposal Network (RPN) can adaptively adjust its parameters. In addition, by introducing a density threshold, it is ensured that only candidate regions that meet or exceed the threshold are retained by the RPN, further improving the efficiency and accuracy of target detection. Such a design makes drone target detection more effective at different altitudes and viewing angles, especially in complex flight environments.

[0060] Finally, a dynamic feature refinement module is constructed to integrate features at different levels through cascade refinement and feature pyramid networks (FPN) to enhance the positioning and characterization of the target vehicle. This module dynamically adjusts feature refinement according to the flight altitude and camera angle of the drone, effectively integrating high-level and low-level features. It introduces rich contextual information in the refinement stage to solve the problem of information loss, and realizes multi-level feature refinement through inter-layer cascading to accurately locate the target vehicle. In addition, the sequential refinement strategy combining the current layer features and height information further improves the accuracy and efficiency of target detection.

[0061] The present invention adopts a height prior network model to determine the influence of internal and external parameters such as the flight altitude of the UAV on the regional scale and distribution density of the target vehicle, and adopts a region proposal network to select regional information, remove regional interference factors, and use more contextual information for vehicle detection, so as to achieve rapid improvement in the accuracy and efficiency of target vehicle detection.

[0062] Based on the above embodiment, step 100 includes:

[0063] Acquire the position information and attitude information of the drone at any altitude, collect the images taken by the drone at the altitude, and construct a drone parameter annotation data set based on the position information and attitude information at any altitude and the images taken at any altitude;

[0064] Obtain the minimum and maximum values ​​of the horizontal coordinates and the vertical coordinates of each vehicle in any image, and determine a vehicle annotation set based on the minimum and maximum values ​​of the horizontal coordinates and the vertical coordinates of each vehicle;

[0065] The similar vehicle image data is constructed based on the drone parameter annotation data set and the vehicle annotation data set.

[0066] Specifically, in the embodiment of the present invention, the HIT-UAV dataset and the Drone Vehicle dataset are used for performance evaluation. The datasets contain infrared and RGB visible light photos, as well as different lighting conditions such as daytime, evening and night. Figure 3 and Figure 4 The detection performance comparison charts of the HIT-UAV dataset and the Drone Vehicle dataset are shown respectively.

[0067] Data representation of input information, using a dataset of internal and external parameters of drone cameras:D:(X k ,PAI k ,V k ) where Xk represents the kth image, PAIk represents the position and posture information (h,θ). k , the bounding box of each vehicle is represented as:

[0068]

[0069] where i∈{1,2,…,N k}, and N k Represents the total number of vehicles in the kth image.

[0070] Based on the above embodiment, step 200 includes:

[0071] According to the position information and posture information of any height, a probability density function is obtained by fitting;

[0072] According to the position information of any height, a density estimation function is obtained by fitting;

[0073] The probability density function and the density estimation function are added to obtain a priori probability of anchor box distribution, wherein the probability density function is used to determine the bounding box distribution probability, and the density estimation function is used to determine the vehicle density at the given height.

[0074] Specifically, the embodiment of the present invention can fit two functions based on the information input in the above embodiment, one of which is the probability density function f scale (h,θ), and a density estimation function f density (h). Based on these two functions, the prior probability of the anchor box distribution guiding the region proposal network can be obtained:

[0075] P(B)=f scale (h,θ)+f density (h) (2)

[0076] where f scale (h,θ) is the probability density function, which fits the probability of the bounding box length and width distribution of different categories of targets with different parameters according to the input flight altitude and camera pitch angle, f density (h) is the density estimation function, which is used to estimate the vehicle density at a given height.

[0077] Based on the above embodiment, step 300 includes:

[0078] A feature extractor is constructed by using a residual network and a feature pyramid network, image features are extracted through multiple convolutional layers, activation functions and pooling layers included in the residual network, and the image features are fused through bottom-up, top-down and lateral connections of the feature pyramid network structure to obtain a feature map;

[0079] Input the feature map into a region proposal network to obtain a bounding box distribution probability corresponding to the candidate region;

[0080] Using the height information in the drone prior information and the probability density function to adjust the bounding box distribution probability, using the scale mapping function to perform scale screening on the candidate area to obtain the candidate area after initial screening;

[0081] Using the height information in the drone prior information and a density estimation function to adjust the vehicle density at the given height, density estimation is performed on the candidate area after the initial screening to obtain the candidate area after the secondary screening;

[0082] The candidate regions exceeding the density threshold are taken as the final candidate regions.

[0083] Specifically, Figure 5As shown, the embodiment of the present invention constructs a scale-adaptive target proposal module. It can be understood that both the residual network ResNet and FPN are important structures for image processing in deep learning. ResNet solves the problem of difficult training of deep networks by introducing the concept of residual learning. Each residual block contains a "shortcut connection" (or skip connection) that allows gradients to flow directly, so that a deeper network structure can be trained. In the image feature extraction task, image data is transmitted through a series of convolutional layers, activation functions, and pooling layers. ResNet can effectively extract deep and rich image features in this way. FPN is a multi-scale, pyramid-shaped feature hierarchy that utilizes the inherent multi-scale of the deep convolutional network. It fuses features through bottom-up, top-down, and lateral connections, so that rich feature information can be obtained at different scales. This makes FPN very suitable for visual tasks that require the recognition of multi-scale objects. After extracting features from the input image through ResNet and the feature pyramid, the feature map obtained in the feature extractor is input into the region proposal network to obtain the original anchor box distribution probability P(A). Due to the structure of the region proposal network, the anchor box distribution generated by the original region proposal network is a feature that presents a uniform distribution.

[0084] The preprocessed height prior is then injected into the region proposal network to optimize the anchor box generation process. The key to this optimization is to use the probability density function f scale (h,θ) to adjust the distribution of bounding boxes under this condition. This step is performed in the early stage of the detection process, that is, the post-processing stage of the region proposal network, to guide the basic scale distribution through the model f sca1e (h,θ) is used for each region proposal, replacing the original scale estimate in region proposal pruning and excluding candidate regions that do not belong to the expected scale range.

[0085] Furthermore, the influence of flight altitude on the density of candidate regions is considered. Through the density estimation model f density (h), dynamically adjust the size and distribution density of candidate regions. This enables the region proposal network to adaptively adjust its hyperparameters, such as the number and distribution of anchor boxes, to better capture objects of different heights. In general, higher vehicle density estimates may require more or less dense anchor boxes to ensure that more potential vehicle locations are covered.

[0086] It should be noted that in order to filter the generated candidate regions, a density threshold τ is introduced to ensure that only those candidate regions that match or exceed the density estimate τ are retained, which helps to improve the efficiency and accuracy of target detection.

[0087] Based on the above embodiment, step 400 includes:

[0088] The convolutional neural network in the feature pyramid network performs feature extraction to obtain a bottom-up information flow, and the pyramid network in the feature pyramid network performs feature fusion to obtain three-layer features of semantic information at different levels;

[0089] Using convolutional neural network RoIPooling, extract the three-layer features of the different levels of semantic information in the final candidate area, and input the extracted features into a detection head, wherein the detection head is composed of a convolutional layer branch and a fully connected layer branch, and a feature refinement matrix is ​​obtained by the convolutional layer branch, and the multi-layer refinement features are obtained by connecting the fully connected layer branches;

[0090] Based on the input value and output value of the current layer and introducing the drone prior information, the multi-layer refined features are cross-layer refined to output the target vehicle positioning characterization result.

[0091] Among them, the convolutional neural network in the feature pyramid network performs feature extraction to obtain a bottom-up information flow, and the pyramid network in the feature pyramid network performs feature fusion to obtain three layers of features of semantic information at different levels, including:

[0092] The convolutional neural network performs multiple convolutions and pooling on the image, gradually reduces the image resolution, and obtains feature map information of different scales to form the information flow;

[0093] The pyramid network upsamples high-level feature maps through a top-down path and lateral connections, gradually fuses feature maps of different resolutions at each layer, and obtains the three-layer features of semantic information at different levels.

[0094] Specifically, the embodiment of the present invention first generates multi-layer features. FPN first extracts features through a standard convolutional neural network (such as ResNet), and this process forms a bottom-up information flow. In this process, the image is convolved and pooled (or strided convolution) multiple times, the resolution gradually decreases, and each layer of the feature map captures information of different scales. After the bottom-up path is processed, FPN constructs a feature pyramid through a top-down path and lateral connections. The top-down path gradually increases the resolution of the high-level feature map by upsampling (for example, using bilinear interpolation or transposed convolution), and after each upsampling step, it will be fused with the feature map in the bottom-up path of the corresponding resolution through lateral connections. After the bottom-up path is processed, FPN constructs a feature pyramid through a top-down path and lateral connections. The top-down path gradually increases the resolution of the high-level feature map by upsampling (for example, using bilinear interpolation or transposed convolution), and after each upsampling step, it will be fused with the feature map in the bottom-up path of the corresponding resolution through lateral connections. The three-layer features with different levels of semantic information generated by the feature pyramid network can be represented as L1, L2, and L3. Figure 6 Shows the visualization of the dynamic feature refinement module on the feature heatmap.

[0095] The specific refinement process is to use RoIPooling to extract the features corresponding to the anchor boxes generated by the scale-adaptive object proposal module, and then input them into the detection head. The detection head consists of two branches, two convolutional layers and two fully connected layers, and the parameters are not shared. The matrix obtained by the convolutional layer branch is [n,4], where n is a number equal to the number of anchor boxes generated by the scale-adaptive object proposal module, and 4 is (x, y, w, h), i.e., the horizontal and vertical coordinates of the lower left corner of the anchor box and the length and width of the anchor box. Define the time before the input to the detection head as t-1, and the time when the detection head generates the detection result as t. Then there is the following refinement formula:

[0096]

[0097] The process of cross-layer refinement is to define R t-1 is the output of the previous layer, which is the input of the current layer; R t is the output of the current layer. Based on the above detailed process, we can abstract the following formula:

[0098]

[0099] Among them, ° represents element addition, D represents the refinement process, and L t-1 Represents the previous layer in multi-layer feature generation.

[0100] The drone image vehicle detection system based on altitude information provided by the present invention is described below. The drone image vehicle detection system based on altitude information described below and the drone image vehicle detection method based on altitude information described above can be referenced to each other.

[0101] Figure 7 is a schematic diagram of the structure of a drone image vehicle detection system based on height information provided by an embodiment of the present invention. Figure 7 As shown, it includes: an acquisition module 71, a determination module 72, a suggestion module 73 and a refinement module 74, wherein:

[0102] The acquisition module 71 is used to obtain image data of similar vehicles taken by drones at different altitudes; the determination module 72 is used to determine the bounding box distribution probability of candidate areas corresponding to different categories of vehicles and the vehicle density at a given altitude based on the image data of similar vehicles; the suggestion module 73 is used to determine the scale distribution of the candidate area using drone prior information and a scale mapping function, dynamically adjust the size and distribution density of the candidate area according to the flight altitude, determine the range of the area suggestion network, and filter the candidate areas in the area suggestion network by a density threshold; the refinement module 74 is used to generate multiple layers of refined features based on a feature pyramid network, add contextual information to each layer of refined features, adopt a sequential feature refinement strategy, and combine the current layer features and drone prior information to obtain the target vehicle positioning characterization result.

[0103] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the drone image vehicle detection method based on height information, the method comprising: obtaining the image data of the same type of vehicles taken by the drone at different heights; determining the bounding box distribution probability of candidate areas corresponding to different types of vehicles and the vehicle density at a given height according to the image data of the same type of vehicles; determining the scale distribution of the candidate area using the drone prior information and the scale mapping function, dynamically adjusting the size and distribution density of the candidate area according to the flight height, determining the range of the region proposal network, and screening the candidate area in the region proposal network by the density threshold; generating multi-layer refinement features based on the feature pyramid network, adding context information to the refinement features of each layer, adopting a sequential feature refinement strategy, combining the current layer features and the drone prior information, and obtaining the target vehicle positioning characterization result.

[0104] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0105] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the drone image vehicle detection method based on altitude information provided by the above methods, the method including: obtaining similar vehicle image data taken by a drone at different altitudes; determining the bounding box distribution probability of candidate areas corresponding to different categories of vehicles and the vehicle density at a given altitude based on the similar vehicle image data; determining the scale distribution of the candidate area using drone prior information and a scale mapping function, dynamically adjusting the size and distribution density of the candidate area according to the flight altitude, determining the range of the region proposal network, and screening the candidate areas in the region proposal network by a density threshold; generating multiple layers of refined features based on a feature pyramid network, adding contextual information to each layer of refined features, adopting a sequential feature refinement strategy, combining the current layer features and drone prior information, and obtaining the target vehicle positioning characterization result.

[0106] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the drone image vehicle detection method based on altitude information provided by the above-mentioned methods, the method comprising: obtaining image data of similar vehicles taken by a drone at different altitudes; determining the bounding box distribution probability of candidate areas corresponding to different categories of vehicles and the vehicle density at a given altitude based on the image data of similar vehicles; determining the scale distribution of the candidate area using drone prior information and a scale mapping function, dynamically adjusting the size and distribution density of the candidate area according to the flight altitude, determining the range of the region proposal network, and screening the candidate areas in the region proposal network by a density threshold; generating multiple layers of refined features based on a feature pyramid network, adding contextual information to each layer of refined features, adopting a sequential feature refinement strategy, combining the current layer features and drone prior information, and obtaining a target vehicle positioning characterization result.

[0107] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting vehicles from drone images based on altitude information, characterized in that: include: Obtain image data of similar vehicles taken by drones at different altitudes; According to the image data of the same type of vehicles, according to the position information and posture information at any height, a probability density function is fitted; according to the position information at any height, a density estimation function is fitted; the probability density function and the density estimation function are added to obtain a priori probability of anchor box distribution, wherein the probability density function is used to adapt to the bounding box distribution probability of different types of vehicles according to the input flight altitude and camera pitch angle, and the density estimation function is used to determine the vehicle density at a given height; Determine the scale distribution of candidate regions by using drone prior information and scale mapping function, dynamically adjust the size and distribution density of candidate regions according to the flight altitude, determine the range of region proposal network, and screen candidate regions in the region proposal network by density threshold; Based on the feature pyramid network, multiple layers of refined features are generated, context information is added to each layer of refined features, and a sequential feature refinement strategy is adopted to obtain the target vehicle positioning characterization result by combining the current layer features and UAV prior information.

2. The method for detecting vehicles using drone images based on altitude information according to claim 1, characterized in that: Obtain image data of similar vehicles taken by drones at different altitudes, including: Acquire the position information and attitude information of the drone at any altitude, collect the images taken by the drone at the altitude, and construct a drone parameter annotation data set based on the position information and attitude information at any altitude and the images taken at any altitude; Obtain the minimum and maximum values ​​of the horizontal coordinates and the vertical coordinates of each vehicle in any image, and determine a vehicle annotation set based on the minimum and maximum values ​​of the horizontal coordinates and the vertical coordinates of each vehicle; The similar vehicle image data is constructed based on the drone parameter annotation data set and the vehicle annotation data set.

3. The method for detecting vehicles using drone images based on altitude information according to claim 1, characterized in that: The scale distribution of candidate regions is determined by using drone prior information and scale mapping function, the size and distribution density of candidate regions are dynamically adjusted according to the flight altitude, the range of the region proposal network is determined, and the candidate regions in the region proposal network are screened by the density threshold, including: A feature extractor is constructed by using a residual network and a feature pyramid network, image features are extracted through multiple convolutional layers, activation functions and pooling layers included in the residual network, and the image features are fused through bottom-up, top-down and lateral connections of the feature pyramid network structure to obtain a feature map; Input the feature map into a region proposal network to obtain a bounding box distribution probability corresponding to the candidate region; Using the height information in the drone prior information and the probability density function to adjust the bounding box distribution probability, using the scale mapping function to perform scale screening on the candidate area to obtain the candidate area after initial screening; Using the height information in the drone prior information and a density estimation function to adjust the vehicle density at the given height, density estimation is performed on the candidate area after the initial screening to obtain the candidate area after the secondary screening; The candidate regions exceeding the density threshold are taken as final candidate regions.

4. The method for detecting vehicles using drone images based on altitude information according to claim 1, characterized in that: Based on the feature pyramid network, multiple layers of refined features are generated, context information is added to each layer of refined features, and a sequential feature refinement strategy is adopted. The current layer features and drone prior information are combined to obtain the target vehicle positioning characterization results, including: The convolutional neural network in the feature pyramid network performs feature extraction to obtain a bottom-up information flow, and the pyramid network in the feature pyramid network performs feature fusion to obtain three-layer features of semantic information at different levels; Using convolutional neural network RoIPooling, extract the three-layer features of the different levels of semantic information in the final candidate area, and input the extracted features into a detection head, wherein the detection head is composed of a convolutional layer branch and a fully connected layer branch, and a feature refinement matrix is ​​obtained by the convolutional layer branch, and the multi-layer refinement features are obtained by connecting the fully connected layer branches; Based on the input value and output value of the current layer and introducing the drone prior information, the multi-layer refined features are cross-layer refined to output the target vehicle positioning characterization result.

5. The method for detecting vehicles using drone images based on altitude information according to claim 4 is characterized in that: The convolutional neural network in the feature pyramid network performs feature extraction to obtain a bottom-up information flow, and the pyramid network in the feature pyramid network performs feature fusion to obtain three layers of features of semantic information at different levels, including: The convolutional neural network performs multiple convolutions and pooling on the image, gradually reduces the image resolution, and obtains feature map information of different scales to form the information flow; The pyramid network upsamples high-level feature maps through a top-down path and lateral connections, gradually fuses feature maps of different resolutions at each layer, and obtains the three-layer features of semantic information at different levels.

6. A drone image vehicle detection system based on altitude information, characterized in that: include: An acquisition module is used to acquire image data of similar vehicles taken by drones at different altitudes; A determination module is used to fit a probability density function according to the image data of the same type of vehicles, according to the position information and posture information at any height; fit a density estimation function according to the position information at any height; add the probability density function and the density estimation function to obtain a priori probability of anchor box distribution, wherein the probability density function is used to adapt to the bounding box distribution probability of different types of vehicles according to the input flight altitude and camera pitch angle, and the density estimation function is used to determine the vehicle density at a given height; A suggestion module is used to determine the scale distribution of candidate regions by using drone prior information and a scale mapping function, dynamically adjust the size and distribution density of candidate regions according to the flight altitude, determine the range of the region suggestion network, and filter the candidate regions in the region suggestion network by a density threshold; The refinement module is used to generate multi-layer refined features based on the feature pyramid network, add contextual information to each layer of refined features, adopt a sequential feature refinement strategy, and combine the current layer features and drone prior information to obtain the target vehicle positioning characterization result.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the drone image vehicle detection method based on altitude information as described in any one of claims 1 to 5 is implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for detecting vehicles using drone images based on altitude information as described in any one of claims 1 to 5 is implemented.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for detecting vehicles using drone images based on altitude information as described in any one of claims 1 to 5 is implemented.