A dynamic target intelligent aiming method
By deploying and pre-training the target detection model on the UAV, planning the search path, and using the target following algorithm, the problem of low UAV aiming efficiency in the existing technology is solved, and efficient target search and multi-UAV collaboration are achieved. aim.
Patent Information
- Application Number
- CN202410902790.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-08
AI Technical Summary
In the existing technology, UAV aiming and tracking efficiency is low, requiring professional knowledge for manual operation, and it is difficult to efficiently search and follow targets when multiple UAVs collaborate.
Pre-deploy the target detection model on the UAV, pre-train the model through intelligent optimization algorithms, plan the search path, and use the target following algorithm for dynamic aiming and aim following, and use multi-UAV collaboration to improve search efficiency and accuracy.
It achieves the efficiency and accuracy of drones in the target detection and aiming process, reduces the need for manual operations, and improves the search efficiency of multi-drone collaboration.
Smart Images

Figure CN118447237B
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of unmanned aerial vehicle technology and target tracking technology, and in particular to a dynamic target intelligent aiming method. Background Art
[0002] With the rapid development of artificial intelligence and drone technology, the research and application of artificial intelligence in the field of drones are becoming more and more extensive. Drones are rapidly being applied to more and more industries due to their wide field of vision, flexible movement, high-altitude operations, and ignoring terrain restrictions, including inspections of agricultural crops and spraying of pesticides, logistics distribution, surveying and inspection of buildings, and entertainment activities such as high-altitude aerial photography. With the continuous development and advancement of technology, drones will appear in new application fields and scenarios, thus providing convenient services for the development of various industries in society.
[0003] In the existing technology, staff mainly manually control drones to aim and track targets (such as in some racing events, staff control drones to track and shoot, or in emergency search and rescue processes, drone search and rescue and target tracking are required). This manual operation method is not only extremely inefficient, but also requires staff to have relevant professional knowledge. Summary of the invention
[0004] The purpose of the present invention is to provide a dynamic target intelligent aiming method, which solves the problems of low efficiency and high requirements in the prior art of aiming and tracking by manually controlling a drone.
[0005] The present invention is achieved through the following technical solutions:
[0006] A dynamic target intelligent aiming method, comprising:
[0007] Pre-deploy the target detection model on the drone, and pre-train the target detection model through an intelligent optimization algorithm to obtain a target detection model with target detection capabilities;
[0008] Determine a target search area and target drones to perform a target aiming mission, and plan a search path for each target drone in the target search area;
[0009] Based on the search path of each target UAV, the flight mission is performed in the target search area, and the target detection is performed by the target detection model with target detection capability carried by the target UAV;
[0010] When the target drone detects the target object, the target following algorithm is used to adjust the lens of the target drone to aim at and follow the target object, thereby completing the intelligent aiming of the dynamic target.
[0011] In a possible implementation, pre-deploying a target detection model on the drone includes: deploying YOLOv3 or YOLOv4 on the drone to complete the deployment of the target detection model.
[0012] In a possible implementation, the target detection model is pre-trained by an intelligent optimization algorithm to obtain a target detection model with target detection capability, including:
[0013] Initializing the model parameters of the target detection model multiple times to obtain multiple parameter codes corresponding to the target detection model; wherein each parameter code includes all parameters to be optimized of the target detection model;
[0014] Obtaining the loss function value corresponding to each parameter encoding, and obtaining the optimal parameter encoding according to the loss function value;
[0015] According to the loss function value and the optimal parameter code, all parameter codes are searched once using an adaptive balanced search strategy to obtain the parameter code after the search; at this time, the optimal parameter code is re-obtained based on the parameter code after the search;
[0016] According to the optimal parameter code, a local coarse search strategy is used to perform a secondary search on the parameter code after the primary search to obtain the parameter code after the secondary search; at this time, the optimal parameter code is re-obtained based on the parameter code after the secondary search;
[0017] A local precise search strategy is used to controllably search the optimal parameter coding, and the optimal parameter coding after the controllable search is obtained;
[0018] Determine the inferior parameter codes based on the population consisting of the parameter codes after the secondary search and the optimal parameter codes after the controllable search;
[0019] For the inferior parameter coding, a global search strategy and a greedy strategy are used to search for the inferior parameter coding to obtain a population after the search;
[0020] Determine whether the current search number is greater than the maximum search number. If so, re-determine the optimal parameter encoding based on the population after the search, and use the optimal parameter encoding as the final model parameter of the target detection model to obtain a target detection model with target detection capability. Otherwise, return to the step of obtaining the loss function value corresponding to each parameter encoding.
[0021] In a possible implementation, according to the loss function value and the optimal parameter encoding, an adaptive balanced search strategy is used to search all parameter encodings once to obtain the parameter encoding after the search, including:
[0022] According to the loss function value, the fitness value corresponding to each parameter encoding is determined as follows:
[0023] ;
[0024] in, f i Indicates i The parameter encoding corresponds to the fitness value, L i Indicates i The corresponding loss function value is encoded by the parameter, ε represents a constant term, i =1,2,…,I, I represents the total number of parameter codes;
[0025] According to the fitness value corresponding to each parameter encoding, the position quality corresponding to each parameter encoding is obtained and the position quality is normalized as follows:
[0026] ;
[0027] ;
[0028] in, f G represents the fitness value corresponding to the optimal parameter encoding, f Pi Indicates i The parameter encoding corresponds to the historical optimal fitness value, γ i Indicates i The degree of positional superiority corresponding to each parameter encoding. The greater the degree of positional superiority, the worse the position of the parameter encoding. Indicates the normalized position quality γ i , γ min Indicates the minimum value of the location quality. γ max Indicates the maximum value of the location quality;
[0029] According to the normalized position quality, the first adaptive search factor and the second adaptive search factor are determined as follows:
[0030] ;
[0031] ;
[0032] in, Indicates t During the search process i The first adaptive search factor corresponding to the parameter encoding, represents the maximum value corresponding to the first adaptive search factor, represents the minimum value corresponding to the first adaptive search factor, T represents the maximum number of searches, Indicates t During the search process i The second adaptive search factor corresponding to the parameter encoding, represents the maximum value corresponding to the second adaptive search factor, represents the minimum value corresponding to the second adaptive search factor;
[0033] According to the first adaptive search factor, the second adaptive search factor and the optimal parameter code, a search is performed on all parameter codes:
[0034] ;
[0035] in, Indicates t During the search process i parameter encoding, Indicates t The optimal parameter encoding during the search process is Indicates updated .
[0036] In a possible implementation, according to the optimal parameter code, a local coarse search strategy is used to perform a secondary search on the parameter code after the primary search, and the parameter code after the secondary search is obtained as follows:
[0037] ;
[0038] in, Indicates n A parameter code after a search. n =1,2,…,I, I represents the total number of parameter codes, Indicates updated , means (0,2 π ), u represents the first helical constant, v represents the second helical constant, e Represents a natural constant.
[0039] In a possible implementation, a local fine search strategy is used to perform a controllable search on the optimal parameter encoding to obtain the optimal parameter encoding after the controllable search, including:
[0040] Randomly determine a first target parameter encoding and a second target parameter encoding for the optimal parameter encoding;
[0041] According to the first target parameter code and the second target parameter code, a new parameter code is generated for the optimal parameter code:
[0042] ;
[0043] in, Indicates t The first target parameter code in the search process corresponds to the d Dimension parameters, d =1,2,…,D, where D represents the total dimension of parameters in parameter encoding. Indicates t The second target parameter code in the search process corresponds to the d Dimension parameters, Indicates the optimal parameter encoding corresponding to d Dimension parameters, Indicates the first d Dimension parameters, Indicates the fitness value corresponding to the first target parameter encoding, Indicates the fitness value corresponding to the second target parameter encoding, Indicates the fitness value corresponding to the optimal parameter encoding;
[0044] Determine whether the fitness corresponding to the new parameter encoding is greater than the fitness value corresponding to the optimal parameter encoding. If so, the new parameter encoding is used to replace the optimal parameter encoding to obtain the optimal parameter encoding after controllable search. Otherwise, the original optimal parameter encoding is retained to obtain the optimal parameter encoding after controllable search.
[0045] In a possible implementation, for the inferior parameter coding, a global search strategy and a greedy strategy are used to search for the inferior parameter coding to obtain a population after the search, including:
[0046] For poor quality parameter encoding, a Lvey flight step is generated for it through the Lvey flight strategy;
[0047] According to the Lvey flight step length, it is randomly determined from other parameter encodings Assist decision-making individuals, and according to The search value corresponding to the inferior parameter encoding obtained by the auxiliary decision-making individuals is:
[0048] ;
[0049] in, Indicates the search value corresponding to the poor quality parameter encoding, Represents a random number between (-2,2), LEVY represents the Lvey flight step length, and LEVYLess than I; INT represents the rounding function, Indicates k Auxiliary decision-making individuals for search, Indicates poor quality parameter encoding, represents the optimal parameter encoding;
[0050] Determine whether the fitness value corresponding to the search value is greater than the fitness value corresponding to the inferior parameter code. If so, use the search value to replace the inferior parameter code in the population to obtain the population after the search. Otherwise, retain the original inferior parameter code in the population to obtain the population after the search.
[0051] In a possible implementation, determining a target search area and a target UAV to perform a target aiming task, and planning a search path for each target UAV in the target search area includes:
[0052] Obtain the target search area and the target drone to be used for the target aiming mission transmitted remotely by the staff;
[0053] When the number of the target UAV is 1, the target search area is vertically divided into multiple scanning areas based on the scanning width of the target UAV. When the width of the remaining area is less than the scanning width, the remaining area is used as a scanning area separately, and the vertical center line corresponding to each scanning area is determined. The vertical center lines of all scanning areas are connected in a serpentine shape to obtain the search path of the target UAV in the target search area;
[0054] When the number of the target UAVs is greater than 1, the target search area is vertically divided into multiple scanning areas based on the scanning width of the target UAVs. When the width of the remaining area is less than the scanning width, the remaining area is used as a separate scanning area, and the vertical center line corresponding to each scanning area is determined;
[0055] Based on the number N of target drones and the number M of scanning areas, an M-dimensional regional planning code is generated; wherein each dimensional element in the regional planning code is any integer from 1 to N, and each dimensional element corresponds to a scanning area, and each integer corresponds to a sub-target search area. When an element in the regional planning code is an integer, it indicates that the scanning area corresponding to the element is divided into the corresponding sub-target search area; the constraint condition is that elements with the same integer must be continuous, thereby forming a continuous sequence corresponding to each integer, so multiple scanning areas corresponding to the continuous sequence constitute a sub-target search area, and each integer corresponds to a unique continuous sequence;
[0056] Based on the above regional planning code generation rules, repeatedly obtain L1 regional planning codes;
[0057] For any regional planning code, the regional planning code is decoded to obtain multiple sub-target search areas; wherein, when the integer corresponding to the sub-target search area in the regional planning code is 0, it means that there is no scanning area in the sub-target search area, and the UAV assigned to the sub-target search area without a scanning area does not perform the search task;
[0058] Let each integer from N+1 to 2N correspond to a target UAV, and generate L2 N-dimensional task execution codes; wherein each dimension parameter in the task execution code is any integer from N+1 to 2N, and each integer appears only once in a task execution code, and each dimensional element corresponds to a sub-target search area. When an element in the task execution code is an integer, it indicates that the sub-scanning area corresponding to the element is divided to the corresponding target UAV;
[0059] For any task execution code, determine its objective function value as follows: the sum of the total time all drones fly to the corresponding sub-target search area and the total flight time all drones fly in the corresponding sub-target search area; the smaller the objective function value, the better;
[0060] Determine whether the current allocation times reaches the maximum allocation times. If so, decode the task execution code corresponding to the minimum objective function value and the regional planning code corresponding to the task execution code, and obtain the search path of each target UAV in the target search area according to the vertical center line corresponding to each scanning area, otherwise enter the iteration step;
[0061] For each L2 task execution code corresponding to the regional planning code, the task execution code is used as the first parent, a genetic algorithm is used to obtain multiple first children, and L2 task execution codes are selected from the first children and the first parent;
[0062] For each regional planning code, the regional planning code is used as the second parent generation, and a genetic algorithm is used to obtain multiple second children. Each second child inherits the task execution code corresponding to its parent generation. The goal is to minimize the total objective function value corresponding to the L1 task execution codes corresponding to the regional planning code, and select L1 regional planning codes from the second children and the second parent generation;
[0063] Returns the current allocation count.
[0064] In a possible implementation, after the target drone detects the target object, a target following algorithm is used to adjust the lens of the target drone to aim at and follow the target object, including:
[0065] When the number of target drones performing the search mission is 1:
[0066] After the target drone detects the target object, the target drone is controlled to fly and aim until the target object is located at the center of its captured image, and the first coordinate corresponding to the target drone and the second coordinate corresponding to the target object are determined at the same time, and the second coordinate is updated in real time. The first coordinate follows the second coordinate equidistantly, and the target drone is controlled to aim and follow.
[0067] When the number of target drones performing the search mission is greater than 1:
[0068] When any target drone detects the target object, when the lens of the target drone that detects the target object is located at the initial position, the target drone is controlled to fly and aim until the target object is located at the center of its captured image, and at the same time, the first coordinate corresponding to the target drone and the second coordinate corresponding to the target object are determined, and the second coordinate is updated in real time, and the first coordinate follows the second coordinate equidistantly to control the target drone to aim and follow; wherein the initial position is used to characterize that the lens of the target drone is located in the front during the flight, and there is a pitch angle, so as to aim at the ground for search;
[0069] At the same time, the target drone that detects the target object shares the coordinates corresponding to the target object with other target drones, and the other target drones adjust their lenses to side shooting, aim, and aim and follow; wherein the side shooting is used to characterize the lens of the target drone, which is located on the side during flight and has a pitch angle to search the ground, and multiple target drones performing the search mission form a regular polygon during flight, and the target object is located at the center point of the regular polygon; when the number of target drones performing the search mission is 2, the target object is located at the center point of the line connecting the two target drones.
[0070] In a possible implementation, the following further includes: each target drone transmits its coordinates and the measured coordinates of the target object to the server in real time.
[0071] The present invention provides a dynamic target intelligent aiming method, which pre-deploys a target detection model through an improved intelligent optimization algorithm. Compared with the prior art, the target detection model can be better trained, so that the target detection model can detect the target more accurately. An algorithm for joint search and aiming and following of multiple UAVs is provided, which can enable multiple UAVs to jointly perform a search task in a certain search area, thereby effectively improving the search efficiency of the UAVs and the accuracy of dynamic aiming. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative work. In the drawings:
[0073] Figure 1 A flow chart of a dynamic target intelligent aiming method provided by an embodiment of the present invention.
[0074] Figure 2 A flowchart of an intelligent optimization algorithm provided by an embodiment of the present invention.
[0075] Figure 3 An example diagram of drone route planning provided by an embodiment of the present invention.
[0076] Figure 4 An example diagram of multiple drone aiming and following provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0077] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0078] like Figure 1 As shown, an embodiment of the present invention provides a dynamic target intelligent aiming method, comprising:
[0079] S101. Pre-deploy a target detection model on the UAV, and pre-train the target detection model through an intelligent optimization algorithm to obtain a target detection model with target detection capability.
[0080] A deep learning model can be used as a target detection model and deployed on a drone, and then the model parameters of the deployed target detection model can be optimized, so that a drone capable of performing target detection can be obtained. In order to optimize the target detection model, algorithms such as ant colony algorithm, particle swarm algorithm, etc. can be used to optimize the target detection model, but these existing optimization algorithms usually have technical problems of being easily trapped in local optimality and slow convergence speed. Therefore, an embodiment of the present invention provides an intelligent optimization algorithm to pre-train the target detection model, thereby solving the technical problems existing in the prior art and improving the training effect of the target detection model.
[0081] S102: Determine a target search area and target UAVs to perform a target aiming task, and plan a search path for each target UAV in the target search area.
[0082] The target search area can be an area selected by the staff on the electronic map, and the target search area is synchronized to the drone, so that the drone can perform the flight mission. The target drone to perform the target aiming mission can be the drone number determined by the staff, so that the route of each drone to perform the search mission in the target search area can be planned based on this, thereby improving the search efficiency of the drone.
[0083] S103, based on the search path of each target UAV, executing the flight mission in the target search area, and performing target detection through a target detection model with target detection capability carried by the target UAV.
[0084] In step S103, a search path is determined for each drone. At this time, the target drone can perform a flight mission according to the corresponding search path. The target drone can extract frames of the collected video stream according to a preset sampling frequency, and identify whether there is a target in each extracted video frame. When there is a target, it can be located according to its own sensor information, thereby realizing target detection. For example: During the flood rescue process, it is necessary to search for trapped people. At this time, the target drone searches according to the search path. When the trapped people are found, the coordinates of the trapped people can be calculated, thereby increasing the rescue speed.
[0085] The sampling frequency corresponds to the search capability of the target drone. If the sampling frequency is too low, the video frames containing the target may be lost, making it impossible for the target drone to search for the target object. If the sampling frequency is too high, it will seriously consume the computing resources of the drone and shorten the drone's flight time. Therefore, the staff can set the sampling frequency according to actual needs.
[0086] S104: After the target drone detects the target object, a target following algorithm is used to adjust the lens of the target drone to aim at the target object and aim and follow the target object, thereby completing intelligent aiming of the dynamic target.
[0087] Generally, when a single-target UAV performs a following task, it only needs to ensure the distance between its own coordinates and the coordinates of the target object. When multiple-target UAVs perform aiming, they need to cooperate with each other. Therefore, the embodiment of the present invention adopts a target following algorithm to achieve single-target tracking of multiple UAVs, thereby achieving effective target tracking and effectively avoiding the situation of losing the target.
[0088] It is worth noting that the target object in the embodiment of the present invention refers to a certain object, person or animal, and is not limited to a fixed category.
[0089] In a possible implementation, pre-deploying a target detection model on the drone includes: deploying YOLOv3 or YOLOv4 on the drone to complete the deployment of the target detection model.
[0090] It is worth noting that YOLOv3 or YOLOv4 is only used as a preferred example of the embodiment of the present invention. Other deep learning models can also be used to build a target detection model to achieve target detection.
[0091] In the prior art, although optimization algorithms such as ant colony algorithm and particle swarm algorithm can realize the training of deep learning models, they are prone to falling into local optimality. Therefore, an embodiment of the present invention provides an intelligent optimization algorithm to pre-train the target detection model.
[0092] like Figure 2 As shown, the target detection model is pre-trained through an intelligent optimization algorithm to obtain a target detection model with target detection capabilities, including:
[0093] S201, initializing the model parameters of the target detection model multiple times to obtain multiple parameter codes corresponding to the target detection model; wherein each parameter code includes all parameters to be optimized of the target detection model;
[0094] In an embodiment of the present invention, all parameters to be optimized of the target detection model may refer to a certain parameter of the target detection model (such as weight or bias), or may refer to a combination of multiple parameters of the target detection model (such as weight and bias). That is to say, the intelligent optimization algorithm provided by the embodiment of the present invention can realize the training of a single parameter or the training of multiple types of parameters.
[0095] Initializing the model parameters of the target detection model can be: randomly initializing the model parameters in each dimension within their upper and lower limits, or initializing the model parameters through a chaotic mapping method.
[0096] S202, obtaining a loss function value corresponding to each parameter code, and obtaining an optimal parameter code according to the loss function value;
[0097] After applying the parameter encoding to the YOLO network, the loss function value corresponding to the YOLO network can be obtained. Obtaining the loss function value corresponding to the YOLO network is a relatively conventional method, and the embodiment of the present invention will not be repeated. The smaller the loss function value, the better, so the parameter encoding with the smallest loss function value can be determined as the optimal parameter encoding.
[0098] S203, searching all parameter codes once using an adaptive balanced search strategy according to the loss function value and the optimal parameter code, and obtaining the parameter code after the search; at this time, re-obtaining the optimal parameter code based on the parameter code after the search;
[0099] The adaptive balanced search strategy can perform global search in the early stage of the algorithm. As time goes by, the global search energy decreases, which improves the ability of local fine search and thus realizes global variable speed search.
[0100] S204, according to the optimal parameter code, a local coarse search strategy is used to perform a secondary search on the parameter code after the primary search to obtain the parameter code after the secondary search; at this time, the optimal parameter code is re-obtained based on the parameter code after the secondary search;
[0101] The local coarse search strategy can make all parameter encodings perform a certain local search, which can effectively improve the convergence ability of the algorithm, but the accuracy is average.
[0102] S205, using a local precise search strategy to perform a controllable search on the optimal parameter coding, and obtaining the optimal parameter coding after the controllable search;
[0103] In order to further improve the convergence accuracy and ensure the convergence effect and speed at the same time, the embodiment of the present invention adopts a local fine search strategy to perform a controllable search for the optimal parameter encoding.
[0104] S206, determining inferior parameter codes based on a population consisting of parameter codes after secondary search and optimal parameter codes after controllable search;
[0105] S207, searching the inferior parameter codes by using a global search strategy and a greedy strategy to obtain a population after the search;
[0106] As the algorithm iterates, the global search capability gradually decreases. In order to retain the global search capability of the algorithm and take into account the convergence speed of the algorithm, the embodiment of the present invention adopts a global search strategy and a greedy strategy to search for inferior parameter encodings.
[0107] S208. Determine whether the current number of searches is greater than the maximum number of searches. If so, re-determine the optimal parameter encoding based on the population after the search, and use the optimal parameter encoding as the final model parameter of the target detection model to obtain a target detection model with target detection capability. Otherwise, return to the step of obtaining the loss function value corresponding to each parameter encoding.
[0108] In a possible implementation, according to the loss function value and the optimal parameter encoding, an adaptive balanced search strategy is used to search all parameter encodings once to obtain the parameter encoding after the search, including:
[0109] According to the loss function value, the fitness value corresponding to each parameter encoding is determined as follows:
[0110] ;
[0111] in, f i Indicates i The parameter encoding corresponds to the fitness value, L i Indicates i The corresponding loss function value is encoded by the parameter, ε represents a constant term, i =1,2,…,I, I represents the total number of parameter codes;
[0112] According to the fitness value corresponding to each parameter encoding, the position quality corresponding to each parameter encoding is obtained and the position quality is normalized as follows:
[0113] ;
[0114] ;
[0115] in, f G represents the fitness value corresponding to the optimal parameter encoding, f Pi Indicates i The parameter encoding corresponds to the historical optimal fitness value, γ i Indicates i The degree of positional superiority corresponding to each parameter encoding. The greater the degree of positional superiority, the worse the position of the parameter encoding. Indicates the normalized position quality γ i , γ min Indicates the minimum value of the location quality. γ max Indicates the maximum value of the location quality;
[0116] According to the normalized position quality, the first adaptive search factor and the second adaptive search factor are determined as follows:
[0117] ;
[0118] ;
[0119] in, Indicates t During the search process i The first adaptive search factor corresponding to the parameter encoding, represents the maximum value corresponding to the first adaptive search factor, represents the minimum value corresponding to the first adaptive search factor, T represents the maximum number of searches, Indicates t During the search process i The second adaptive search factor corresponding to the parameter encoding, represents the maximum value corresponding to the second adaptive search factor, represents the minimum value corresponding to the second adaptive search factor;
[0120] According to the first adaptive search factor, the second adaptive search factor and the optimal parameter code, a search is performed on all parameter codes:
[0121] ;
[0122] in, Indicates t During the search process i parameter encoding, Indicates t The optimal parameter encoding during the search process is Indicates updated .
[0123] Because the greater the degree of goodness of the position corresponding to the parameter coding, the worse the position of the parameter coding, the search range needs to be increased. A larger first adaptive search factor can be used to retain its own position information for searching to avoid falling into the local optimum too early. When the algorithm reaches the later stage, the first adaptive search factor can be gradually reduced and the second adaptive search factor can be increased so that the parameter coding can be searched according to the optimal parameter coding. At this time, the entire algorithm begins to converge, and the search accuracy and search speed will gradually increase.
[0124] In a possible implementation, according to the optimal parameter code, a local coarse search strategy is used to perform a secondary search on the parameter code after the primary search, and the parameter code after the secondary search is obtained as follows:
[0125] ;
[0126] in, Indicates n A parameter code after a search. n =1,2,…,I, I represents the total number of parameter codes, Indicates updated , means (0,2 π ), u represents the first helical constant, v represents the second helical constant, e Represents a natural constant.
[0127] Conventional search algorithms are all irregular searches, which results in a slow convergence speed of the algorithm. Therefore, the embodiment of the present invention provides a local coarse search strategy, which can make the entire population perform a spiral search around the optimal parameter encoding, and can effectively accelerate the convergence speed of the algorithm.
[0128] In a possible implementation, a local fine search strategy is used to perform a controllable search on the optimal parameter encoding to obtain the optimal parameter encoding after the controllable search, including:
[0129] Randomly determine a first target parameter encoding and a second target parameter encoding for the optimal parameter encoding;
[0130] According to the first target parameter code and the second target parameter code, a new parameter code is generated for the optimal parameter code:
[0131] ;
[0132] in, Indicates t The first target parameter code in the search process corresponds to the d Dimension parameters, d =1,2,…,D, where D represents the total dimension of parameters in parameter encoding. Indicates t The second target parameter code in the search process corresponds to the d Dimension parameters, Indicates the optimal parameter encoding corresponding to d Dimension parameters, Indicates the first d Dimension parameters, Indicates the fitness value corresponding to the first target parameter encoding, Indicates the fitness value corresponding to the second target parameter encoding, Indicates the fitness value corresponding to the optimal parameter encoding;
[0133] Determine whether the fitness corresponding to the new parameter encoding is greater than the fitness value corresponding to the optimal parameter encoding. If so, the new parameter encoding is used to replace the optimal parameter encoding to obtain the optimal parameter encoding after controllable search. Otherwise, the original optimal parameter encoding is retained to obtain the optimal parameter encoding after controllable search.
[0134] Although the convergence accuracy of the algorithm can be improved after the local coarse search strategy, it is easy to find the problem of only being able to find a position close to the global optimal position. Therefore, an embodiment of the present invention provides a local fine search strategy, which improves the convergence accuracy by fusing information through multiple parameter encodings.
[0135] Optionally, the first target parameter encoding and the second target parameter encoding may select the parameter encodings with the second smallest and third smallest loss function values, so that the three parameter encodings with the smallest loss function values are subjected to information fusion.
[0136] In a possible implementation, for the inferior parameter coding, a global search strategy and a greedy strategy are used to search for the inferior parameter coding to obtain a population after the search, including:
[0137] For poor quality parameter encoding, a Lvey flight step is generated for it through the Lvey flight strategy;
[0138] According to the Lvey flight step length, it is randomly determined from other parameter encodings Assist decision-making individuals, and according to The search value corresponding to the inferior parameter encoding obtained by the auxiliary decision-making individuals is:
[0139] ;
[0140] in, Indicates the search value corresponding to the poor quality parameter encoding, Represents a random number between (-2,2), LEVY represents the Lvey flight step length, and LEVY Less than I; INT represents the rounding function, Indicates k Auxiliary decision-making individuals for search, Indicates poor quality parameter encoding, represents the optimal parameter encoding;
[0141] Determine whether the fitness value corresponding to the search value is greater than the fitness value corresponding to the inferior parameter code. If so, use the search value to replace the inferior parameter code in the population to obtain the population after the search. Otherwise, retain the original inferior parameter code in the population to obtain the population after the search.
[0142] In order to improve the global search capability of the algorithm in the later stage, the embodiment of the present invention adopts a global search strategy and a greedy strategy to search for poor quality parameter encoding, which will not affect the convergence of the algorithm and can also improve the global search capability of the algorithm.
[0143] It is worth noting that the global search strategy can also be set to a Cauchy mutation strategy, a Gaussian mutation strategy, etc., that is, conventional replacement methods are still within the protection scope of the present invention.
[0144] Optionally, each time the parameter encoding is changed, an out-of-bounds process may be performed on it to ensure that the parameter encoding is valid.
[0145] In a possible implementation, determining a target search area and a target UAV to perform a target aiming task, and planning a search path for each target UAV in the target search area includes:
[0146] Obtain the target search area and the target drone to be used for the target aiming mission transmitted remotely by the staff;
[0147] like Figure 3 As shown, when the number of the target UAV is 1, the target search area is vertically divided into multiple scanning areas based on the scanning width of the target UAV. When the width of the remaining area is less than the scanning width, the remaining area is used as a separate scanning area, and the vertical center line corresponding to each scanning area is determined. The vertical center lines of all scanning areas are connected in a serpentine shape to obtain the search path of the target UAV in the target search area.
[0148] Optionally, after the staff determines the target search area, they can divide the scanning area based on the longest side, rotate the longest side to be vertical, and then divide the scanning area, thereby reducing the division of the scanning area.
[0149] When the vertical center lines of all scanning areas are connected in a serpentine shape, the vertical center lines may be connected in a serpentine shape along the boundary of the target search area.
[0150] It is worth noting that the spacing between any two adjacent vertical center lines should be the scanning width. The remaining area may be irregular, so there is no center line. The vertical center line corresponding to the second-to-last scanning area can be directly used as the basis, and a straight line can be set as the vertical center line of the remaining area with the scanning width as the spacing. The length of the vertical center line of the remaining area should be its maximum vertical length.
[0151] When the number of the target UAVs is greater than 1, the target search area is vertically divided into multiple scanning areas based on the scanning width of the target UAVs. When the width of the remaining area is less than the scanning width, the remaining area is used as a separate scanning area, and the vertical center line corresponding to each scanning area is determined;
[0152] Based on the number N of target drones and the number M of scanning areas, an M-dimensional regional planning code is generated; wherein each dimensional element in the regional planning code is any integer from 1 to N, and each dimensional element corresponds to a scanning area, and each integer corresponds to a sub-target search area. When an element in the regional planning code is an integer, it indicates that the scanning area corresponding to the element is divided into the corresponding sub-target search area; the constraint condition is that elements with the same integer must be continuous, thereby forming a continuous sequence corresponding to each integer, so multiple scanning areas corresponding to the continuous sequence constitute a sub-target search area, and each integer corresponds to a unique continuous sequence;
[0153] For example, if there are N drones, it means that the target search area needs to be divided into N sub-target search areas, and the sub-target search areas A1 to AN can be represented by 1 to N respectively. Assuming that there are M scanning areas, the area planning code [B1, B2, …, BM] can be formed, and B1, B2, …, BM are any integers from 1 to N. When B1 is 1, it can be said that the scanning area B1 is divided into the first sub-target search area.
[0154] The following example illustrates the constraints: if there are 10 scanning areas and 3 sub-target search areas are required, then the regional planning code [B1, B2, ..., B10] can be formed. When B1 takes the value 1, B2 can continue to take the value 1 or other values. If it takes other values, then B3-B10 is no longer allowed to take the value 1. Using this algorithm, the sub-target search area can be randomly divided, so as to match the drone allocation and achieve the best search plan.
[0155] Based on the above regional planning code generation rules, repeatedly obtain L1 regional planning codes;
[0156] For any regional planning code, the regional planning code is decoded to obtain multiple sub-target search areas; wherein, when the integer corresponding to the sub-target search area in the regional planning code is 0, it means that there is no scanning area in the sub-target search area, and the UAV assigned to the sub-target search area without a scanning area does not perform the search task;
[0157] Let each integer from N+1 to 2N correspond to a target UAV, and generate L2 N-dimensional task execution codes; wherein each dimension parameter in the task execution code is any integer from N+1 to 2N, and each integer appears only once in a task execution code, and each dimensional element corresponds to a sub-target search area. When an element in the task execution code is an integer, it indicates that the sub-scanning area corresponding to the element is divided to the corresponding target UAV;
[0158] For example, when there are three sub-target search areas C1 to C3, 4-6 can be used to represent the three target humans and machines respectively. At this time, a task execution code [C1, C2, C3] can be generated, where C1, C2, C3 are different from each other and are an integer from 4-6.
[0159] Through the regional planning code and the regional planning code to form a two-layer search model, whether the sub-target search area is planned too much and the allocation of drones is optimized to find the best allocation solution. For example, after initially determining 6 sub-target search areas, it is found that planning 5 sub-target search areas is faster (that is, when a certain flying drone is far away, it may take a long time to fly over to complete the task, and it can be handed over to a drone that is closer), then there is no scanning area in the sub-target search area.
[0160] For any task execution code, determine its objective function value as follows: the sum of the total time all drones fly to the corresponding sub-target search area and the total flight time all drones fly in the corresponding sub-target search area; the smaller the objective function value, the better;
[0161] The time it takes for a drone to fly to the corresponding sub-target search area refers to the time it takes to fly to the nearest endpoint of the vertical centerline of the head scanning area or the tail scanning area in the sub-target search area, which facilitates subsequent path planning.
[0162] Determine whether the current allocation times reaches the maximum allocation times. If so, decode the task execution code corresponding to the minimum objective function value and the regional planning code corresponding to the task execution code, and obtain the search path of each target UAV in the target search area according to the vertical center line corresponding to each scanning area, otherwise enter the iteration step;
[0163] Obtaining the search path of each target UAV in the target search area according to the vertical center line corresponding to each scanning area may include: taking the nearest endpoint of the vertical center line of the head scanning area or the tail scanning area in the sub-target search area corresponding to the target UAV as the starting point, and connecting the vertical center lines of all scanning areas in the sub-target search area in a serpentine shape, so as to obtain the search path of each target UAV in the target search area.
[0164] For each L2 task execution code corresponding to the regional planning code, the task execution code is used as the first parent, a genetic algorithm is used to obtain multiple first children, and L2 task execution codes are selected from the first children and the first parent;
[0165] For example: when a certain area planning code is [B1, B2, ..., B10], then the L2 task execution codes corresponding to [B1, B2, ..., B10] can be used as the first parent generation.
[0166] For each regional planning code, the regional planning code is used as the second parent generation, and a genetic algorithm is used to obtain multiple second children. Each second child inherits the task execution code corresponding to its parent generation. The goal is to minimize the total objective function value corresponding to the L1 task execution codes corresponding to the regional planning code, and select L1 regional planning codes from the second children and the second parent generation;
[0167] Returns the current allocation count.
[0168] The goal of the embodiment of the present invention is to find the optimal sub-target search area allocation scheme and the association scheme between the drone and the sub-target search area, which can not only realize rapid path planning, but also assist staff in decision optimization. Compared with the existing technology, it can greatly improve the search efficiency of the drone for the target object.
[0169] In a possible implementation, after the target drone detects the target object, a target following algorithm is used to adjust the lens of the target drone to aim at and follow the target object, including:
[0170] When the number of target drones performing the search mission is 1:
[0171] After the target UAV detects the target object, when the target UAV lens is in the initial position, the target UAV is controlled to fly and aim until the target object is located at the center of its captured image. At the same time, the first coordinate corresponding to the target UAV and the second coordinate corresponding to the target object are determined, and the second coordinate is updated in real time. The first coordinate follows the second coordinate equidistantly to control the target UAV to aim and follow.
[0172] It is worth noting that when the target drone follows the target object alone, it should ensure that the target object is within a certain range of its lens shooting screen (such as a target detection frame based on the center point of the shooting screen, and adjusting the flight attitude in real time to ensure that the target object is always within the detection frame).
[0173] When the number of target drones performing the search mission is greater than 1:
[0174] When any target drone detects the target object, when the lens of the target drone that detects the target object is located at the initial position, the target drone is controlled to fly and aim until the target object is located at the center of its captured image, and at the same time, the first coordinate corresponding to the target drone and the second coordinate corresponding to the target object are determined, and the second coordinate is updated in real time, and the first coordinate follows the second coordinate equidistantly to control the target drone to aim and follow; wherein the initial position is used to characterize that the lens of the target drone is located in the front during the flight, and there is a pitch angle, so as to aim at the ground for search;
[0175] At the same time, the target drone that detects the target object shares the coordinates corresponding to the target object with other target drones, and the other target drones adjust their lenses to side shooting, aim, and aim and follow; wherein the side shooting is used to characterize the lens of the target drone, which is located on the side during flight and has a pitch angle to search the ground, and multiple target drones performing the search mission form a regular polygon during flight, and the target object is located at the center point of the regular polygon; when the number of target drones performing the search mission is 2, the target object is located at the center point of the line connecting the two target drones.
[0176] like Figure 4 As shown, when the number of target drones is 3, the first target drone F1 can be aimed and followed with the lens at the initial position, and the second target drone F2 and the third target drone F3 can be shot from the side. The three target drones can achieve a larger range, which is suitable for fast-moving target objects and can effectively avoid the problem of losing track.
[0177] Optionally, during the emergency search and rescue process, if high-speed search targets are required, each target drone can be searched individually. In this case, each target drone only searches, aims, and aims and follows in the corresponding sub-target area.
[0178] In a possible implementation, the following further includes: each target drone transmits its coordinates and the measured coordinates of the target object to the server in real time.
[0179] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The solutions in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and interpreted scripting language JavaScript, etc.
[0180] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0181] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0182] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0183] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0184] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A dynamic target intelligent aiming method, characterized in that: include: Pre-deploy the target detection model on the drone, and pre-train the target detection model through an intelligent optimization algorithm to obtain a target detection model with target detection capabilities; Determine a target search area and target drones to perform a target aiming mission, and plan a search path for each target drone in the target search area; Based on the search path of each target UAV, the flight mission is performed in the target search area, and the target detection is performed by the target detection model with target detection capability carried by the target UAV; When the target drone detects the target object, the target following algorithm is used to adjust the lens of the target drone to aim at the target object and aim and follow it, thus completing the intelligent aiming of the dynamic target; The target detection model is pre-trained through an intelligent optimization algorithm to obtain a target detection model with target detection capabilities, including: Initializing the model parameters of the target detection model multiple times to obtain multiple parameter codes corresponding to the target detection model; wherein each parameter code includes all parameters to be optimized of the target detection model; Obtaining the loss function value corresponding to each parameter encoding, and obtaining the optimal parameter encoding according to the loss function value; According to the loss function value and the optimal parameter code, all parameter codes are searched once using an adaptive balanced search strategy to obtain the parameter code after the search; at this time, the optimal parameter code is re-obtained based on the parameter code after the search; According to the optimal parameter code, a local coarse search strategy is used to perform a secondary search on the parameter code after the primary search to obtain the parameter code after the secondary search; at this time, the optimal parameter code is re-obtained based on the parameter code after the secondary search; A local precise search strategy is used to controllably search the optimal parameter coding, and the optimal parameter coding after the controllable search is obtained; Determine the inferior parameter codes based on the population consisting of the parameter codes after the secondary search and the optimal parameter codes after the controllable search; For the inferior parameter coding, a global search strategy and a greedy strategy are used to search for the inferior parameter coding to obtain a population after the search; Determine whether the current search number is greater than the maximum search number. If so, re-determine the optimal parameter encoding based on the population after the search, and use the optimal parameter encoding as the final model parameter of the target detection model to obtain a target detection model with target detection capability. Otherwise, return to the step of obtaining the loss function value corresponding to each parameter encoding.
2. The dynamic target intelligent aiming method according to claim 1, characterized in that: Pre-deploy the target detection model on the drone, including: deploying YOLOv3 or YOLOv4 on the drone to complete the deployment of the target detection model.
3. The dynamic target intelligent aiming method according to claim 1, characterized in that: According to the loss function value and the optimal parameter encoding, an adaptive balanced search strategy is used to search all parameter encodings once to obtain the parameter encoding after the search, including: According to the loss function value, the fitness value corresponding to each parameter encoding is determined as follows: ; in, f i Indicates i The parameter encoding corresponds to the fitness value, L i Indicates i The corresponding loss function value is encoded by the parameter, ε represents a constant term, i =1,2,…,I, I represents the total number of parameter codes; According to the fitness value corresponding to each parameter encoding, the position quality corresponding to each parameter encoding is obtained and the position quality is normalized as follows: ; ; in, f G represents the fitness value corresponding to the optimal parameter encoding, f Pi Indicates i The parameter encoding corresponds to the historical optimal fitness value, γ i Indicates i The degree of positional superiority corresponding to each parameter encoding. The greater the degree of positional superiority, the worse the position of the parameter encoding. Indicates the normalized position quality γ i , γ min Indicates the minimum value of the location quality. γ max Indicates the maximum value of the location quality; According to the normalized position quality, the first adaptive search factor and the second adaptive search factor are determined as follows: ; ; in, Indicates t During the search process i The first adaptive search factor corresponding to the parameter encoding, represents the maximum value corresponding to the first adaptive search factor, represents the minimum value corresponding to the first adaptive search factor, T represents the maximum number of searches, Indicates t During the search process i The second adaptive search factor corresponding to the parameter encoding, represents the maximum value corresponding to the second adaptive search factor, represents the minimum value corresponding to the second adaptive search factor; According to the first adaptive search factor, the second adaptive search factor and the optimal parameter code, a search is performed on all parameter codes: ; in, Indicates t During the search process i parameter encoding, Indicates t The optimal parameter encoding during the search process is Indicates updated .
4. The dynamic target intelligent aiming method according to claim 3 is characterized in that: According to the optimal parameter code, a local coarse search strategy is used to perform a secondary search on the parameter code after the primary search, and the parameter code after the secondary search is obtained as follows: ; in, Indicates n A parameter code after a search. n =1,2,…,I, I represents the total number of parameter codes, Indicates updated , means (0,2 π ), u represents the first helical constant, v represents the second helical constant, e Represents a natural constant.
5. The dynamic target intelligent aiming method according to claim 4 is characterized in that: The local precise search strategy is used to conduct a controllable search for the optimal parameter encoding, and the optimal parameter encoding after the controllable search is obtained, including: Randomly determine a first target parameter encoding and a second target parameter encoding for the optimal parameter encoding; According to the first target parameter code and the second target parameter code, a new parameter code is generated for the optimal parameter code: ; in, Indicates t The first target parameter code in the search process corresponds to the d Dimension parameters, d =1,2,…,D, where D represents the total dimension of parameters in parameter encoding. Indicates t The second target parameter code in the search process corresponds to the d Dimension parameters, Indicates the optimal parameter encoding corresponding to d Dimension parameters, Indicates the first d Dimension parameters, Indicates the fitness value corresponding to the first target parameter encoding, Indicates the fitness value corresponding to the second target parameter encoding, Indicates the fitness value corresponding to the optimal parameter encoding; Determine whether the fitness corresponding to the new parameter encoding is greater than the fitness value corresponding to the optimal parameter encoding. If so, the new parameter encoding is used to replace the optimal parameter encoding to obtain the optimal parameter encoding after controllable search. Otherwise, the original optimal parameter encoding is retained to obtain the optimal parameter encoding after controllable search.
6. The dynamic target intelligent aiming method according to claim 5, characterized in that: For the inferior parameter coding, a global search strategy and a greedy strategy are used to search for the inferior parameter coding, and the population after the search is obtained, including: For poor quality parameter encoding, a Lvey flight step is generated for it through the Lvey flight strategy; According to the Lvey flight step length, it is randomly determined from other parameter encodings Assist decision-making individuals, and according to The search value corresponding to the inferior parameter encoding obtained by the auxiliary decision-making individuals is: ; in, Indicates the search value corresponding to the poor quality parameter encoding, Represents a random number between (-2,2), LEVY represents the Lvey flight step length, and LEVY Less than I; INT represents the rounding function, Indicates k Auxiliary decision-making individuals for search, Indicates poor quality parameter encoding, represents the optimal parameter encoding; Determine whether the fitness value corresponding to the search value is greater than the fitness value corresponding to the inferior parameter code. If so, use the search value to replace the inferior parameter code in the population to obtain the population after the search. Otherwise, retain the original inferior parameter code in the population to obtain the population after the search.
7. The dynamic target intelligent aiming method according to claim 1, characterized in that: Determining a target search area and a target UAV to perform a target aiming task, and planning a search path for each target UAV in the target search area, including: Obtain the target search area and the target drone to be used for the target aiming mission transmitted remotely by the staff; When the number of the target UAV is 1, the target search area is vertically divided into multiple scanning areas based on the scanning width of the target UAV. When the width of the remaining area is less than the scanning width, the remaining area is used as a scanning area separately, and the vertical center line corresponding to each scanning area is determined. The vertical center lines of all scanning areas are connected in a serpentine shape to obtain the search path of the target UAV in the target search area; When the number of the target UAVs is greater than 1, the target search area is vertically divided into multiple scanning areas based on the scanning width of the target UAVs. When the width of the remaining area is less than the scanning width, the remaining area is used as a separate scanning area, and the vertical center line corresponding to each scanning area is determined; Based on the number N of target drones and the number M of scanning areas, an M-dimensional regional planning code is generated; wherein each dimensional element in the regional planning code is any integer from 1 to N, and each dimensional element corresponds to a scanning area, and each integer corresponds to a sub-target search area. When an element in the regional planning code is an integer, it indicates that the scanning area corresponding to the element is divided into the corresponding sub-target search area; the constraint condition is that elements with the same integer must be continuous, thereby forming a continuous sequence corresponding to each integer, so multiple scanning areas corresponding to the continuous sequence constitute a sub-target search area, and each integer corresponds to a unique continuous sequence; Based on the above regional planning code generation rules, repeatedly obtain L1 regional planning codes; For any regional planning code, the regional planning code is decoded to obtain multiple sub-target search areas; wherein, when the integer corresponding to the sub-target search area in the regional planning code is 0, it means that there is no scanning area in the sub-target search area, and the UAV assigned to the sub-target search area without a scanning area does not perform the search task; Let each integer from N+1 to 2N correspond to a target UAV, and generate L2 N-dimensional task execution codes; wherein each dimension parameter in the task execution code is any integer from N+1 to 2N, and each integer appears only once in a task execution code, and each dimensional element corresponds to a sub-target search area. When an element in the task execution code is an integer, it indicates that the sub-scanning area corresponding to the element is divided to the corresponding target UAV; For any task execution code, determine its objective function value as follows: the sum of the total time all drones fly to the corresponding sub-target search area and the total flight time all drones fly in the corresponding sub-target search area; the smaller the objective function value, the better; Determine whether the current allocation times reaches the maximum allocation times. If so, decode the task execution code corresponding to the minimum objective function value and the regional planning code corresponding to the task execution code, and obtain the search path of each target UAV in the target search area according to the vertical center line corresponding to each scanning area, otherwise enter the iteration step; For each L2 task execution code corresponding to the regional planning code, the task execution code is used as the first parent, a genetic algorithm is used to obtain multiple first children, and L2 task execution codes are selected from the first children and the first parent; For each regional planning code, the regional planning code is used as the second parent generation, and a genetic algorithm is used to obtain multiple second children. Each second child inherits the task execution code corresponding to its parent generation. The goal is to minimize the total objective function value corresponding to the L1 task execution codes corresponding to the regional planning code, and select L1 regional planning codes from the second children and the second parent generation; Returns the current allocation count.
8. The dynamic target intelligent aiming method according to claim 7, characterized in that: When the target drone detects the target object, the target following algorithm is used to adjust the lens of the target drone to aim at and follow the target object, including: When the number of target drones performing the search mission is 1: After the target drone detects the target object, the target drone is controlled to fly and aim until the target object is located at the center of its captured image, and the first coordinate corresponding to the target drone and the second coordinate corresponding to the target object are determined at the same time, and the second coordinate is updated in real time. The first coordinate follows the second coordinate equidistantly, and the target drone is controlled to aim and follow. When the number of target drones performing the search mission is greater than 1: When any target drone detects the target object, when the lens of the target drone that detects the target object is located at the initial position, the target drone is controlled to fly and aim until the target object is located at the center of its captured image, and at the same time, the first coordinate corresponding to the target drone and the second coordinate corresponding to the target object are determined, and the second coordinate is updated in real time, and the first coordinate follows the second coordinate equidistantly to control the target drone to aim and follow; wherein the initial position is used to characterize that the lens of the target drone is located in the front during the flight, and there is a pitch angle, so as to aim at the ground for search; At the same time, the target drone that detects the target object shares the coordinates corresponding to the target object with other target drones, and the other target drones adjust their lenses to side shooting, aim, and aim and follow; wherein the side shooting is used to characterize the lens of the target drone, which is located on the side during flight and has a pitch angle to search the ground, and multiple target drones performing the search mission form a regular polygon during flight, and the target object is located at the center point of the regular polygon; when the number of target drones performing the search mission is 2, the target object is located at the center point of the line connecting the two target drones.
9. The dynamic target intelligent aiming method according to claim 8, characterized in that: Also includes: Each target drone transmits its coordinates and the measured target object coordinates to the server in real time.
Citation Information
Patent Citations
Unmanned aerial vehicle flight path planning method based on IB-ABC algorithm
CN112484732A
Target identification method based on unmanned aerial vehicle
CN117292283A
Sea surface small target anomaly detection method and system
CN117665734A
Aiming method of unmanned aerial vehicle
CN117830883A
Drone digital locker builder
US11455897B1
