A method, device and control system for generating key part samples of unmanned machines

By generating a 3D mesh model of the UAV and rendering images from multiple perspectives, and automatically annotating key parts of the UAV, the problem of low accuracy of sample images in existing technologies is solved, and efficient and accurate UAV sample generation is achieved.

CN123160747APending Publication Date: 2026-11-24HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611673330.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies generate drone sample images with low accuracy, which cannot meet the stable recognition requirements of different drone models and attitudes. Furthermore, existing annotation methods are inefficient and easily affected by human factors.

Method used

By acquiring reference images of the UAV and converting them into 3D meshes, and using preset ambient lighting to render 2D images from multiple virtual perspectives, component instance segmentation and automatic annotation of 3D key points are performed. Combining the geometric properties of the 3D mesh and multi-view information, highly accurate samples of key parts of the UAV are generated.

Benefits of technology

It achieves high accuracy and annotation efficiency for UAV sample images, avoids the need for semantic bias and manual verification, adapts to unified annotation in various complex scenarios, and ensures the stability and accuracy of the samples.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160747A_ABST
    Figure CN123160747A_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, and control system for generating samples of key parts of a UAV, belonging to the fields of computer vision and image sample generation technology. The method is based on a 3D mesh model of the UAV and clarifies component anchoring rules on a generated mesh without labeled key points through component connection relationships, eliminating the need for pre-labeled 2D images. Then, multiple virtual viewpoints are used to select points from multiple angles, ensuring that the same label always corresponds to the same physical location on the 3D mesh. This fundamentally avoids semantic bias caused by random point selection based solely on the global coordinate system and eliminates the misalignment problem of the same label corresponding to different component regions under different postures and viewpoints. Finally, image samples are generated in batches by changing rendering conditions. The generated samples maintain complete semantic consistency in labeling even in various complex scenarios, eliminating the need for extensive manual secondary verification of labeling results. The final UAV key part sample images have high accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of computer vision and image sample generation technology, and more specifically, relates to a method, apparatus and control system for generating samples of key parts of a UAV. Background Technology

[0002] Unmanned aerial vehicle (UAV) target and key component recognition technology is a core foundational capability in the field of low-altitude intelligent sensing, widely supporting precise operations in scenarios such as UAV inspection, security monitoring, and emergency search and rescue. The prerequisite for the practical application of this technology is acquiring a large number of training image samples that simultaneously include target detection boxes and key component annotations, ensuring that the model can stably recognize UAV targets of different models and attitudes.

[0003] Currently, the mainstream methods for obtaining such labeled samples in the industry fall into two categories. One is to complete the actual shooting and collection through on-site aerial photography. This method is directly limited by multiple factors such as the number of available models on site, the range of site space, the coverage of shooting angle, and real-time lighting conditions, making it difficult to quickly cover the sample needs of the entire scene. The other method is to manually draw the target box and label the key points one by one after obtaining the actual shooting images. The entire process requires a lot of repetitive manual operations, resulting in low labeling efficiency and the labeling standards are easily affected by human factors and may deviate.

[0004] To address the efficiency bottlenecks of real-world image capture and manual annotation, existing technologies have begun to introduce 3D model generation schemes. These schemes construct 3D digital models of drones and automatically render virtual images under different viewpoints and lighting conditions to supplement the total number of training samples. However, the virtual samples generated by these schemes often deviate from the actual drone outlines in terms of bounding box localization, and the corresponding positions of key points do not match the standards of real-world annotation. This directly leads to low accuracy in the drone sample images generated by existing technologies, making it unreliable for subsequent recognition model training. Summary of the Invention

[0005] In view of the above-mentioned defects or improvement needs of the prior art, this application provides a method, apparatus and control system for generating samples of key parts of a UAV, which is used to solve the technical problem of low accuracy of UAV sample images generated by the prior art.

[0006] To achieve the above objectives, according to one aspect of this application, a method for generating samples of key parts of an unmanned aerial vehicle (UAV) is provided, comprising: S1: Acquire a reference image of the target UAV and convert the reference image into a three-dimensional mesh; S2: Render the three-dimensional mesh from multiple virtual perspectives using preset ambient lighting to obtain two-dimensional rendering images of each virtual perspective; perform instance segmentation on the drone components in each two-dimensional rendering image, then map the segmentation results to the three-dimensional mesh, and fuse the segmentation results of the same component instance in different virtual perspectives within the three-dimensional mesh to obtain a set of triangular faces corresponding to each component instance. S3: Determine the connection region between each component instance and other component instances from the triangular face set of each component instance; divide the surface of the component instance into multiple candidate regions according to the distance from each position on the surface of the component instance to its connection region; set multiple three-dimensional candidate points in each candidate region of each component instance, and project them onto the two-dimensional rendering map to obtain their respective projection positions; select the three-dimensional key points from all three-dimensional candidate points whose projection position depth and surface normal both satisfy the preset relationship; S4: Project the three-dimensional key points onto the sample image of the target UAV to obtain two-dimensional key point coordinates. Save the visibility information of the two-dimensional key point coordinates, the sample image and the target box corresponding to the coverage area of ​​the target UAV to obtain key part samples. The sample image is obtained by fusing the foreground image obtained by relighting the three-dimensional mesh with the ambient light in the current real-shot background with the current real-shot background.

[0007] Furthermore, in step S3, the surface of the component instance is divided into multiple candidate regions according to the distance from each position on the surface of the component instance to its connecting region, including: A1: Calculate the shortest distance from each position on the surface of the component instance to the connection area; then take the maximum value among all the shortest distances as the maximum distance, and take the ratio of the shortest distance to the maximum distance as the relative distance of that position; A2: Take the area on the surface of the component instance whose relative distance is lower than the first threshold as the connection type candidate area; take the area on the surface of the component instance whose relative distance is higher than the second threshold as the far-end type candidate area; A3: Select a portion of the region outside the connected candidate region and the remote candidate region on the surface of the component instance as the central candidate region.

[0008] Furthermore, A3 includes: The surface areas of component instances are accumulated from small to large relative distances. When the accumulated surface area of ​​component instances reaches half of the surface area of ​​component instances, the area within a preset range near the relative distance that does not belong to the connected candidate area or the remote candidate area is taken as the central candidate area.

[0009] Furthermore, the step of selecting 3D key points from all 3D candidate points whose projection positions' depth and surface normal both satisfy a preset relationship includes: B1: Compare the depth of each 3D candidate point in the virtual view with the depth of the projected position. If the difference between the two depths is within a preset threshold, the 3D candidate point is considered visible. B2: For a visible 3D candidate point, when the depth change and surface normal change of the projection position meet the preset conditions, it is considered that the local geometric features of the 3D candidate point are prominent, and then a set of virtual viewpoints with consecutive adjacent viewing directions are determined as the stable viewing field of the 3D candidate point. B3: Within the same candidate region, the 3D candidate points corresponding to the maximum stable viewing field of view are taken as 3D key points.

[0010] Furthermore, B3 includes: a view index for when there is a unique three-dimensional candidate point within the same candidate region. When the maximum value is reached, it is used as a 3D key point; when multiple 3D candidate points exist... When it is at its maximum, determine The largest view index of multiple 3D candidate points When there exists a unique If the largest value is used, its corresponding 3D candidate point is taken as the 3D key point. If multiple 3D candidate points exist... When it is at its maximum, determine The geometric index of the largest number of 3D candidate points , will the smallest The corresponding 3D candidate points are used as 3D key points; in, The number of virtual viewpoints contained in the stable observation field accounts for the total. The proportion of virtual perspectives This represents the proportion of the available viewpoints for that 3D candidate point; To stabilize the changes in local geometric feature values ​​within the observation field.

[0011] Furthermore, the depth change and surface normal change at the projection position satisfy preset conditions, including: depth change amount. and surface normal variation Corresponding indicators Greater than the set threshold; ; Where u represents the projection position. This represents the difference between adjacent pixels in the horizontal and vertical directions, and the depth change. , Surface normal variation , ; and Calculate the square root of the sum of squares of the differences in depth and surface normal components, dividing the depth by the parameter first. Perform normalization. To prevent positive numbers with a denominator of 0, Represents the set of pixels from which differences can be computed. For the first Depth map corresponding to each virtual viewpoint In pixels Depth value at that location, For the first Surface normal map corresponding to each virtual viewpoint In pixels The unit surface normal vector at that location.

[0012] Furthermore, the fusion of segmentation results belonging to the same component instance from different virtual perspectives within the 3D mesh includes: statistically analyzing the category pixel ratio of each triangular facet. The component category with the largest average proportion As a component category of this triangular face; merge the triangular faces of the same component category; in, Total number of pixels For pixels of category c, This is a set of virtual viewpoint numbers with corresponding pixels. This indicates that the item corresponding to the maximum value is selected.

[0013] According to another aspect of this application, an apparatus for generating samples of key parts of a drone is provided, comprising: The conversion module is used to acquire a reference image of the target UAV and convert the reference image into a three-dimensional mesh. The fusion module is used to render the three-dimensional mesh from multiple virtual perspectives using preset ambient lighting to obtain two-dimensional rendering images of each virtual perspective; to perform instance segmentation on the drone components in each two-dimensional rendering image, and then map the segmentation results to the three-dimensional mesh; and to fuse the segmentation results of the same component instance in different virtual perspectives within the three-dimensional mesh to obtain a set of triangular faces corresponding to each component instance. The selection area is used to determine the connection area between each component instance and other component instances from the triangular facet set of each component instance; the surface of the component instance is divided into multiple candidate areas according to the distance from each position on the surface of the component instance to its connection area; multiple three-dimensional candidate points are set in each candidate area of ​​each component instance and projected onto the two-dimensional rendering map to obtain their respective projection positions; from all three-dimensional candidate points, those whose projection position depth and surface normal both satisfy a preset relationship are selected as three-dimensional key points; The storage module is used to project the three-dimensional key points onto the sample image of the target UAV to obtain two-dimensional key point coordinates, and associate and save the visibility information of the two-dimensional key point coordinates, the sample image and the target bounding box corresponding to the coverage area of ​​the target UAV to obtain key part samples; the sample image is obtained by fusing the foreground image obtained by relighting the three-dimensional mesh using the ambient light in the current real-shot background with the current real-shot background.

[0014] According to another aspect of this application, a control system for an unmanned aerial vehicle (UAV) is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method for generating samples of key parts of the UAV.

[0015] According to another aspect of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for generating samples of key parts of a UAV.

[0016] Overall, compared with the prior art, the above-described technical solutions conceived in this application can achieve the following beneficial effects: (1) This application provides a method for generating samples of key parts of a UAV. First, based on the UAV's 3D mesh model, the anchoring rules of the parts are defined on the generated mesh without key points being labeled through the connection relationship of the parts. The location definition of key points can be completed in 3D space without relying on pre-labeled 2D images. On this basis, multiple virtual perspectives are used to complete multi-angle point selection, ensuring that the same label always corresponds to the same physical location on the 3D mesh. This avoids semantic deviation caused by random point selection based solely on the global coordinate system and eliminates the misalignment problem of the same label corresponding to different part regions under different postures and perspectives. Finally, image samples are generated in batches by changing the rendering conditions. The generated samples can still maintain complete semantic consistency of the labeling in various complex scenarios, without the need for a large amount of subsequent manual secondary verification of the labeling results. The final UAV key part sample images have high accuracy.

[0017] (2) In this scheme, the region on the surface of the component instance with a relative distance lower than the first threshold is regarded as the connection type candidate region; the region on the surface of the component instance with a relative distance higher than the second threshold is regarded as the remote type candidate region. This design takes into account that the connection region, remote region and central region between the components of the UAV do not have clear semantic boundaries on the three-dimensional mesh. The advantage is that there is no need to perform fine semantic annotation on a large number of UAV components in advance. The division of the three types of candidate regions can be automatically completed by simply calculating the distance ratio. The division result is not affected by the size and model difference of the components and always maintains a unified semantic judgment standard.

[0018] (3) The design method of the central candidate region in this scheme takes into account that when the central region is directly divided by a fixed relative distance threshold, the proportion of the central region is prone to be too large for UAV components of different shapes and sizes, making it difficult to adapt to the diverse geometric shapes of UAV components. The advantage is that by using the half-equal part of the component surface area as the core judgment benchmark for the central region, it automatically adapts to the contour features of different components and avoids the situation of imbalance in the proportion of the central region.

[0019] (4) In this scheme, the 3D candidate points corresponding to the largest stable viewing field of view within the same candidate area are used as 3D key points. The advantage is that the prominence of local geometric features is determined by combining depth changes and surface normal changes. Then, the stable viewing field of view is statistically analyzed through consecutive adjacent virtual viewpoints. The selection logic is entirely based on the geometric properties of the 3D model itself, without the need for manual verification of the observability of each point. This avoids the problem of key points being heavily occluded and annotations becoming invalid when generating samples in the future, thus further ensuring the accuracy and stability of sample annotations in the entire scene.

[0020] (5) This solution considers that when selecting 3D key points using only a single-dimensional indicator, it is easy for multiple candidate points to have the same indicator, making it impossible to uniquely determine the optimal point location. The selection logic on the 3D mesh of different UAV models is prone to interruption, making it impossible to form an automated full-process point selection mechanism. The advantage is that it establishes a three-layer progressive priority judgment system of "view field indicator - perspective indicator - geometric indicator", which narrows down the candidate point range layer by layer. No manual intervention is required throughout the process, and all judgment rules are fully quantified and reproducible.

[0021] (6) In this scheme, the depth change and the surface normal change are normalized by dividing them by the median value in the neighborhood window. At the same time, a minimum value ε is introduced to avoid the calculation anomaly of zero denominator. Finally, the comprehensive judgment index is obtained by summing the two normalized indices. The judgment results are not affected by local mesh accuracy differences or component size differences, and are extremely robust.

[0022] (7) This scheme first calculates the pixel ratio of each triangular face corresponding to the multi-view category, determines the final component category of the triangular face by multi-view average voting, and then connects and merges triangular faces of the same category. The entire process does not require manual face-by-face annotation, and the judgment result is not affected by single-view sampling error. It realizes the automatic and accurate division of the component regions of the UAV on the 3D mesh, and the obtained component region boundaries are continuous and semantically unified. Attached Figure Description

[0023] Figure 1 This is a flowchart of a method for generating samples of key parts of a drone according to an embodiment of this application.

[0024] Figure 2This is a flowchart illustrating the determination of connection regions and candidate regions according to an embodiment of this application.

[0025] Figure 3 This is a flowchart of three-dimensional candidate point inspection and three-dimensional key point selection provided in an embodiment of this application.

[0026] Figure 4 This is a flowchart illustrating the generation of two-dimensional key point coordinates and self-occlusion judgment results provided in an embodiment of this application. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. Furthermore, the technical features involved in the various embodiments described below can be combined with each other as long as they do not conflict with each other.

[0028] Example 1 This embodiment provides a method for generating samples of key parts of a drone, such as... Figure 1 As shown, it includes: S1-S4.

[0029] S1: Acquire a reference image of the target UAV and convert the reference image into a three-dimensional mesh.

[0030] Specifically, a reference image of the same UAV is input into the 3D generation model to obtain a 3D mesh. and color or material information; Let be the set of vertex coordinates. This is a set of triangular faces. The mesh coordinate system is preserved to enclose the center of the cuboid containing the 3D mesh. Reference center, diagonal length This is the model scale. Mesh vertices will not be adjusted subsequently; areas not captured in the image will still use the inference results from the 3D generated model.

[0031] S2: Render the three-dimensional mesh from multiple virtual perspectives using preset ambient lighting to obtain two-dimensional rendering images of each virtual perspective; perform instance segmentation on the drone components in each two-dimensional rendering image, and then map the segmentation results onto the three-dimensional mesh; fuse the segmentation results of the same component instance in different virtual perspectives within the three-dimensional mesh to obtain a set of triangular faces corresponding to each component instance.

[0032] Using a 3D mesh as input, around set up A virtual perspective. A virtual perspective Save camera internal parameters Rotation matrix from grid coordinates to camera coordinates Translation vector Two-dimensional renderings are output synchronously from each virtual viewpoint. Depth map Surface normal diagram and triangular face numbering diagram The depth is the camera's Z coordinate, and the surface normal is a unit vector representing the surface orientation, with each image pixel corresponding to the other.

[0033] The 2D rendered image is segmented into component instances to obtain a component category map. . and Pixels The foremost visible triangle facet number and component category. As an optional implementation, fusing segmentation results belonging to the same component instance from different virtual perspectives within the 3D mesh includes: calculating the category pixel ratio for each triangle facet. The component category with the largest average proportion As a component category of this triangular face; merge the triangular faces of the same component category; where, Total number of pixels This represents the number of pixels in category c. This is a set of virtual viewpoint numbers with corresponding pixels. This indicates that the item corresponding to the maximum value is selected.

[0034] Specifically, instance numbers of different 2D renderings are not directly merged; the category pixel ratio of each triangle face is first calculated, and then the component category is determined.

[0035]

[0036] The input consists of a triangular facet numbering map and a component category map, and the output is the category pixel ratio. . Number the triangular faces. For component categories; The set of valid target pixels excludes outline pixels that blend with the background and target background. For the corresponding triangular face A set of pixels. Virtual viewpoints without corresponding pixels are not included in the calculation.

[0037]

[0038]

[0039] ; The average proportion is obtained by summing the pixel proportions of the same category and then dividing by the number of virtual viewpoints involved in the averaging. ; This is a set of virtual viewpoint numbers with corresponding pixels. The component category with the highest average proportion is selected. If there is no effective virtual view, the highest proportion is tied, or the proportion is lower than the preset minimum supported proportion, the component category is marked as undetermined.

[0040] Component instances are formed by triangular faces of the same category that are connected continuously by a common edge. For instance numbering, It is a set of triangular faces. For the corresponding surface area. Output each component instance, camera parameters, and rendering results for use in step three; incorrectly connected and indistinguishable triangles are not used for point selection.

[0041] S3: Determine the connection regions between each component instance and other component instances from the set of triangular faces of each component instance; divide the surface of the component instance into multiple candidate regions according to the distance from each position on the surface of the component instance to its connection region. Figure 2 This is a flowchart illustrating the determination of the connection region and candidate region provided in this embodiment. Multiple 3D candidate points are set within each candidate region of each component instance, and each is projected onto the 2D rendering image to obtain its respective projection position. From all 3D candidate points, those whose projection position depth and surface normal both satisfy a preset relationship are selected as 3D key points. Figure 3 This is a flowchart of the three-dimensional candidate point inspection and three-dimensional key point selection provided in this embodiment.

[0042] Specifically, the input to S3 is the component instance and virtual viewpoint data from S2, along with pre-set annotation requirements. The annotation requirements specify the candidate point component, reference component, and position type, but do not provide specific 3D coordinates. Adjacency relationships are first registered according to the viewing directions of all virtual views, and then the following six steps are completed sequentially.

[0043] First, determine the candidate component, reference component, and connection region: find the triangular faces sharing the same mesh edge from the triangular face sets of the two component instances to obtain the connection region:

[0044] ; in, Number the two component instances. , It is a set of triangular faces; There is a shared edge. , It has two triangular faces. Let be the set of shared edges. Merging shared edges yields connected regions. According to the labeling requirements, select the point where it is located. For the component to be selected, another component For reference components.

[0045] As an optional implementation, in step S3, the surface of the component instance is divided into multiple candidate regions according to the distance from each position on the surface of the component instance to its connecting region, including: A1: Calculate the shortest distance from each position on the surface of the component instance to the connection area; then take the maximum value among all the shortest distances as the maximum distance, and take the ratio of the shortest distance to the maximum distance at each position as the relative distance at that position; A2: Regions on the surface of a component instance whose relative distance is lower than the first threshold are designated as connected candidate regions; regions on the surface of a component instance whose relative distance is higher than the second threshold are designated as remote candidate regions. A3: Select a portion of the region outside the connected candidate region and the remote candidate region on the surface of the component instance as the central candidate region.

[0046] As an optional implementation, A3 includes: accumulating the surface area of ​​component instances in ascending order of relative distance; when the accumulated surface area of ​​component instances reaches half of the surface area of ​​component instances, taking a region within a preset range near the relative distance that does not belong to the connecting candidate region and the far-end candidate region as the central candidate region.

[0047] Specifically, the multiple unconnected connecting areas are numbered respectively. Calculate separately. Indicates the location type as either connected, remote, or central, and saves the selection task. ; Follow-up This refers only to the connection area used in this instance. If there is no shared boundary, it is marked as undetermined, and no new connection will be created. Figure 2 This is a flowchart illustrating the determination of the connection region and candidate region provided in this embodiment.

[0048] Second, candidate regions are defined based on surface distances: The surface of the candidate component consists of multiple triangular faces, which do not need to be on the same plane; the connecting region is formed by the common boundary of two component instances, and does not need to be a straight line. For each position on the surface of the candidate component, only paths that can reach the connecting region are found along that component surface, and the shortest path length is taken as the shortest surface distance from that position to the connecting region. The shortest distance to the connecting region is calculated only along the surface of the candidate component and converted into a relative distance:

[0049] In the above formula, The location of the component surface to be selected. To connect the location of the region, To select points along the surface of the component from arrive The shortest distance; To find the shortest distance to the connected region, Find the maximum value among them. Output The value is 0 at the connection point and 1 at the furthest point. The shortest path can be found along the grid edge and interpolated in the face. The path does not pass through other parts. The task stops when the maximum distance is zero or the path is blocked.

[0050] For the central type, first accumulate the surface areas according to the relative distances from smallest to largest, and then determine the relative distance when half of the total surface area is reached:

[0051] in, The total surface area of ​​the components to be selected. Let the area be a small piece of surface, and the integral represent the cumulative area; This is a relative distance boundary. This represents the surface area within this boundary. Output This is the boundary when the cumulative area first reaches half of its original size. This indicates taking the minimum bound; It is not necessarily 0.5.

[0052]

[0053] Among them, using relative distance and Three types of candidate regions are obtained; the superscripts conn, dist, and mid represent connected, remote, and central regions, respectively. To preset the area width ratio, The central type requires a relative distance and The absolute value of the difference does not exceed And exclude both ends. Each candidate region is associated with a point selection task. Three-dimensional key points have not yet been generated.

[0054] Third, set three-dimensional candidate points within the candidate region: first, extract triangular faces based on the surface area of ​​the triangular faces falling into the candidate region, and then evenly select points within the selected triangular faces that belong to the candidate region:

[0055]

[0056] ; Among them, the coordinates of the three vertices and proportion Obtain three-dimensional candidate points The three scales are called barycentric coordinates, which are non-negative and sum to 1, and are used to record the position within the triangular face; This is the vertex index. Save the 3D candidate point number, 3D coordinates, triangle facet number, centroid coordinates, and point selection task for later comparison.

[0057] Fourth, check visibility and calculate local geometric feature values: using the coordinates of 3D candidate points and the camera parameters saved in S2, first prepare the projection position and depth required for visibility check:

[0058] The output camera coordinates and projection position , For depth; Focal length is expressed in pixels. The coordinates of the principal point in the image are all from [source]. , Indicates transpose. Compare the depth with the projection position and check the triangular face number; if the depth is consistent within the allowable error and corresponds to the same surface, it is marked as visible; if a closer surface is in front, it is marked as occluded.

[0059] As an optional implementation, the depth change and surface normal change of the projection position satisfy preset conditions, including: depth change amount and surface normal variation Corresponding indicators Greater than the set threshold; ; Where u represents the projection position. This represents the difference between adjacent pixels in the horizontal and vertical directions, and the depth change. , Surface normal variation , ; and Calculate the square root of the sum of squares of the differences in depth and surface normal components, dividing the depth by the parameter first. Perform normalization. To prevent positive numbers with a denominator of 0, Represents the set of pixels from which differences can be computed. For the first Depth map corresponding to each virtual viewpoint In pixels Depth value at that location, For the first Surface normal map corresponding to each virtual viewpoint In pixels The unit surface normal vector at that location. Specifically, when a 3D candidate point is visible, its projection is valid, and the nearby depth data and surface normal data are valid, the current virtual viewpoint is recorded as the usable viewpoint, and two types of changes are calculated: ; Do not use pixel pairs that span the background or non-continuous occlusion surfaces.

[0060] On the same candidate point surface, the surface distance from the current 3D candidate point shall not exceed The set of comparison points consists of other 3D candidate points that are simultaneously visible and whose local geometric features can be calculated. ; This is the preset surface distance radius.

[0061]

[0062] Among them, the effective observation mark is output based on the local geometric feature value. . This indicates that the current virtual viewpoint is an available viewpoint. For comparison points, vertical lines indicate the number of comparison points; when all four conditions are met simultaneously... The current virtual viewpoint is considered a valid observation viewpoint; otherwise, it is set to 0. At least two comparison points are required. The local geometric eigenvalues ​​of the 3D candidate points must be no less than the maximum value of the comparison points and higher than the median. Insufficient comparison points or all points having the same value are not considered valid observation views.

[0063] Fifth, form a stable field of view by combining consecutive adjacent effective viewing angles: form an adjacency graph of viewing angles by combining all virtual viewing angles and pre-registered directional adjacency relationships. Nodes represent virtual viewpoints, and connecting edges represent directional adjacency. For each 3D candidate point, only the valid viewing viewpoint and its original connecting edges are retained, forming continuously connected groups:

[0064] ; in, A set of numbered effective observation perspectives; Retaining these numbers and the original connecting edges, CC divides them into unconnected groups. This is one of the groups, with vertical lines indicating the number of elements within the group. The group with the largest number of elements that also meets the preset minimum number of viewpoints is selected. A set that outputs a stable field of view. If there are no qualified groups, they will not participate in the final screening. In case of a tie, they will be selected according to the virtual perspective number order.

[0065] As an optional implementation, selecting 3D key points from all 3D candidate points whose projection position depth and surface normal both satisfy a preset relationship includes: B1: Compare the depth of each 3D candidate point in the virtual view with the depth of the projected position. If the difference between the two depths is within a preset threshold, the 3D candidate point is considered visible. B2: For a visible 3D candidate point, when the depth change and surface normal change of the projection position meet the preset conditions, it is considered that the local geometric features of the 3D candidate point are prominent, and then a set of virtual viewpoints with consecutive adjacent viewing directions are determined as the stable viewing field of the 3D candidate point. B3: Within the same candidate region, the 3D candidate points corresponding to the maximum stable viewing field of view are taken as 3D key points.

[0066] As an optional implementation, B3 includes: a view index for when there is a unique three-dimensional candidate point within the same candidate region. When the maximum value is reached, it is used as a 3D key point; when multiple 3D candidate points exist... When it is at its maximum, determine The largest view index of multiple 3D candidate points When there exists a unique If the largest value is used, its corresponding 3D candidate point is taken as the 3D key point. If multiple 3D candidate points exist... When it is at its maximum, determine The geometric index of the largest number of 3D candidate points , will the smallest The corresponding 3D candidate points are used as 3D key points; in, The number of virtual viewpoints contained in the stable observation field accounts for the total. The proportion of virtual perspectives This represents the proportion of the available viewpoints for that 3D candidate point; To stabilize the changes in local geometric feature values ​​within the observation field.

[0067] Specifically, the stable observation field records the range of 3D candidate points visible in adjacent checked directions and with prominent local geometric features; no additional edges are added after deleting invalid viewpoints. This embodiment uses approximately uniform directions and the same camera distance, intrinsic parameters, and resolution to compare the range size based on the number of virtual viewpoints:

[0068]

[0069] ; in, This is the set of available viewpoint numbers.

[0070] Sixth, compare and save 3D key points: Within the same candidate region, calculate the degree of change in local geometric feature values ​​of each qualified 3D candidate point in the stable viewing field:

[0071]

[0072] in, The median of the local geometric eigenvalues. This is the median of the absolute values ​​of each value that deviate from the median; output The smaller the value, the smaller the change. Follow the sequence... Larger Larger The smaller the number, the more likely it is to be sorted. If the preceding items are the same, the following items are compared. If all are the same, the three-dimensional candidate point numbers are used for sorting.

[0073] Retain the 3D candidate points one by one according to the sorting, and delete those whose surface distance to the retained 3D candidate points is less than 1 / 3 inch. The remaining 3D candidate points are processed, and after redundancy removal, the first one is selected as the 3D key point of the candidate region. Different point selection tasks are processed separately; if the candidate region is empty or has no qualified 3D candidate points, it is marked as undetermined.

[0074] ; Among them, the selection results are saved: Number the 3D key points. In three-dimensional coordinates, Number the triangular faces. Using the coordinates of the centroid, To stabilize the field of view; , , The component instances, connection regions, and location types from the point selection task are used to jointly determine the meaning of the location. The component category is obtained from the instance number; S4 reads the 3D location and location meaning to generate annotations.

[0075] S4: Project the three-dimensional key points onto the sample image of the target UAV to obtain two-dimensional key point coordinates. Save the visibility information of the two-dimensional key point coordinates, the sample image and the target box corresponding to the coverage area of ​​the target UAV to obtain key part samples. The sample image is obtained by fusing the foreground image obtained by relighting the three-dimensional mesh with the ambient light in the current real-shot background with the current real-shot background. Figure 4 This is a flowchart illustrating the generation process of the two-dimensional key point coordinates and self-occlusion judgment results provided in this embodiment.

[0076] First, using S3's 3D keypoints and the currently acquired actual rendering parameters, transform the coordinates to world coordinates, and then transform them to the sample camera coordinates: ; Among them, by Output world coordinates and sample camera coordinates . , Let be the rotation matrix of the UAV's attitude and the translation vector of the target's position; Transform the world coordinates to the sample camera coordinates. The rotation matrix is ​​3×3, and the translation vector contains three components. The x and y coordinates are: For depth. The 3D mesh and 3D keypoints use the same set of transformations.

[0077]

[0078] Among them, the coordinates of the two-dimensional key points are obtained using camera coordinates. ; Focal length is expressed in pixels. Principal point coordinates The coordinates are two-dimensional. This embodiment uses a distortion-free perspective camera, and the projection retains a decimal value; invalid projections or projections located outside the image are marked separately, and no image occlusion judgment is performed.

[0079] Then, compare the depth and verify the triangular facet numbers: For 3D keypoints that are validly projected, located within the image, and whose rendering records are valid, read the UAV depth map and triangular facet number map of the projected position; compare them with the depth and triangular facet number of the 3D keypoint:

[0080] in, Subtract the visible surface depth from the depth of the 3D keypoints; Tolerance set according to rendering precision; Includes the triangular facet number where the 3D keypoint is located; if it's located on a shared edge or vertex, it also includes the numbers of adjacent triangular faces sharing that location. When the depth difference is within tolerance and the triangular facet numbers match, To ensure that the view is not obscured by the drone itself; when the visible surface is closer and exceeds the tolerance, The other part is obscured by the drone itself; It cannot be determined. Indicates equivalence. This means that both conditions are met simultaneously.

[0081] Decimal projection coordinates use the intersection of the corresponding line of sight, or interpolated depth within the same surface, without averaging depth across occlusion boundaries or averaging triangular facet numbers. The sample image, target bounding box, 3D keypoint numbers, positional meanings, 2D keypoint coordinates, and self-occlusion judgment results are associated and saved; if no 3D keypoints are generated, undetermined records are retained, and 2D keypoint coordinates are not entered.

[0082] When the drone's attitude, target position, or sample camera parameters are changed, the projection is recalculated; self-occlusion detection does not move 3D keypoints or modify the already calculated 2D keypoint coordinates. When cropping or scaling sample images, the same 2D transformation is used for both the target bounding box and the 2D keypoint coordinates.

[0083] Regarding how to obtain sample images, the specific details include: Input the 3D mesh and its color or material information, and the actual background image. The process involves setting sample camera parameters, drone attitude, and target position. Ambient lighting is estimated based on the actual background image, and the brightness and reflection of the 3D mesh surface are recalculated (i.e., relighting rendering). Material parameters such as albedo and roughness are used to represent inherent color and reflection dispersion, respectively. Color maps with the original lighting must be prepared using materials suitable for relighting.

[0084] A single render yields a drone foreground image without a background. Foreground mask for drones Drone depth map and triangular face numbering diagram . This indicates the drone coverage percentage for a pixel, with a value ranging from 0 to 1; , Record the camera's Z-depth and triangular facet numbers on the surface of the foreground drone. Then, use a drone foreground mask for fusion. ; The output sample image The foreground pixels of the drone image and the background pixels in the actual shot are in the same position. A value of 1 preserves the drone color, a value of 0 preserves the background color, and the rest are mixed proportionally. The same linear color space and the foreground color without pre-multiplication masking are used to avoid repeated masking.

[0085]

[0086] The set of covered pixels is obtained from the drone foreground mask. and target box . To preset the coverage ratio threshold, The x and y coordinates are pixels; the four extreme values ​​are the left, top, right, and bottom boundaries. An empty set does not generate a bounding box. The fusion process no longer moves or scales the drone foreground image. The output includes sample images and bounding boxes, and saves the actual rendering parameters, drone depth map, and triangular facet numbering map for use by S4.

[0087] The following example illustrates the 3D key points and 2D annotations of the far end of a fixed-wing UAV wing.

[0088] This embodiment is used to generate image samples of a fixed-wing UAV and annotate the distal position of a wing relative to the fuselage. The annotation requirements specify that the wing is the candidate component, the fuselage is the reference component, and the position type is distal; no 3D keypoint coordinates are provided in advance. The selected 3D keypoints are representative positions on the surface of the candidate region; distal positions are not guaranteed to have a unique outermost point, and central positions are not the rotor axis. When directional information is lacking, only the instance number is retained.

[0089] First, obtain the triangular facet set of the wing and fuselage: Input one or more reference images of the same fixed-wing UAV into the 3D generation model to obtain a 3D mesh and its color or material information. Set multiple virtual viewpoints around the 3D mesh, and render the 2D rendering map, depth map, surface normal map, and triangular facet number map of each virtual viewpoint.

[0090] Each 2D rendered image is segmented into component instances. Based on the correspondence between pixels and triangles, the categories of different virtual viewpoints are summarized to determine the component category of each triangle. Then, triangles of the same category that are continuously connected by a common edge are grouped into component instances to obtain the wing instance and fuselage instance used for this point selection, as well as their respective triangle sets. At the same time, the camera parameters and rendering results of each virtual viewpoint are saved.

[0091] Second, determine the candidate regions for the wing's distal end: In the triangular facet sets of the wing and fuselage instances, find triangular faces that belong to both components and share mesh edges, and use the boundaries formed by the shared edges as the connected regions. When there are multiple unconnected connected regions for the same pair of components, number and calculate them separately.

[0092] Starting from the connection area used in this calculation, the shortest surface distance from each location on the wing surface to the connection area is calculated, and then divided by the maximum value among these distances to obtain the relative distance. The calculation path follows only the wing surface, without passing through the fuselage or the interior of the wing.

[0093] Based on the remote-type criteria, relatively large wing surface areas are designated as remote-type candidate regions, and associated with the wing instance number, fuselage instance number, connection area number, and remote-type position type. At this point, a surface area allowing point selection is obtained, but the 3D key points are not yet available.

[0094] Third, check the three-dimensional candidate points in the candidate area: uniformly set three-dimensional candidate points according to the surface area in the remote candidate area, and record the three-dimensional coordinates, the triangular face number and the position in the triangular face of each three-dimensional candidate point.

[0095] Using the previously saved virtual viewpoint data, first calculate the projected position and depth of each 3D candidate point, then read the depth and triangular facet number of the corresponding projected position to determine whether the 3D candidate point is visible. For visible and valid 3D candidate points, calculate the local geometric feature values ​​near the projected position, and record the current virtual viewpoint as the available viewpoint of that 3D candidate point.

[0096] Subsequently, the effective observation angle is determined by comparing the point with other adjacent, visible, and locally geometrically calculable 3D candidate points on the same wing surface. Using pre-established adjacency relationships along the observation direction, the effective observation angles are grouped, and the group with the largest number of angles that meets the preset minimum number of angles is selected as the stable observation field of view for that 3D candidate point. If no suitable group of angles is found, the 3D candidate point does not participate in the final selection.

[0097] Fourth, compare the 3D candidate points and save the selection results: To illustrate the comparison order, assume that there are two 3D candidate points in the remote candidate region that meet the screening criteria, denoted as 3D candidate point A and 3D candidate point B, respectively. Both have a stable field of view containing 8 virtual viewpoints, with 12 and 16 available viewpoints respectively.

[0098] Since both have the same stable field of view size, we continue by comparing the ratio of virtual viewpoints within the stable field of view to the total number of available viewpoints. The ratio for 3D candidate point A is 8 / 12, and the ratio for 3D candidate point B is 8 / 16; therefore, 3D candidate point A ranks first. In this example, the order is determined after this comparison and will not be changed by subsequent changes in local geometric feature values.

[0099] After processing according to the aforementioned comparison and redundancy removal rules, the top-ranked 3D candidate point is selected as the 3D key point of the current remote candidate region. Its 3D coordinates, triangular facet number, position within the triangular facet, and stable viewing field are saved, and associated with the corresponding two component instances, connection region numbers, and position types. The position of this 3D key point signifies "the remote position of the wing relative to the fuselage," representing the surface representative position within the remote candidate region, and does not necessarily have to be the unique outermost point on the wing.

[0100] Finally, sample images and 2D keypoint annotations are generated. A real-world background is selected, and ambient lighting is estimated based on the background. Sample camera parameters, UAV attitude, and target position are then set. The ambient lighting is used to re-light and render the 3D mesh, simultaneously obtaining a background-free UAV foreground image, a UAV foreground mask, a UAV depth map, and a triangular facet numbering map.

[0101] By using a drone foreground mask, the drone foreground image is fused with the real-world background to obtain a sample image. The target bounding box is then determined based on the drone's coverage area within the sample image. The drone foreground image is no longer moved or scaled separately during the fusion process.

[0102] Using the actual drone pose, target position, and sample camera parameters employed in this rendering, the saved 3D keypoints are projected onto the sample image to obtain 2D keypoint coordinates. For 3D keypoints with valid projection and located within the sample image, the corresponding drone depth map and triangular facet number map are read, the depths are compared, and the triangular facet numbers are verified to determine whether the drone itself is occluded.

[0103] For example, when the fuselage surface blocks the 3D keypoint, the already calculated 2D keypoint coordinates are still preserved, and "occluded by the drone itself" is recorded, without using other visible positions on the wing. Finally, the sample image, target bounding box, 3D keypoint number, position meaning, 2D keypoint coordinates, and self-occlusion judgment result are associated and saved. After changing the drone attitude, target position, or sample camera parameters, the 2D keypoint coordinates and self-occlusion judgment result are recalculated for the same 3D keypoint.

[0104] Example 2 This embodiment provides a device for generating samples of key parts of a UAV, including: a conversion module, a fusion module, a selection module, and a storage module.

[0105] The conversion module is used to acquire a reference image of the target UAV and convert the reference image into a three-dimensional mesh.

[0106] The fusion module is used to render the three-dimensional mesh from multiple virtual perspectives using preset ambient lighting to obtain two-dimensional rendering images of each virtual perspective; to perform instance segmentation on the drone components in each two-dimensional rendering image, and then map the segmentation results to the three-dimensional mesh; and to fuse the segmentation results of the same component instance in different virtual perspectives within the three-dimensional mesh to obtain a set of triangular faces corresponding to each component instance.

[0107] The selection module is used to determine the connection area between each component instance and other component instances from the triangular facet set of each component instance; divide the surface of the component instance into multiple candidate areas according to the distance from each position on the surface of the component instance to its connection area; set multiple three-dimensional candidate points in each candidate area of ​​each component instance, and project them onto the two-dimensional rendering map to obtain their respective projection positions; select the three-dimensional key points from all three-dimensional candidate points whose projection position depth and surface normal both satisfy the preset relationship.

[0108] The storage module is used to project the three-dimensional key points onto the sample image of the target UAV to obtain two-dimensional key point coordinates, and associate and save the visibility information of the two-dimensional key point coordinates, the sample image and the target bounding box corresponding to the coverage area of ​​the target UAV to obtain key part samples; the sample image is obtained by fusing the foreground image obtained by relighting the three-dimensional mesh using the ambient light in the current real-shot background with the current real-shot background.

[0109] Example 3 This embodiment provides a control system for an unmanned aerial vehicle (UAV), including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the method for generating samples of key parts of the UAV.

[0110] The control system can be a computing device such as a desktop computer, laptop, handheld computer, or cloud server. The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The memory can be used to store computer programs and / or modules. The processor implements various functions of the control system by running or executing the computer programs and / or modules stored in the memory, and by accessing data stored in the memory.

[0111] Example 4 This embodiment provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method for generating samples of key parts of a UAV.

[0112] Specifically, the memory may include high-speed random access memory, as well as non-volatile memory, such as hard disks, RAM, plug-in hard disks, smart media cards (SMC), secure digital (SD) cards, flash cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.

[0113] Example 5 This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of the method described in the above embodiments of this application.

[0114] The technical features of the embodiments described above can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification. It should be noted that the terms "in one embodiment," "for example," and "as in another example" in this application are intended to illustrate the application and are not intended to limit the application.

[0115] The embodiments described above are merely examples of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these modifications and improvements all fall within the protection scope of this application.

Claims

1. A method for generating samples of key components of a UAV, characterized in that, include: S1: Acquire a reference image of the target UAV and convert the reference image into a three-dimensional mesh; S2: Render the three-dimensional mesh from multiple virtual perspectives using preset ambient lighting to obtain two-dimensional rendering images of each virtual perspective; perform instance segmentation on the drone components in each two-dimensional rendering image, then map the segmentation results to the three-dimensional mesh, and fuse the segmentation results of the same component instance in different virtual perspectives within the three-dimensional mesh to obtain a set of triangular faces corresponding to each component instance. S3: Determine the connection region between each component instance and other component instances from the triangular face set of each component instance; divide the surface of the component instance into multiple candidate regions according to the distance from each position on the surface of the component instance to its connection region; set multiple three-dimensional candidate points in each candidate region of each component instance, and project them onto the two-dimensional rendering map to obtain their respective projection positions; select the three-dimensional key points from all three-dimensional candidate points whose projection position depth and surface normal both satisfy the preset relationship; S4: Project the three-dimensional key points onto the sample image of the target UAV to obtain two-dimensional key point coordinates. Save the visibility information of the two-dimensional key point coordinates, the sample image and the target box corresponding to the coverage area of ​​the target UAV to obtain key part samples. The sample image is obtained by fusing the foreground image obtained by relighting the three-dimensional mesh with the ambient light in the current real-shot background with the current real-shot background.

2. The method for generating samples of key components of a UAV as described in claim 1, characterized in that, In step S3, the surface of the component instance is divided into multiple candidate regions according to the distance from each position on the surface of the component instance to its connecting region, including: A1: Calculate the shortest distance from each position on the surface of the component instance to the connection area; then take the maximum value among all the shortest distances as the maximum distance, and take the ratio of the shortest distance to the maximum distance at each position as the relative distance at that position; A2: Regions on the surface of a component instance whose relative distance is lower than the first threshold are designated as connected candidate regions; regions on the surface of a component instance whose relative distance is higher than the second threshold are designated as remote candidate regions. A3: Select a portion of the region outside the connected candidate region and the remote candidate region on the surface of the component instance as the central candidate region.

3. The method for generating samples of key components of a UAV as described in claim 2, characterized in that, A3 includes: The surface areas of component instances are accumulated from small to large relative distances. When the accumulated surface area of ​​component instances reaches half of the surface area of ​​component instances, the area within a preset range near the relative distance that does not belong to the connected candidate area or the remote candidate area is taken as the central candidate area.

4. The method for generating samples of key parts of a UAV as described in claim 1, characterized in that, The step of selecting 3D key points from all 3D candidate points whose projection position depth and surface normal both satisfy a preset relationship includes: B1: Compare the depth of each 3D candidate point in the virtual view with the depth of the projected position. If the difference between the two depths is within a preset threshold, the 3D candidate point is considered visible. B2: For a visible 3D candidate point, when the depth change and surface normal change of the projection position meet the preset conditions, it is considered that the local geometric features of the 3D candidate point are prominent, and then a set of virtual viewpoints with consecutive adjacent viewing directions are determined as the stable viewing field of the 3D candidate point. B3: Within the same candidate region, the 3D candidate points corresponding to the maximum stable viewing field of view are taken as 3D key points.

5. The method for generating samples of key parts of a UAV as described in claim 4, characterized in that, B3 includes: a view index when there is a unique three-dimensional candidate point within the same candidate region. When the maximum value is reached, it is used as a 3D key point; when multiple 3D candidate points exist... When it is at its maximum, determine The largest view index of multiple 3D candidate points When there exists a unique If the largest value is used, its corresponding 3D candidate point is taken as the 3D key point. If multiple 3D candidate points exist... When it is at its maximum, determine The geometric index of the largest number of 3D candidate points , will the smallest The corresponding 3D candidate points are used as 3D key points; in, The number of virtual viewpoints contained in the stable observation field accounts for the total. The proportion of virtual perspectives This represents the proportion of the available viewpoints for that 3D candidate point; To stabilize the changes in local geometric feature values ​​within the observation field.

6. The method for generating samples of key parts of a UAV as described in claim 4, characterized in that, The depth change and surface normal change at the projection position satisfy preset conditions, including: depth change amount and surface normal variation Corresponding indicators Greater than the set threshold; ; Where u represents the projection position. This represents the difference between adjacent pixels in the horizontal and vertical directions, and the depth change. , Surface normal variation , ; and Calculate the square root of the sum of squares of the differences in depth and surface normal components, dividing the depth by the parameter first. Perform normalization. To prevent positive numbers with a denominator of 0, Represents the set of pixels from which differences can be computed. For the first Depth map corresponding to each virtual viewpoint In pixels Depth value at that location, For the first Surface normal map corresponding to each virtual viewpoint In pixels The unit surface normal vector at that location.

7. The method for generating samples of key parts of a UAV as described in any one of claims 1-6, characterized in that, The fusion of segmentation results belonging to the same component instance from different virtual perspectives within the 3D mesh includes: calculating the category pixel ratio of each triangular facet. The component category with the largest average proportion As a component category of this triangular face; merge the triangular faces of the same component category; in, Total number of pixels For pixels of category c, This is a set of virtual viewpoint numbers with corresponding pixels. This indicates that the item corresponding to the maximum value is selected.

8. A device for generating samples of key parts of a drone, characterized in that, include: The conversion module is used to acquire a reference image of the target UAV and convert the reference image into a three-dimensional mesh. The fusion module is used to render the three-dimensional mesh from multiple virtual perspectives using preset ambient lighting to obtain two-dimensional rendering images of each virtual perspective; to perform instance segmentation on the drone components in each two-dimensional rendering image, and then map the segmentation results to the three-dimensional mesh; and to fuse the segmentation results of the same component instance in different virtual perspectives within the three-dimensional mesh to obtain a set of triangular faces corresponding to each component instance. The selection area is used to determine the connection area between each component instance and other component instances from the triangular facet set of each component instance; the surface of the component instance is divided into multiple candidate areas according to the distance from each position on the surface of the component instance to its connection area; multiple three-dimensional candidate points are set in each candidate area of ​​each component instance and projected onto the two-dimensional rendering map to obtain their respective projection positions; from all three-dimensional candidate points, those whose projection position depth and surface normal both satisfy a preset relationship are selected as three-dimensional key points; The storage module is used to project the three-dimensional key points onto the sample image of the target UAV to obtain two-dimensional key point coordinates, and associate and save the visibility information of the two-dimensional key point coordinates, the sample image and the target bounding box corresponding to the coverage area of ​​the target UAV to obtain key part samples; the sample image is obtained by fusing the foreground image obtained by relighting the three-dimensional mesh using the ambient light in the current real-shot background with the current real-shot background.

9. A control system for an unmanned aerial vehicle (UAV), comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method for generating samples of key parts of the UAV as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for generating samples of key parts of the UAV as described in any one of claims 1 to 7.