A 6D posture real-time estimation method and device for astronauts leaving the spacecraft
By using deep learning and template matching combined with human structure constraints in the space environment, the accuracy problem of 6D pose estimation of astronauts outside the spacecraft has been solved, achieving higher-precision and adaptable pose estimation, and expanding space applications. .
Patent Information
- Application Number
- CN202410436907.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for existing technology to accurately estimate the 6D pose of an out-of-vehicle astronaut in the space environment, mainly due to problems with illumination changes, non-rigid targets and incomplete image representation.
By obtaining the center and boundary of the target object from the image to be analyzed, segmentation and initial pose estimation are performed, and optimization is performed based on human structure constraints, motion constraints and scene constraints, and deep learning and template matching methods are used to achieve 6D imaging of the astronauts outside the cabin. Real-time pose estimation.
The accuracy and adaptability of the 6D attitude estimation of the astronauts in the space are improved, and it is suitable for the pose estimation of non-cooperative targets in space. It is of great significance for the status display of the space and on-orbit space services.
Smart Images

Figure CN118096890B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of aerospace measurement and control, and in particular to a 6D posture real-time estimation method and device for astronauts leaving a spacecraft. Background Art
[0002] The detection, behavior recognition and status monitoring of astronauts during extravehicular activities are of great significance to the fields of extravehicular situation display and in-orbit space services, and have become a hot topic in the aerospace research field at home and abroad.
[0003] From the perspective of technical means, in the past decade or so, 3D vision has experienced tremendous development from robots, games to VR / AR. The widespread application of these products has greatly promoted the development of 6D object pose estimation. Most object pose estimators are designed for specific rigid objects and require 3D models of objects to render images to train models. Typical algorithms include Gen6D, Cosypose, Posecnn, and Gdr-net. However, astronauts are non-rigid bodies, and accurate pose estimation cannot be achieved using the above methods. Three-dimensional human pose estimation usually simplifies complex human bodies into models (such as stick models, cylinder models, SMPL models, etc.), and then iteratively optimizes model parameters so that the projection of model features in each view is gradually matched and optimized with the features extracted from the image. Its essence is the maximum likelihood probability problem of parameter estimation. Typical human pose estimation algorithms include SMPL, SMPL-X, STAR, etc. These methods have complex models and are difficult to adapt to the complex environment in space.
[0004] From the application characteristics, facing the application background of astronauts extravehicular activities, the main difficulties of typical vision-based 6D object pose estimation are: first, the lighting in the space environment varies greatly, the imaging quality of images varies, and astronauts extravehicularly face the direct sunlight, which causes them to be affected by strong reflections. In addition, since outer space is generally dark, when part of the sun shines on the astronauts' bodies, an image with obvious alternation of yin and yang will appear. Second, astronauts extravehicularly are non-rigid targets and are difficult to match using a single rigid body model. Third, astronauts extravehicularly may not appear in the image in their entirety, and may be in the form of their head, half of their body, or their entire body, and they may be blocked by other objects. Summary of the invention
[0005] The present invention provides a 6D posture real-time estimation method and device for astronauts leaving the spacecraft, which is used to solve the problem that human posture estimation algorithms in the prior art are difficult to adapt to the influence of the complex environment in space and are difficult to estimate.
[0006] The method comprises: obtaining the center and boundary of the target object from the image to be analyzed; the image to be analyzed is an image of a fixed camera of a space station or a camera mounted on a robotic arm; the target object is an astronaut who has left the spacecraft in the image to be analyzed;
[0007] Segmenting the target object to obtain a plurality of segments;
[0008] The input image of each segmented part is estimated to further estimate the initial posture of the astronaut leaving the spacecraft, and then optimization is performed to obtain the accurate posture.
[0009] Optionally, the method further includes:
[0010] The initial posture is optimized through human body structure constraints, motion constraints and scene constraints to obtain an accurate posture.
[0011] Optionally, obtaining the center and boundary of the target object from the image to be analyzed includes:
[0012] Selecting a first background frame from a background data set, wherein the photometric error between the first background frame and the image frame of the image to be analyzed is the smallest; the background data set includes background frames under different lighting and external environments;
[0013] The center and the boundary of the target object are determined based on the image frame and the first background frame.
[0014] Optionally, the method further includes:
[0015] Setting Thresholds ;
[0016] Compare the pixel values of the first background frame and the pixel values of the image frame The absolute difference between The size of the image to be analyzed is obtained by (x, y) Pixel attributes of pixels ,
[0017] ,
[0018] In the formula, When the value of is 1, the pixel value of the image frame is the foreground; when the value of is 0, the pixel value of the image frame is the background;
[0019] A background frame silhouette is determined based on the foreground and the background.
[0020] Optionally, determining the center and boundary of the target object based on the image frame and the first background frame includes:
[0021] Adding a scale extension to the background frame silhouette , to obtain the size of the target object on the image frame d and Center .
[0022] Optionally, segmenting the target object to obtain a plurality of segmented parts includes:
[0023] The target object is segmented into multiple segments by fusing a segmentation network of channel attention and spatial attention on deeplab v3, and the segmentation network is trained by a deep learning framework pytorch; the segments include: head, torso, thigh, calf, foot, upper arm, lower arm and hand.
[0024] Optionally, estimating the input image of each segmented portion and then estimating the initial posture of the astronaut leaving the spacecraft includes:
[0025] An input image estimating the segmented portion by matching with a template;
[0026] Extracting feature maps of the input image and the reference image;
[0027] Multiply the feature map of the reference image at each pose by the feature map of the input image to obtain the score map of the reference image at each pose;
[0028] Each score map is processed to obtain first reference image position information and rotation information, based on the first reference image.
[0029] Optionally, optimizing the initial pose by human body structure constraints, motion constraints, and scene constraints includes:
[0030] The pose of the astronaut's joints is defined as the variable node of the state variable, and a factor graph is constructed with human structure constraints, motion constraints and scene constraints as factors to establish an error energy function.
[0031] The minimum value of the error energy function is obtained to obtain the optimal estimate of the posture in the sense of least squares to optimize the initial posture.
[0032] The present invention provides a real-time estimation device for 6D posture of an astronaut outside the spacecraft, the device comprising:
[0033] An acquisition unit is used to obtain the center and boundary of a target object from an image to be analyzed; the image to be analyzed is an image taken by a fixed camera of a space station or a camera mounted on a robotic arm; the target object is an astronaut who has left the spacecraft in the image to be analyzed;
[0034] A segmentation unit, used for segmenting the target object to obtain a plurality of segmented parts;
[0035] The estimation unit is used to estimate the input image of each segmented part and then estimate the initial posture of the astronaut leaving the spacecraft, and then optimize the initial posture through human body structure constraints, motion constraints and scene constraints to obtain an accurate posture.
[0036] A computer-readable storage medium in the present invention stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any of the methods described above.
[0037] The present invention is based on the assumption that the astronauts who are about to leave the spacecraft are flexibly connected to a rigid body, and realizes the detection and segmentation of the target object through background frame silhouette and semantic segmentation; at the same time, it combines the methods of deep learning and template matching to realize the initial estimation of the overall posture. Compared with the traditional posture estimation method based on template matching, it has higher accuracy and stronger adaptability. The problem of 6D posture estimation of astronauts who are about to leave the spacecraft has been solved. The embodiments of the present invention are conducive to improving the accuracy of 6D posture estimation of astronauts who are about to leave the spacecraft, and can be extended to the posture estimation of non-cooperative targets in space, which is of great significance for extravehicular situation display and space on-orbit services. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a flow chart of a 6D posture real-time estimation method for astronauts leaving the spacecraft in an embodiment of the present invention;
[0039] Figure 2 is a flow chart of a method for coarsely detecting an astronaut leaving a spacecraft in an image based on image silhouette in an embodiment of the present invention;
[0040] Figure 3 It is an astronaut semantic segmentation network model integrating an attention mechanism in an embodiment of the present invention;
[0041] Figure 4 is a schematic diagram of the initial posture solving network architecture in an embodiment of the present invention;
[0042] Figure 5 Schematic diagram of a method for obtaining a minimum value of an error energy function in an embodiment of the present invention;
[0043] Figure 6 It is a structural diagram of a 6D posture real-time estimation device for astronauts leaving the spacecraft in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0045] It should be understood that in the various embodiments of this document, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this document.
[0046] The embodiment of the present invention provides a 6D posture real-time estimation method for astronauts outside the spacecraft, such as Figure 1 As shown, the method includes:
[0047] Step 100, obtaining the center and boundary of the target object from the image to be analyzed; the image to be analyzed is an image imaged by a fixed camera of the space station or a camera mounted on a robotic arm; the target object is an astronaut in the image to be analyzed. Specifically, the image to be analyzed is acquired by using a fixed camera on the spacecraft or a camera mounted on a robotic arm. Astronauts usually only occupy a small area on the image to be analyzed, so it is necessary to accurately extract the astronauts from the larger imaging image. When extracting, the embodiment of the present invention needs to first detect the moving area from the image to be analyzed, and then determine the center and outline of the astronaut in the image to be analyzed through the background frame silhouette.
[0048] Step 200, segment the target object. Astronauts are different from traditional rigid objects and flexible objects such as human bodies. Due to the constraints of space suits and the influence of the space environment, the astronauts' bodies are regarded as flexible connections of rigid bodies in the embodiment of the present invention. Therefore, semantic segmentation is first used to segment the astronauts into different parts according to the connection points of the flexible connections, so as to estimate the input image of the local posture separately in the subsequent step.
[0049] Step 300, estimate the input image of each segmented part and then estimate the initial pose of the astronaut, and then optimize to obtain the accurate pose. Specifically, first estimate the initial pose of each segmented part by deep learning and template matching methods, then optimize the initial pose by human body structure constraints, motion constraints and scene constraints, and finally obtain the accurate pose of the astronaut. The template matching method can be used in the initial pose estimation, but the present invention is not limited to this method.
[0050] The embodiment of the present invention is based on the assumption that the astronauts who are out of the cabin are flexibly connected to the rigid body, and realizes the detection and segmentation of the target object through the background frame silhouette and the semantic segmentation network; at the same time, the method of deep learning and template matching is combined to realize the initial estimation of the overall posture, and then the initial posture is optimized through the human body structure constraint, motion constraint and scene constraint to obtain the accurate posture. Compared with the traditional posture estimation method based on template matching, it has higher accuracy and stronger adaptability. It solves the problem of 6D posture estimation of astronauts who are out of the cabin, and the embodiment of the present invention is conducive to improving the accuracy of 6D posture estimation of astronauts who are out of the cabin, and can be extended to the posture estimation of non-cooperative targets in space, which is of great significance for extravehicular situation display and space on-orbit service.
[0051] The 6D posture real-time estimation method for astronauts outside the spacecraft in the preferred embodiment of the present invention preferably further includes:
[0052] The initial pose is optimized by human body structure constraints, motion constraints and scene constraints. The initial pose is globally optimized by human body structure constraints, motion constraints and scene constraints to improve the pose estimation accuracy. The specific method is as follows: the pose of the human joint is defined as the variable node of the state variable, and a factor graph is constructed with human body structure constraints, motion constraints and scene constraints as factors. The variable nodes in the factor graph are the 6D poses of each joint of the astronaut in the carrier coordinates. Based on this, an error energy function is established, and then the minimum value of the error energy function is obtained by an optimization method to obtain the optimal estimate of the pose in the sense of least squares. Among them, the human body structure constraints include joint relationship constraints and joint size constraints. Since the relationship between the sampling camera and the space background is relatively fixed, the background constraints mainly include projection constraints and contact constraints.
[0053] In the preferred embodiment of the present invention, the 6D pose real-time estimation method for astronauts outside the spacecraft preferably obtains the center and boundary of the target object from the image to be analyzed, including:
[0054] A first background frame is selected from the background data set, and the photometric error between the first background frame and the image frame of the image to be analyzed is the smallest; the background data set includes background frames under different lighting and external environments. Specifically, a fixed camera is used to collect background frames under different lighting and external environments, and the background frames are integrated into a background data set. B , for a target object ,exist B Find and Background frame with the smallest mid-light error As the first background frame.
[0055] The center and the boundary of the target object are determined based on the image frame and the first background frame.
[0056] Specifically, in order to focus on the target object in this step, it is necessary to perform a rough detection on the target object first. Figure 2 The flowchart of the rough detection method of astronauts in an image based on image silhouette is shown in Figure 1. The rough detection problem of astronauts in an image is decomposed into two parts: one is to find the two-dimensional projection of the center of the target object, that is, to determine the center of the target object; the other is to estimate the size of the square bounding box surrounding the target object, that is, to determine the boundary or outline of the target object.
[0057] Under different lighting conditions, background frames have large differences, so the modeling and selection of background frames will affect the effect of foreground extraction. Therefore, the "nearest background frame matching" method is used to overcome the influence of lighting changes. Specifically, firstly, background frames under different lighting and external environments are selected to form a background data set. In the background data set, the rough detection results are obtained by image binarization, and then the center and boundary of the rough detection results are determined, and then the target coordinates are normalized to obtain the target detection results.
[0058] The 6D posture real-time estimation method for astronauts outside the spacecraft in the preferred embodiment of the present invention preferably further includes:
[0059] Setting Thresholds ;
[0060] Compare the pixel values of the first background frame and the pixel values of the image frame The absolute difference between The size of the image to be analyzed is obtained by (x, y) The pixel attributes of the first pixel ,
[0061] ,
[0062] In the formula, When the value of is 1, the first pixel value is the foreground; when the value of is 0, the pixel value of the first pixel is the background.
[0063] A background frame silhouette is determined based on the foreground and the background.
[0064] Since the camera field of view and the background are relatively fixed, the foreground and the background can be distinguished by comparing the image frame of the image to be analyzed with the first background frame, and then the silhouette of the background frame can be determined.
[0065] In the preferred embodiment of the present invention, the 6D pose real-time estimation method for astronauts outside the spacecraft preferably includes: determining the center and boundary of the target object based on the image frame and the first background frame:
[0066] Adding a scale extension to the background frame silhouette , to obtain the size of the target object on the image frame d and Center Specifically, the background frame silhouette is expanded to increase the scale extension , The size of can be 0.1, which can be determined by adjusting the parameters. The above method is used to implement coarse detection to determine the center and boundary of the target object, and the coordinates of the target object are normalized to obtain the coarse detection result of the target object.
[0067] Specifically, since the target object needs to be further detected in a more detailed manner in the future, although the scale extension reduces the accuracy of the target rough detection to a certain extent, it improves the reliability of the detection. d and the center of the target object The specific formula is as follows:
[0068] ,
[0069] ,
[0070] in, x max is the right boundary of the target object in the image, x min is the left boundary of the target object in the image, y max is the upper boundary of the target object in the image, y min is the lower boundary of the target object in the image.
[0071] Normalizing the coordinates of the target object is as follows: given the target object size d and the object center , according to the original coordinates The corresponding normalized coordinates The relevant formula is: To normalize the coordinates of the target object.
[0072] In the preferred embodiment of the present invention, the real-time 6D pose estimation method for astronauts outside the spacecraft preferably includes segmenting the target object to obtain multiple segmented parts:
[0073] By fusing the segmentation network of channel attention channel and spatial attention on the basis of deeplab v3, the astronaut semantic segmentation network with fusion attention mechanism is obtained, the target object is segmented into multiple segments, and the segmentation network is trained by the deep learning framework pytorch; the segments include: head, torso, thigh, calf, foot, upper arm, lower arm and hand, such as Figure 2 Based on deeplab V3, the present invention designs an astronaut semantic segmentation network integrating attention mechanism, and realizes accurate detection and semantic segmentation of astronauts.
[0074] Specifically, the astronaut semantic segmentation network with integrated attention mechanism designed by the present invention is designed on the basis of deeplab v3, and integrates channel attention channel and spatial attention. The algorithm is as follows Figure 3As shown in the figure. The dilated convolution module obtains feature information at multiple scales through parallel multi-scale dilated convolution. Different feature channels in the convolutional network respond to different semantic information respectively. After feature extraction through the depth-separable convolution layers of different channels (dilated convolutions with dilated rates of 6, 12, and 18 and global average pooling), the results processed by different modules are concatenated and fused, and finally dimensionality reduction is performed through 1×1 convolution. After that, the feature map processed by the channel attention channel module is fused with the feature to extract rich contextual information and obtain effective high-level features. The spatial attention channel can adaptively combine low-level features with high-level features, and use high-level features to filter background information. The spatial attention channel pays more attention to the foreground area and focuses on the features of the target area, which helps to generate more effective feature maps and improve segmentation effects.
[0075] Then, the fused feature map of the encoder and the feature map extracted by the spatial attention channel are used as input information. On the basis that the decoder only extracts the channel attention features, a new channel is added to extract feature maps from the spatial attention channel to increase feature information, thereby improving the accuracy of the algorithm. The extracted feature maps are processed by the spatial attention (SA) module respectively. In the SA module, two layers of convolution are first used to process the high-level features to obtain the spatial focus points. The low-level features are then reduced in dimension by 1×1 convolution and fused with the high-level features. After that, the two low-level features are fused into one by addition, and then effectively fused with the high-level features obtained by downsampling 4 times in the encoder to finally obtain the segmentation result map. The embodiment of the present invention uses binary cross entropy (BCE) and Dice loss coefficient (Diceloss) as the loss function of the semantic segmentation network. The binary cross entropy loss function is
[0076] ,
[0077] Where: N is the number of pixels of the target object; y i and p i Respectively i The label value and predicted probability of each pixel.
[0078] The dice loss coefficient function expression is as follows, To set the value, it is used to avoid overfitting, which can be set to 1:
[0079] ,
[0080] The combined loss function used in the embodiment of the present invention is:
[0081] ,
[0082] The combined loss function can focus on both the pixel-level classification accuracy and the foreground segmentation effect of the target object, making the model training more stable and thus obtaining more accurate pixel-level detection results.
[0083] The embodiment of the invention uses the deep learning framework pytorch to train the semantic segmentation network. The experiment trains 5K rounds in total, and the size of each round is set to 256.
[0084] Preferably, estimating the input image of each segmented portion and then estimating the initial posture of the astronaut exiting the spacecraft comprises:
[0085] An input image estimating the segmented portion by matching with a template;
[0086] Based on the motion solution based on the sequence images, a reference image is selected, and feature maps of the input image and the reference image are extracted;
[0087] Multiply the feature map of the reference image at each pose by the feature map of the input image to obtain the score map of the reference image at each pose;
[0088] Each score map is processed to obtain first reference image position information and rotation information, based on the first reference image. Specifically, the first reference image is the reference image position information and rotation information that are most similar to the input image.
[0089] Specifically, Figure 4As shown in the figure, in order to improve the real-time performance of pose solution, the feature extraction module first obtains the pre-pose by using the motion solution method based on the sequence image, and selects the reference image that is close to the pre-pose of the input image. Then, each input image and reference image are rotated by N angles of size [−π, π], and the pose of the reference image is known. In this case, the size of N can be set to 720. The input image and the reference image are respectively input into the Alexnet network to extract the feature maps of the input image and the reference image. Based on this, the template matching module is used to perform feature mapping at multiple pixel levels (in this case, four feature dimensions of 512*16*16, 512*8*8, 512*4*4 and 512*2*2 are used), and the feature maps of the input image and the reference image at each level are output. The feature maps of the above two types of images are multiplied in each dimension to obtain the score map of each reference image. The pose solution module outputs the pose of the reference image with the most similar viewpoint by calculating and analyzing the score map of the reference image, thereby obtaining the initial pose estimation result of the astronaut leaving the cabin. Specifically, the analysis method of the pose solution module is to calculate the mean and variance of the score maps of all reference images through convolution, normalize each score map using the mean and variance, and apply "max pooling" to generate a similarity feature vector, and finally generate the position similarity and rotation angle of each reference image to finally obtain the astronaut's initial pose.
[0090] Furthermore, the initial position of the astronauts outside the spacecraft includes position information and attitude information (i.e., rotation angle). First, when inputting the reference image, it is necessary to calculate the position similarity between the input image and the reference image at different rotation angles. In the carrier coordinate system, the center of the object is the origin, and the position of all reference images in the camera is represented as , R represents a real number, is the pose number of the reference image. is the vector from the camera to the center of the object. During the training process, the camera posture is known, and the position of the input image in the carrier coordinate system has been obtained . and All passed and Normalize. Dot product That is i The position similarity between the reference image and the input image.
[0091] Based on the above similarity, the index of the reference image of the most similar viewpoint is:
[0092] ,
[0093] The similarity loss is
[0094] ,
[0095] in, It is i The predicted similarity scores of reference images, is the predicted similarity score of the most similar viewpoint. The present invention regards this similarity training as a classification problem, and only the reference image with the most similar viewpoint is the correct category.
[0096] In addition, for the rotation angle estimation, the present invention adopts L2 loss,
[0097] ,
[0098] in, is the rotation angle of the input image that is closest to the reference image, is the estimated rotation angle between the input image and the reference image.
[0099] The 6D pose real-time estimation method for astronauts in the preferred embodiment of the present invention preferably optimizes the initial pose through human body structure constraints, motion constraints and scene constraints, including:
[0100] The pose of the astronaut's joints is defined as the variable node of the state variable, and a factor graph is constructed with human structure constraints, motion constraints and scene constraints as factors to establish the error energy function. i The position and posture of each joint of the human body at this moment are defined as the variable node of the state variable xi , and construct a factor graph with human structure constraints, motion constraints and scene constraints as factors, and establish an error energy function:
[0101] ,
[0102] In this example, For astronaut joint assembly, k is the joint index; T It's the last moment. i is the time index, is the measured value of joint k at time t, is the estimated state at time t, are all the states to be estimated, is the optimal solution, is the conditional probability of the observation under the current state. It's the astronauts. i Time Type The error residuals between the predicted and measured values (human structure constraints, motion constraints, and scene constraints), the quadratic cost of each residual is calculated through the corresponding covariance matrix Weighted.
[0103] The minimum value of the error energy function is obtained to obtain the optimal estimate of the least squares posture to optimize the initial posture of the astronaut leaving the spacecraft, such as Figure 5 As shown, the method is to minimize the energy of the entire system. Specifically, the human body structure constraints include joint relationship constraints and joint size constraints. Since the relationship between the sampling camera and the spatial background is relatively fixed, the scene constraints in the specific embodiment of the present invention mainly include projection constraints and contact constraints.
[0104] The embodiment of the present invention also provides a 6D posture real-time estimation device for astronauts leaving the spacecraft, such as Figure 6 As shown, the device comprises:
[0105] The acquisition unit 301 is used to obtain the center and boundary of the target object from the image to be analyzed; the image to be analyzed is an image taken by a fixed camera of the space station or a camera on a robotic arm; the target object is an astronaut in the image to be analyzed;
[0106] A segmentation unit 302, configured to segment the target object to obtain a plurality of segmented parts;
[0107] The estimation unit 303 is used to estimate the input image of each segmented part and then estimate the initial posture of the astronaut leaving the spacecraft.
[0108] A specific embodiment of the present invention further provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the method described in any one of the above embodiments.
[0109] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0110] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0111] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0112] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0113] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of the present invention is intended to be limited by the claims and their equivalents.
Claims
1. A 6D pose real-time estimation method for astronauts outside the spacecraft, characterized in that: The method comprises: Obtaining the center and boundary of the target object from the image to be analyzed; the image to be analyzed is an image taken by a fixed camera of the space station or a camera mounted on a robotic arm; the target object is an astronaut in the image to be analyzed; Segmenting the target object to obtain a plurality of segments; Estimate the input image of each segmented part and then estimate the initial posture of the astronaut, and then optimize to obtain the accurate posture; The method further comprises: optimizing the initial posture through human body structure constraints, motion constraints and scene constraints to obtain an accurate posture; Obtaining the center and boundary of the target object from the image to be analyzed includes: Selecting a first background frame from a background data set, wherein the photometric error between the first background frame and the image frame of the image to be analyzed is the smallest; the background data set includes background frames under different lighting and external environments; Determine the center and boundary of the target object based on the image frame and the first background frame; The method further comprises: Set the threshold T; Compare the pixel value B of the first background frame k (x, y) and the pixel value I of the image frame k The absolute difference between (x, y) and the threshold T is used to obtain the pixel attribute A of the first pixel at the position (x, y) in the image to be analyzed. k (x,y), In the formula, A k When the value of (x, y) is 1, the pixel value of the first pixel is the foreground; when the value of (x, y) is 0, the pixel value of the first pixel is the background; Determine a background frame silhouette according to the foreground and the background; Determining the center and the boundary of the target object based on the image frame and the first background frame includes: Adding a scale extension τ to the background frame silhouette to obtain the size d and center c(x0, y0) of the target object on the image frame; Estimating the input image of each segmented portion and then estimating the initial pose of the astronaut exiting the spacecraft comprises: An input image estimating the segmented portion by matching with a template; Extracting feature maps of the input image and the reference image; Multiply the feature map of each reference image by the feature map of the input image to obtain the score map of each reference image; Processing each score image to obtain position information and rotation information of a first reference image, and obtaining an initial position and posture of the extravehicular astronaut according to the first reference image; Optimizing the initial pose by human structure constraints, motion constraints, and scene constraints to obtain an accurate pose includes: The pose of the astronaut's joints is defined as the variable node of the state variable, and a factor graph is constructed with human structure constraints, motion constraints and scene constraints as factors to establish an error energy function. The minimum value of the error energy function is obtained to obtain the optimal estimate of the posture in the sense of least squares to optimize the initial posture.
2. The 6D pose real-time estimation method for astronauts outside the spacecraft according to claim 1 is characterized in that: Segmenting the target object to obtain multiple segments includes: The target object is segmented into multiple segments by fusing a segmentation network of channel attention and spatial attention on deeplab v3, and the segmentation network is trained by a deep learning framework pytorch; the segments include: head, torso, thigh, calf, leg, upper arm, lower arm and hand.
3. A 6D posture real-time estimation device for astronauts leaving the spacecraft, characterized in that: The device comprises: An acquisition unit is used to obtain the center and boundary of a target object from an image to be analyzed; the image to be analyzed is an image of a fixed camera of a space station or a camera mounted on a robotic arm; the target object is an astronaut who has left the spacecraft in the image to be analyzed; obtaining the center and boundary of a target object from an image to be analyzed includes: Selecting a first background frame from a background data set, wherein the photometric error between the first background frame and the image frame of the image to be analyzed is the smallest; the background data set includes background frames under different lighting and external environments; Determine the center and boundary of the target object based on the image frame and the first background frame; A segmentation unit, used for segmenting the target object to obtain a plurality of segmented parts; An estimation unit is used to estimate the input image of each segmented part and then estimate the initial posture of the astronaut leaving the spacecraft, and then optimize to obtain an accurate posture; estimating the input image of each segmented part and then estimating the initial posture of the astronaut leaving the spacecraft includes: An input image estimating the segmented portion by matching with a template; Extracting feature maps of the input image and the reference image; Multiply the feature map of each reference image by the feature map of the input image to obtain the score map of each reference image; Processing each score image to obtain position information and rotation information of a first reference image, and obtaining an initial position and posture of the extravehicular astronaut according to the first reference image; The estimation unit is also used to optimize the initial posture through human body structure constraints, motion constraints and scene constraints to obtain an accurate posture; it includes: The pose of the astronaut's joints is defined as the variable node of the state variable, and a factor graph is constructed with human structure constraints, motion constraints and scene constraints as factors to establish an error energy function. Finding the minimum value of the error energy function, obtaining the optimal estimate of the posture in the sense of least squares to optimize the initial posture; The estimation unit is also used to: Set the threshold T; Compare the pixel value B of the first background frame k (x, y) and the pixel value I of the image frame k The absolute difference between (x, y) and the threshold T is used to obtain the pixel attribute A of the first pixel at the position (x, y) in the image to be analyzed. k (x,y), In the formula, A k When the value of (x, y) is 1, the pixel value of the first pixel is the foreground; when the value of (x, y) is 0, the pixel value of the first pixel is the background; Determine a background frame silhouette according to the foreground and the background; Determining the center and the boundary of the target object based on the image frame and the first background frame includes: A scale extension τ is added to the background frame silhouette to obtain the size d and center c (x0, y0) of the target object on the image frame.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the method according to claim 1 or 2.
