Non-cooperative target pose measurement method and device with statistical guarantee

Through the combination of deep neural network and N-point perspective model, the problem of uncertainty in pose measurement in the existing technology is solved, accurate pose measurement under complex conditions is achieved, and statistically guaranteed non-cooperative target pose measurement is provided. method.

CN118570299AActive Publication Date: 2024-08-30NAT UNIV OF DEFENSE TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410710505.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

When measuring the pose of a target spacecraft, existing methods cannot effectively solve the pose uncertainty caused by occlusion, illumination changes, and image quality degradation, and the output single pose cannot accurately express the actual situation.

Method used

Use the trained deep neural network to predict semantic key points of non-cooperative target images, generate a conformal set of semantic key points, estimate the pose through random sampling and N-point perspective model, and iteratively calculate to obtain the average pose, providing a statistical Guaranteed non-cooperative target pose measurement method.

Benefits of technology

Under problems such as occlusion, illumination changes, and image quality degradation, it achieves accurate non-cooperative target pose measurement and provides statistically guaranteed measurement results, which is suitable for tasks such as formation flying and failed satellites.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570299A
    Figure CN118570299A
Patent Text Reader

Abstract

The invention relates to a non-cooperative target pose measurement method and device with statistical guarantee, and the method comprises the steps: carrying out the prediction through employing a trained deep neural network non-cooperative target image; obtaining index classification items of three-dimensional coordinates of a plurality of semantic key points in a non-cooperative target three-dimensional coordinate system and pixel coordinates on a non-cooperative target image, and performing conformal prediction on each semantic key point according to a preset non-conformal quantile to generate a semantic key point conformal set, random sampling is carried out in the semantic key point conformal set to obtain a group of sampling point pixel coordinates, the estimated pose of the non-cooperative target is obtained according to the group of sampling point pixel coordinates, it is judged that the estimated pose meeting a preset standard is reserved in a target pose set, and after multiple iterative calculations, the target pose is obtained. And obtaining a standard pose set and an average pose of the non-cooperative target. By adopting the method, accurate non-cooperative target pose measurement can be carried out under the condition of vision blurring caused by the problems of shielding, illumination variation, image quality degradation and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method and device for measuring the posture of a non-cooperative target with statistical guarantee. Background Art

[0002] With the rapid development of technology, missions such as formation flying, failed satellite and debris removal require measuring the position and attitude of the target spacecraft relative to the service spacecraft. The existing methods predict the position of semantic key points defined on the target spacecraft in the image, and then obtain the relative position and attitude by solving the N-point perspective problem.

[0003] However, the single pose output by existing methods cannot express the pose uncertainty caused by occlusion, illumination change, and image quality degradation in actual tasks. Summary of the invention

[0004] Based on this, it is necessary to provide a non-cooperative target posture measurement method and device with statistical guarantee that can obtain accurate posture in response to the above technical problems.

[0005] A non-cooperative target pose measurement method with statistical guarantee, the method comprising:

[0006] Acquire a non-cooperative target image to be measured for pose;

[0007] Using a trained deep neural network to predict the semantic key points in the non-cooperative target image, multiple semantic key points and index classification items of the three-dimensional coordinates of each semantic key point in the non-cooperative target three-dimensional coordinate system and pixel coordinates on the non-cooperative target image are obtained;

[0008] According to a preset non-conformal quantile, conformal prediction is performed for each of the semantic key points to generate a conformal set of semantic key points;

[0009] Performing random sampling in the conformal set of semantic key points according to a preset number to obtain a set of sampling point pixel coordinates on the non-cooperative target image;

[0010] According to the set of sampling point pixel coordinates, based on the point correspondence between the sampling points and the corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model, an estimated pose of the non-cooperative target is estimated, and it is determined whether the estimated pose meets a preset standard. If so, the estimated pose is retained in the target pose set, and an iterative calculation is completed. Another set of sampling point pixel coordinates is obtained by random sampling in the semantic key point conformal set, and the corresponding estimated pose is generated, until the number of iterations meets the preset number, then the iterative calculation is stopped;

[0011] An average pose is calculated based on all estimated poses in the target pose set, and a target pose set and an average pose of the non-cooperative target are obtained to achieve non-cooperative target pose measurement.

[0012] In one embodiment, when training a deep neural network:

[0013] Obtain a sample data set, wherein the sample data set includes a plurality of sample target images and a true value label corresponding to each sample image;

[0014] Dividing the sample data set into a training sample data set and a calibration sample data set;

[0015] Using the training sample data set to train the deep neural network, to obtain the trained neural network capable of predicting target semantic key points in the sample target image;

[0016] The trained neural network is used to predict semantic key points of the sample target image in the calibration sample data set to obtain a plurality of predicted semantic key points, and the calibration sample data set is conformally calibrated using the plurality of predicted semantic key points and corresponding true value labels to obtain the preset non-conformal score.

[0017] In one embodiment, the deep neural network includes a feature extraction network, an index classification item prediction head, and an image coordinate position prediction head;

[0018] The feature extraction network is used to extract a feature map of the non-cooperative target image;

[0019] The index classification item prediction head and the image coordinate position prediction head respectively predict the index classification items of the three-dimensional coordinates of the semantic key points in the non-cooperative target three-dimensional coordinate system and the pixel coordinates on the non-cooperative target image according to the feature map.

[0020] In one embodiment, the conformal calibration of the calibration sample data set is performed using the plurality of predicted semantic key points and the corresponding true value labels to obtain the preset non-conformal score, which includes:

[0021] For each predicted semantic key point in each of the sample target images in the calibration sample data set, based on the non-conformal function, a non-conformal degree value between the pixel coordinates and the true value label is calculated and predicted;

[0022] Arrange the non-conformal degree values ​​of each of the predicted semantic key points in each of the sample target images in descending order to obtain a corresponding non-conformal score sequence;

[0023] The non-conformal quantile corresponding to each of the predicted semantic key points is calculated according to the preset error tolerance rate and the non-conformal score sequence.

[0024] In one embodiment, performing conformal prediction for each of the semantic key points according to a preset non-conformal quantile to generate a conformal set of semantic key points includes:

[0025] Generating a conformal prediction range corresponding to each of the semantic key points according to the form of the non-conformal score;

[0026] The conformal set of semantic key points is obtained according to the conformal prediction range generated by each of the semantic key points.

[0027] In one embodiment, each sampling point pixel coordinate in the set of sampling point pixel coordinates is sampled from a different semantic key point conformal prediction range.

[0028] In one embodiment, obtaining the estimated pose of the non-cooperative target based on the set of sampling point pixel coordinates, the point correspondence between the sampling points and their corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model estimation includes:

[0029] Converting the two-dimensional coordinates of each sampling point into the three-dimensional coordinates of the sampling point in the three-dimensional coordinate system of the non-cooperative target;

[0030] According to each of the three-dimensional coordinates, the N-point perspective problem is solved to obtain the estimated pose of the corresponding non-cooperative target.

[0031] In one embodiment, determining whether the estimated position and posture meets a preset standard includes:

[0032] Projecting the estimated pose into the non-cooperative target image to obtain projected two-dimensional coordinates;

[0033] Whether the estimated posture meets the preset standard is judged by judging the residual value between the projected two-dimensional coordinates and the predicted pixel coordinates.

[0034] In one embodiment, when the number of iterations meets the preset number and the target pose set is empty, a second preset number of iterative calculations are performed, and in each iterative calculation process, the obtained estimated pose is directly retained in the target pose set.

[0035] The present application also provides a non-cooperative target pose measurement device with statistical guarantee, the device comprising:

[0036] An image acquisition module, used to acquire a non-cooperative target image to be measured for posture;

[0037] A semantic key point prediction module is used to predict the semantic key points in the non-cooperative target image using a trained deep neural network to obtain multiple semantic key points and index classification items of the three-dimensional coordinates of each semantic key point in the non-cooperative target three-dimensional coordinate system and pixel coordinates on the non-cooperative target image;

[0038] A semantic key point conformal set obtaining module is used to perform conformal prediction for each of the semantic key points according to a preset non-conformal quantile to generate a semantic key point conformal set;

[0039] A random sampling module, used for performing random sampling in the conformal set of semantic key points according to a preset number, and obtaining a set of sampling point pixel coordinates on the non-cooperative target image;

[0040] The target pose iterative estimation module is used to estimate the estimated pose of the non-cooperative target based on the set of sampling point pixel coordinates, the point correspondence between the sampling points and the corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model, and determine whether the estimated pose meets the preset standard. If so, the estimated pose is retained in the target pose set, and an iterative calculation is completed. Another set of sampling point pixel coordinates is obtained by random sampling in the semantic key point conformal set, and the corresponding estimated pose is generated. The iterative calculation is stopped until the number of iterations meets the preset number of iterations.

[0041] The non-cooperative target pose measurement result obtaining module is used to calculate the average pose according to all estimated poses in the target pose set, obtain the target pose set and the average pose of the non-cooperative target, so as to realize the non-cooperative target pose measurement.

[0042] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0043] Acquire a non-cooperative target image to be measured for pose;

[0044] Using a trained deep neural network to predict the semantic key points in the non-cooperative target image, multiple semantic key points and index classification items of the three-dimensional coordinates of each semantic key point in the non-cooperative target three-dimensional coordinate system and pixel coordinates on the non-cooperative target image are obtained;

[0045] According to a preset non-conformal quantile, conformal prediction is performed for each of the semantic key points to generate a conformal set of semantic key points;

[0046] Performing random sampling in the conformal set of semantic key points according to a preset number to obtain a set of sampling point pixel coordinates on the non-cooperative target image;

[0047] According to the set of sampling point pixel coordinates, based on the point correspondence between the sampling points and the corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model, an estimated pose of the non-cooperative target is estimated, and it is determined whether the estimated pose meets a preset standard. If so, the estimated pose is retained in the target pose set, and an iterative calculation is completed. Another set of sampling point pixel coordinates is obtained by random sampling in the semantic key point conformal set, and the corresponding estimated pose is generated, until the number of iterations meets the preset number, then the iterative calculation is stopped;

[0048] An average pose is calculated based on all estimated poses in the target pose set, and a target pose set and an average pose of the non-cooperative target are obtained to achieve non-cooperative target pose measurement.

[0049] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0050] Acquire a non-cooperative target image to be measured for pose;

[0051] Using a trained deep neural network to predict the semantic key points in the non-cooperative target image, multiple semantic key points and index classification items of the three-dimensional coordinates of each semantic key point in the non-cooperative target three-dimensional coordinate system and pixel coordinates on the non-cooperative target image are obtained;

[0052] According to a preset non-conformal quantile, conformal prediction is performed for each of the semantic key points to generate a conformal set of semantic key points;

[0053] Performing random sampling in the conformal set of semantic key points according to a preset number to obtain a set of sampling point pixel coordinates on the non-cooperative target image;

[0054] According to the set of sampling point pixel coordinates, based on the point correspondence between the sampling points and the corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model, an estimated pose of the non-cooperative target is estimated, and it is determined whether the estimated pose meets a preset standard. If so, the estimated pose is retained in the target pose set, and an iterative calculation is completed. Another set of sampling point pixel coordinates is obtained by random sampling in the semantic key point conformal set, and the corresponding estimated pose is generated, until the number of iterations meets the preset number, then the iterative calculation is stopped;

[0055] An average pose is calculated based on all estimated poses in the target pose set, and a target pose set and an average pose of the non-cooperative target are obtained to achieve non-cooperative target pose measurement.

[0056] The above-mentioned non-cooperative target pose measurement method and device with statistical guarantee, by using the trained deep neural network non-cooperative target image for prediction, obtains the index classification items of the three-dimensional coordinates of multiple semantic key points in the non-cooperative target three-dimensional coordinate system and the pixel coordinates on the non-cooperative target image, and according to the preset non-conformal quantile, conformal prediction is performed for each semantic key point to generate a semantic key point conformal set, and random sampling is performed in the semantic key point conformal set to obtain a group of sampling point pixel coordinates, and the estimated pose of the non-cooperative target is obtained according to the group of sampling point pixel coordinates, and the estimated pose that meets the preset standard is determined and retained in the target pose set, and after multiple iterative calculations, the non-cooperative target's standard pose set and average pose are obtained. This method can be used to accurately measure the pose of the non-cooperative target in the case of visual blur caused by occlusion, illumination changes, and image quality degradation. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A flowchart of a non-cooperative target pose measurement method with statistical guarantee in one embodiment;

[0058] Figure 2 It is a schematic diagram of a process of outputting a target pose set and an average pose with statistical guarantee based on iterative sampling in one embodiment;

[0059] Figure 3 is a structural block diagram of a non-cooperative target pose measurement device with statistical guarantee in one embodiment;

[0060] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0062] In view of the fact that the existing method of measuring the pose of a non-cooperative target often outputs a single pose, which cannot express the pose uncertainty caused by occlusion, illumination change, and image quality degradation in actual tasks, in this embodiment, Figure 1 As shown, a non-cooperative target pose measurement method with statistical guarantee is provided, comprising the following steps:

[0063] Step S100, obtaining a non-cooperative target image to be subjected to pose measurement.

[0064] Step S110, using a trained deep neural network to predict semantic key points in the non-cooperative target image, to obtain multiple semantic key points and index classification items of the three-dimensional coordinates of each semantic key point in the non-cooperative target three-dimensional coordinate system and pixel coordinates on the non-cooperative target image.

[0065] Step S120 , performing conformal prediction on each of the semantic key points according to a preset non-conformal quantile, and generating a conformal set of semantic key points.

[0066] Step S130 , performing random sampling within the conformal set of semantic key points according to a preset number, and obtaining a set of sampling point pixel coordinates on the non-cooperative target image.

[0067] Step S140, based on a set of sampling point pixel coordinates, based on the point correspondence between the sampling points and their corresponding three-dimensional coordinates in the coordinate system of the non-cooperative target body, and the N-point perspective model, an estimated pose of the non-cooperative target is estimated, and it is determined whether the estimated pose meets the preset standard. If so, the estimated pose is retained in the target pose set, and an iterative calculation is completed. Random sampling is performed in the conformal set of semantic key points to obtain another set of sampling point pixel coordinates, and the corresponding estimated pose is generated. The iterative calculation is stopped until the number of iterations meets the preset number of times.

[0068] Step S150, calculating an average pose according to all estimated poses in the target pose set, obtaining a target pose set and an average pose of the non-cooperative target, so as to achieve non-cooperative target pose measurement.

[0069] In step S100, the non-cooperative target image to be measured for position and posture may be acquired by the service spacecraft through detection of the non-cooperative target spacecraft in missions such as formation flying, failed satellite and debris removal, etc. The non-cooperative target image is a visible light image.

[0070] In step S110, the semantic key points in the non-cooperative target image are extracted (predicted) using the trained deep neural network to obtain the three-dimensional coordinates of each semantic key point in the non-cooperative target coordinates and the pixel coordinates of the two-dimensional image on the non-cooperative target image.

[0071] In this embodiment, the three-dimensional coordinates of the semantic key points in the non-cooperative target coordinates are actually represented by index classification items of the corresponding relationship between each semantic key point and the upper semantic key point in the non-cooperative target body coordinates.

[0072] In this embodiment, when training a deep neural network: a sample data set is obtained, the sample data set includes multiple sample target images and true value labels corresponding to each sample image, the sample data set is divided into a training sample data set and a calibration sample data set, the training sample data set is used to train the deep neural network to obtain a trained neural network capable of predicting target semantic key points in the sample target images, and then the trained neural network is used to predict semantic key points of the sample target images in the calibration sample data set to obtain multiple predicted semantic key points, and the calibration sample data set is conformally calibrated by the multiple predicted semantic key points and the corresponding true value labels to obtain a preset non-conformal score.

[0073] In this embodiment, the sample data set is divided into a training sample data set for training a deep neural network. And a calibration sample dataset for obtaining non-conformal scores

[0074] In this embodiment, the targets in the sample target images in the sample data set are all optical images of targets of the same type, wherein the targets are categories of non-cooperative targets in practical applications, such as spacecrafts of various models.

[0075] Specifically, in addition to multiple sample target images, the sample data set also includes the true value labels of each sample target image. The true value label for each sample target image is actually a true value label set, which consists of a total of P semantic key point elements. The i-th semantic key point element consists of an index classification item describing the correspondence between the i-th semantic key point element and the semantic key point on the non-cooperative target body coordinate system, and an X- and Y-axis image coordinate position item describing the coordinates of the i-th semantic key point element on the X and Y axes of the image.

[0076] In this embodiment, the deep neural network includes a feature extraction network, an index classification item prediction head and an image coordinate position prediction head, wherein the feature extraction network is used to extract a feature map of a non-cooperative target image, and the index classification item prediction head and the image coordinate position prediction head respectively predict the index classification items of the three-dimensional coordinates of semantic key points in the non-cooperative target three-dimensional coordinate system and the pixel coordinates on the non-cooperative target image based on the feature map.

[0077] Specifically, the feature extraction network can use any architecture such as Transformer, CNN or VMamba to extract the feature map of the input image. The index classification item prediction head and the image coordinate position item prediction head receive the features output by the feature extraction network and predict the index classification item and XY axis image coordinate position item of the semantic key point respectively.

[0078] Furthermore, the index classification item may be in the form of, but not limited to, one-hot encoding or Gaussian distribution, and the XY axis image coordinate position item may be in the form of, but not limited to, one-dimensional heat map, two-dimensional heat map, image pixel coordinates, and vectors. The above forms can all be converted into image pixel coordinate forms, so in this method, only the image pixel coordinate form is used as an example.

[0079] In this embodiment, when the deep neural network is trained or optimized, any optimization method such as stochastic gradient descent can be used. Any feasible classification loss including but not limited to cross entropy loss and any feasible image position loss including but not limited to KL loss are used to supervise the training of the deep neural network model until it converges.

[0080] Specifically, using the training sample data set When training a deep neural network, the training sample dataset is The sample target images in are input into the deep neural network in sequence, and a set of predicted values ​​that match the true value labels one-to-one are predicted. The loss function is then calculated based on the predicted values ​​and the true value labels, and the adjustable parameters in the deep neural network are optimized and updated according to the loss function until they converge to obtain a trained deep neural network.

[0081] In this embodiment, after obtaining the trained deep neural network, the calibration sample data set is used The non-conformal score is obtained by inputting the sample target image in the calibration sample data set into the trained deep neural network to obtain multiple predicted semantic key points, and the calibration sample data set is conformally calibrated with the multiple predicted semantic key points and the corresponding true value labels to obtain the preset non-conformal score.

[0082] Specifically, in the calibration sample data set For each predicted semantic key point in each sample target image in , based on the non-conformal function, the non-conformal degree value between the pixel coordinates and the true value label is calculated and predicted, and the non-conformal degree value of each predicted semantic key point in each sample target image is arranged in descending order to obtain the corresponding non-conformal score sequence, and the non-conformal quantile corresponding to each predicted semantic key point is calculated according to the preset fault tolerance rate and the non-conformal score sequence.

[0083] Furthermore, due to the different forms of semantic key point prediction values, the form of the non-conformal function is not unique. In this method, the non-conformal function used is expressed as:

[0084] α i =φ(y i ,f(x) i )=p i ||y i -q i|| (1)

[0085] In formula (1), x represents the input image, i.e., the sample target image, and f represents the deep neural network model; p i represents the probability that the predicted value corresponds to the i-th semantic key point, ||y i -q i || represents the i-th semantic key point of the deep neural network model, and the image pixel position prediction value q i and truth value y i φ represents the non-conformal function, which measures the degree of non-conformal between the pixel position of the semantic key point image predicted by the deep neural network and the true value.

[0086] Furthermore, the kth image of the entire calibration dataset is calculated The non-conformal score corresponding to the i-th semantic key point is N cal Represents the calibration dataset The total number of samples in . Then the non-conformal scores are sorted in descending order as where π(n)∈{1,2,...N cal} represents the index sequence. After the conformal calibration is completed, P non-conformal score sequences are output in descending order. That is, the non-conformal degree of each semantic key point in the k sample target images is arranged in descending order to obtain the corresponding non-conformal score sequence.

[0087] Furthermore, the conformal quantile of each semantic key point is calculated based on each non-conformal score sequence to assist in the subsequent conformal prediction set of semantic key points, which will be explained later.

[0088] In this embodiment, through the training of the above-mentioned deep neural network and the conformal quantiles of each semantic key point, that is, when processing a non-cooperative target image, after using the trained deep neural network to extract the semantic key points in the non-cooperative target image, the conformal quantiles of each semantic key point are used to perform inductive conformal prediction, that is, perform the process in step S120.

[0089] It should be noted here that the following It is represented as the non-cooperative target image to be measured for pose measurement. In fact, it is represented as the test sample image for testing this method. However, since its content is consistent in the test stage and the actual application stage, it is used here. To represent the non-cooperative target image, since the test sample images include multiple images during the test, the subscript k represents the kth test sample image.

[0090] In this embodiment, conformal prediction is performed for each of the semantic key points according to a preset non-conformal quantile, and a conformal set of semantic key points is generated, including: generating a conformal prediction range corresponding to each semantic key point according to the form of a non-conformal score, and obtaining a conformal set of semantic key points according to the conformal prediction range generated for each semantic key point.

[0091] In one embodiment, when the form of the non-conformal score is as shown in formula (1), the semantic key point summary co-occurrence prediction set used is expressed as:

[0092]

[0093] In formula (2), Represents the XY axis image position coordinate labels of all semantic key points. The inductive conformal prediction set contains The non-conformal scores of all semantic keypoints in Not greater than the quantile of the corresponding semantic key point Substituting the definition of non-conformal score in this method, the semantic key point summary conformal prediction set is expressed as:

[0094]

[0095] It can be seen from formula (3) that, according to the preset non-conformal quantile, conformal prediction is performed for each of the semantic key points to generate a conformal set of semantic key points. In fact, each semantic key point is taken as the center, and the non-conformal score corresponding to each semantic key point is used as the radius to generate a circular semantic key point conformal prediction range, and the semantic key point conformal set is obtained according to the circular semantic key point conformal prediction range generated for each semantic key point.

[0096] In one embodiment, the non-conformal fraction may also be in other forms, such as:

[0097]

[0098] In formula (4), the semantic key points are represented by heat maps. represents the inverse of the covariance matrix of the heat map, Represents the average position of the first J most likely detections in the heat map. Generating a conformal set of semantic key points actually takes each semantic key point as the center, generates an elliptical conformal prediction range of the covariance matrix corresponding to each semantic key point, and obtains the conformal set of semantic key points based on the elliptical conformal prediction range of the semantic key point generated by each semantic key point.

[0099] In step S130, sampling is performed within the range of the semantic key point summary conformal prediction set, and the XY axis image position coordinate label of the sampling point is output Among them, P n(i) The ith sampling point corresponds to the coordinates of the non-cooperative target body in the coordinate system. The subscript n(i) represents the index of random sampling from P semantic key points. The total number of n(i) is determined by the final algorithm for solving the N-point perspective problem. At least three sampling points are required. Preferably, a set of sampling points includes four sampling points.

[0100] Furthermore, each sampling point pixel coordinate in a set of sampling point pixel coordinates is sampled in a different circular semantic key point conformal prediction range.

[0101] In step S140, an estimated pose of the non-cooperative target is obtained according to a set of sampling point pixel coordinates, based on the point correspondence between the sampling points and their corresponding three-dimensional coordinates in the coordinate system of the non-cooperative target body, and the N-point perspective model, including: converting the two-dimensional coordinates of each sampling point into the three-dimensional coordinates of the sampling point in the three-dimensional coordinate system of the non-cooperative target, solving the N-point perspective problem according to each three-dimensional coordinate, and obtaining the corresponding estimated pose of the non-cooperative target.

[0102] Specifically, based on the correspondence between the sampling points and their positions in the non-cooperative target body coordinate system, an N-point perspective model is constructed, and the position and posture of the non-cooperative target in the camera coordinate system are obtained by solving the N-point perspective model. The N-point perspective model is expressed as:

[0103]

[0104] In formula (5), and They represent the best estimated values ​​of the rotation matrix and translation vector of the non-cooperative target in the camera coordinate system, and the estimated pose of the non-cooperative target is represented by these two. ρ(·) is the robust estimation function, e i is the reprojection residual, expressed as:

[0105] e i =(λ i p i -K[R|t]P n(i) ) T (λ i p i -K[R|t]P n(i) ) (6)

[0106] In formula (6), K represents the intrinsic parameter matrix of the camera, [R|t] represents the pose of the non-cooperative target, where R represents the rotation matrix of the non-cooperative target in the camera coordinate system, t represents the translation vector of the non-cooperative target in the camera coordinate system, and λ i Represents the photographic depth of the i-th sampling point.

[0107] After obtaining the estimated pose corresponding to the pixel coordinates of the group sampling points, it is necessary to determine whether it meets the preset standard, that is, to determine whether the estimated pose has a statistically guaranteed target pose set.

[0108] In this embodiment, judging whether the estimated posture meets the preset standard includes: projecting the estimated posture into the non-cooperative target image to obtain projected two-dimensional coordinates, and judging whether the estimated posture meets the preset standard by the residual value between the projected two-dimensional coordinates and the predicted pixel coordinates.

[0109] Specifically, the pose truth belongs to the target pose set S with statistical guarantee if and only if the semantic keypoint image coordinate position truth belongs to the semantic keypoint inductive conformal prediction set S. ε ={[R|t]∈SE(3)}.

[0110] The pose estimated based on the sampling points is determined by the following formula and Is it in set S ε middle:

[0111]

[0112] In formula (7), Represents the predicted coordinates P of the i-th sampling point in the body coordinate system n(i) , in pose and The projected two-dimensional coordinates are projected into the image pixel coordinate system based on the following formula:

[0113]

[0114] In formula (8), Π(·) represents the camera projection function. After n sampling iterations, m < n pose sets that meet the above judgment criteria are output. Solving for the mean rotation matrix as follows:

[0115]

[0116] In formula (9), d represents the distance function between two rotation matrices, using the F norm, and is defined as follows:

[0117]

[0118] In this embodiment, when the number of iterations meets the preset number and the target pose set is empty, a second preset number of iterative calculations are performed. During each iterative calculation process, the estimated pose obtained is directly retained in the target pose set.

[0119] Specifically, after n iterations, there is still no predicted pose that meets the judgment condition of the target pose set with statistical guarantee. Then iterate again n / 20 times, sample each semantic key point in each iteration, and output a total of P sampling points. According to the same process as above, the pose set with statistical guarantee is calculated. and the average pose

[0120] Specifically, the average displacement is obtained by directly averaging n translation vectors:

[0121]

[0122] In fact, step S130 and step S140 are an iterative process, and the iterative process can be as follows: Figure 2 shown.

[0123] In step S150, the pose set with statistical guarantee and the average pose Output, where the pose set There is a probability of 1-ε that the pose truth is covered.

[0124] In the above-mentioned statistically guaranteed non-cooperative target pose measurement method, the position of the semantic key points in the non-cooperative target in the image coordinate system is predicted by training a deep neural network. After conformal calibration, inductive conformal prediction and random sampling, a statistically guaranteed non-cooperative target pose set is output, which can express the visual blur caused by occlusion, illumination change and image quality degradation in actual tasks, and is more suitable for expressing the uncertainty in the output pose. The user can customize the error tolerance ε, and the output statistically guaranteed non-cooperative target pose set has a probability of 1-error tolerance 1-ε covering the true value of the pose.

[0125] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0126] In one embodiment, Figure 3 As shown, a non-cooperative target pose measurement device with statistical guarantee is provided, comprising: an image acquisition module 200, a semantic key point prediction module 210, a semantic key point conformal set acquisition module 220, a random sampling module 230, a target pose iterative estimation module 240 and a non-cooperative target pose measurement result acquisition module 250, wherein:

[0127] An image acquisition module 200 is used to acquire a non-cooperative target image to be measured for posture;

[0128] A semantic key point prediction module 210 is used to predict the semantic key points in the non-cooperative target image using a trained deep neural network to obtain multiple semantic key points and index classification items of the three-dimensional coordinates of each semantic key point in the non-cooperative target three-dimensional coordinate system and pixel coordinates on the non-cooperative target image;

[0129] A semantic key point conformal set obtaining module 220 is used to perform conformal prediction for each of the semantic key points according to a preset non-conformal quantile to generate a semantic key point conformal set;

[0130] A random sampling module 230, configured to perform random sampling in the conformal set of semantic key points according to a preset number, and obtain a set of sampling point pixel coordinates on the non-cooperative target image;

[0131] The target pose iteration estimation module 240 is used to estimate the estimated pose of the non-cooperative target based on the set of sampling point pixel coordinates, the point correspondence between the sampling points and the corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model, and determine whether the estimated pose meets the preset standard. If so, the estimated pose is retained in the target pose set, and an iterative calculation is completed. Another set of sampling point pixel coordinates is obtained by random sampling in the semantic key point conformal set, and the corresponding estimated pose is generated. The iterative calculation is stopped until the number of iterations meets the preset number of iterations.

[0132] The non-cooperative target pose measurement result obtaining module 250 is used to calculate the average pose according to all estimated poses in the target pose set, obtain the target pose set and the average pose of the non-cooperative target, so as to realize the non-cooperative target pose measurement.

[0133] For the specific definition of the non-cooperative target posture measurement device with statistical guarantee, please refer to the definition of the non-cooperative target posture measurement method with statistical guarantee in the above text, which will not be repeated here. Each module in the above-mentioned non-cooperative target posture measurement device with statistical guarantee can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0134] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a non-cooperative target posture measurement method with statistical guarantee is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0135] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0136] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0137] Acquire a non-cooperative target image to be measured for pose;

[0138] Using a trained deep neural network to predict the semantic key points in the non-cooperative target image, multiple semantic key points and index classification items of the three-dimensional coordinates of each semantic key point in the non-cooperative target three-dimensional coordinate system and pixel coordinates on the non-cooperative target image are obtained;

[0139] According to a preset non-conformal quantile, conformal prediction is performed for each of the semantic key points to generate a conformal set of semantic key points;

[0140] Performing random sampling in the conformal set of semantic key points according to a preset number to obtain a set of sampling point pixel coordinates on the non-cooperative target image;

[0141] According to the set of sampling point pixel coordinates, based on the point correspondence between the sampling points and the corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model, an estimated pose of the non-cooperative target is estimated, and it is determined whether the estimated pose meets a preset standard. If so, the estimated pose is retained in the target pose set, and an iterative calculation is completed. Another set of sampling point pixel coordinates is obtained by random sampling in the semantic key point conformal set, and the corresponding estimated pose is generated, until the number of iterations meets the preset number, then the iterative calculation is stopped;

[0142] An average pose is calculated based on all estimated poses in the target pose set, and a target pose set and an average pose of the non-cooperative target are obtained to achieve non-cooperative target pose measurement.

[0143] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0144] Acquire a non-cooperative target image to be measured for pose;

[0145] Using a trained deep neural network to predict the semantic key points in the non-cooperative target image, multiple semantic key points and index classification items of the three-dimensional coordinates of each semantic key point in the non-cooperative target three-dimensional coordinate system and pixel coordinates on the non-cooperative target image are obtained;

[0146] According to a preset non-conformal quantile, conformal prediction is performed for each of the semantic key points to generate a conformal set of semantic key points;

[0147] Performing random sampling in the conformal set of semantic key points according to a preset number to obtain a set of sampling point pixel coordinates on the non-cooperative target image;

[0148] According to the set of sampling point pixel coordinates, based on the point correspondence between the sampling points and the corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model, an estimated pose of the non-cooperative target is estimated, and it is determined whether the estimated pose meets a preset standard. If so, the estimated pose is retained in the target pose set, and an iterative calculation is completed. Another set of sampling point pixel coordinates is obtained by random sampling in the semantic key point conformal set, and the corresponding estimated pose is generated, until the number of iterations meets the preset number, then the iterative calculation is stopped;

[0149] An average pose is calculated based on all estimated poses in the target pose set, and a target pose set and an average pose of the non-cooperative target are obtained to achieve non-cooperative target pose measurement.

[0150] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0151] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0152] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A non-cooperative target pose measurement method with statistical guarantee, characterized in that: The method comprises: Acquire a non-cooperative target image to be measured for pose; Using a trained deep neural network to predict the semantic key points in the non-cooperative target image, a plurality of semantic key points and index classification items of the three-dimensional coordinates of each of the semantic key points in the non-cooperative target three-dimensional coordinate system and pixel coordinates on the non-cooperative target image are obtained; According to a preset non-conformal quantile, conformal prediction is performed for each of the semantic key points to generate a conformal set of semantic key points; Performing random sampling in the conformal set of semantic key points according to a preset number to obtain a set of sampling point pixel coordinates on the non-cooperative target image; According to the set of sampling point pixel coordinates, based on the point correspondence between the sampling points and the corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model, an estimated pose of the non-cooperative target is estimated, and it is determined whether the estimated pose meets a preset standard. If so, the estimated pose is retained in the target pose set, and an iterative calculation is completed. Another set of sampling point pixel coordinates is obtained by random sampling in the semantic key point conformal set, and the corresponding estimated pose is generated, until the number of iterations meets the preset number, then the iterative calculation is stopped; An average pose is calculated based on all estimated poses in the target pose set, and a target pose set and an average pose of the non-cooperative target are obtained to achieve non-cooperative target pose measurement.

2. The non-cooperative target pose measurement method with statistical guarantee according to claim 1, characterized in that: When training a deep neural network: Obtain a sample data set, wherein the sample data set includes a plurality of sample target images and a true value label corresponding to each sample image; Dividing the sample data set into a training sample data set and a calibration sample data set; Using the training sample data set to train the deep neural network, to obtain the trained neural network capable of predicting target semantic key points in the sample target image; The trained neural network is used to predict semantic key points of the sample target image in the calibration sample data set to obtain a plurality of predicted semantic key points, and the calibration sample data set is conformally calibrated using the plurality of predicted semantic key points and corresponding true value labels to obtain the preset non-conformal score.

3. The non-cooperative target pose measurement method with statistical guarantee according to claim 1, characterized in that: The deep neural network includes a feature extraction network, an index classification item prediction head, and an image coordinate position prediction head; The feature extraction network is used to extract a feature map of the non-cooperative target image; The index classification item prediction head and the image coordinate position prediction head respectively predict the index classification items of the three-dimensional coordinates of the semantic key points in the non-cooperative target three-dimensional coordinate system and the pixel coordinates on the non-cooperative target image based on the feature map.

4. The non-cooperative target pose measurement method with statistical guarantee according to claim 3, characterized in that: The step of conformally calibrating the calibration sample data set by using the plurality of predicted semantic key points and the corresponding true value labels to obtain the preset non-conformal score includes: For each predicted semantic key point in each of the sample target images in the calibration sample data set, based on the non-conformal function, a non-conformal degree value between the pixel coordinates and the true value label is calculated and predicted; Arrange the non-conformal degree values ​​of each of the predicted semantic key points in each of the sample target images in descending order to obtain a corresponding non-conformal score sequence; The non-conformal quantile corresponding to each of the predicted semantic key points is calculated according to the preset error tolerance rate and the non-conformal score sequence.

5. The non-cooperative target pose measurement method with statistical guarantee according to claim 1, characterized in that: The step of performing conformal prediction for each of the semantic key points according to the preset non-conformal quantile to generate a conformal set of semantic key points comprises: Generating a conformal prediction range corresponding to each of the semantic key points according to the form of the non-conformal score; The conformal set of semantic key points is obtained according to the conformal prediction range generated by each of the semantic key points.

6. The non-cooperative target pose measurement method with statistical guarantee according to claim 5, characterized in that: The pixel coordinates of each sampling point in the set of sampling point pixel coordinates are respectively sampled from different conformal prediction ranges of semantic key points.

7. The non-cooperative target pose measurement method with statistical guarantee according to claim 6, characterized in that: The step of obtaining the estimated pose of the non-cooperative target based on the set of sampling point pixel coordinates, the point correspondence between the sampling points and the corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model includes: Converting the two-dimensional coordinates of each sampling point into the three-dimensional coordinates of the sampling point in the three-dimensional coordinate system of the non-cooperative target; According to each of the three-dimensional coordinates, the N-point perspective problem is solved to obtain the estimated pose of the corresponding non-cooperative target.

8. The non-cooperative target pose measurement method with statistical guarantee according to claim 7, characterized in that: The determining whether the estimated position and posture meets a preset standard includes: Projecting the estimated pose into the non-cooperative target image to obtain projected two-dimensional coordinates; Whether the estimated posture meets the preset standard is judged by judging the residual value between the projected two-dimensional coordinates and the predicted pixel coordinates.

9. The non-cooperative target pose measurement method with statistical guarantee according to claim 1, characterized in that: When the number of iterations meets the preset number and the target pose set is empty, a second preset number of iterative calculations are performed. In each iterative calculation process, the estimated pose obtained is directly retained in the target pose set.

10. A non-cooperative target pose measurement device with statistical guarantee, characterized in that: The device comprises: An image acquisition module, used to acquire a non-cooperative target image to be measured for posture; A semantic key point prediction module is used to predict the semantic key points in the non-cooperative target image using a trained deep neural network to obtain multiple semantic key points and index classification items of the three-dimensional coordinates of each semantic key point in the non-cooperative target three-dimensional coordinate system and pixel coordinates on the non-cooperative target image; A semantic key point conformal set obtaining module is used to perform conformal prediction for each of the semantic key points according to a preset non-conformal quantile to generate a semantic key point conformal set; A random sampling module, used for performing random sampling in the conformal set of semantic key points according to a preset number, and obtaining a set of sampling point pixel coordinates on the non-cooperative target image; The target pose iterative estimation module is used to estimate the estimated pose of the non-cooperative target based on the set of sampling point pixel coordinates, the point correspondence between the sampling points and the corresponding three-dimensional coordinates in the non-cooperative target body coordinate system, and the N-point perspective model, and determine whether the estimated pose meets the preset standard. If so, the estimated pose is retained in the target pose set, and an iterative calculation is completed. Another set of sampling point pixel coordinates is obtained by random sampling in the semantic key point conformal set, and the corresponding estimated pose is generated. The iterative calculation is stopped until the number of iterations meets the preset number of iterations. The non-cooperative target pose measurement result obtaining module is used to calculate the average pose according to all estimated poses in the target pose set, obtain the target pose set and the average pose of the non-cooperative target, so as to realize the non-cooperative target pose measurement.

Citation Information

Patent Citations

  • Deep learning and geometric algorithm combined non-cooperative target relative pose estimation method

    CN111862126A

  • Spatial non-cooperative target relative pose estimation method based on deep learning

    CN111862201A

  • Pose prediction method and device for spatial non-cooperative target

    CN112407344A

  • Rotating target detection method and device based on Gaussian distribution

    CN115424267A

  • Spatial non-cooperative target pose measurement method and device, computer equipment and medium

    CN116363217A