Human motion capture method, device, equipment, medium and program
By capturing human body images with head-mounted devices, and using deep learning networks and inverse dynamics methods, human body motion capture without wearing equipment is realized, which solves the problem of users' sense of restraint in the existing technology and improves user experience and accuracy of motion capture. sex.
Patent Information
- Application Number
- CN202310465797.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-10-29
AI Technical Summary
Existing human motion capture technology requires wearable devices to be worn on wrists, ankles and other parts, causing users to feel a strong sense of restraint and reducing user experience.
Human body images are captured by the head-mounted device, and the deep learning network is used to determine the movement information of key nodes of the human body, including the position and posture information of key nodes such as hands, feet, and waist. Combined with the pose information of the head-mounted device, through the inverse dynamics method Estimating the posture information of the human body avoids wearing equipment on key nodes.
It improves the user experience, liberates the user's hands, realizes purely visual human body motion capture, enhances the naturalness of human-computer interaction, and improves the accuracy of motion capture and user satisfaction.
Smart Images

Figure CN118865480A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of human motion capture, and in particular, to a method, device, setting, medium and program for human motion capture. Background Art
[0002] Human motion capture technology is a technology that can detect the posture information and motion trajectory of the human body in three-dimensional space and reproduce human motion in a virtual three-dimensional environment. It is widely used in film production, motion analysis, game production and medical diagnosis.
[0003] At present, the method of human motion capture mainly uses inertial data collected by inertial sensors (Inertial Measurement Unit, IMU). Taking the virtual reality (VR) scene as an example, users need to wear wearable devices with integrated IMUs on their wrists, ankles and other parts. The head-mounted device estimates the human body posture information based on the IMU data sent by the wearable devices worn on the wrists, ankles and other parts and the IMU data of the head-mounted device.
[0004] However, wearing wearable devices on the wrists, ankles and other parts of the human body makes the user feel restrained, which reduces the user experience. Summary of the invention
[0005] The embodiments of the present application provide a human motion capture method, apparatus, device, medium and program, which determine the motion information of key nodes of the human body based on the human body image captured by a head-mounted device. There is no need to wear wearable devices at the key nodes of the human body to assist in detecting the motion information of the key nodes of the human body, thereby improving the user experience.
[0006] In a first aspect, an embodiment of the present application provides a method for capturing human motion, the method comprising:
[0007] Get the posture information of the head-mounted device;
[0008] Acquire a human body image captured by the head mounted device;
[0009] Determine, according to the human body image, motion information of key nodes of the human body, wherein the motion information of the key nodes includes position information or posture information of the key nodes, and the key nodes include one or more of hand key nodes, foot key nodes or waist key nodes;
[0010] Determine the movement information of the head according to the posture information of the head mounted device, wherein the movement information of the head includes the position information or posture information of the head;
[0011] According to the motion information of the key nodes and the motion information of the head, the posture information of the human body is determined by an inverse dynamics method.
[0012] In some embodiments, determining the motion information of key nodes of the human body according to the human body image includes:
[0013] The human body image is input into a deep learning network to obtain motion information of the key nodes of the human body.
[0014] In some embodiments, the deep learning network includes a first sub-deep learning network and a second sub-deep learning network;
[0015] The step of inputting the human body image into a deep learning network to obtain motion information of the key nodes of the human body includes:
[0016] Inputting the human body image into the first sub-deep learning network to obtain motion information of the key nodes of the hand;
[0017] The human body image is input into the second sub-deep learning network to obtain the motion information of the key nodes of the foot.
[0018] In some embodiments, the second sub-deep learning network also outputs motion information of the waist key nodes.
[0019] In some embodiments, the deep learning network further includes a third sub-deep learning network, and the method further includes:
[0020] The human body image is input into the third sub-deep learning network to obtain the motion information of the waist key nodes.
[0021] In some embodiments, when the motion information of the key node includes the position information of the key node, and the motion information of the head includes the position information of the head, determining the posture information of the human body by an inverse dynamics method according to the motion information of the key node and the motion information of the head includes:
[0022] Determining the posture information of the key nodes and the posture information of the head by an inverse dynamics method according to the position information of the key nodes and the position information of the head;
[0023] The posture information of other nodes of the human body is determined according to the posture information of the key nodes and the posture information of the head.
[0024] In some embodiments, the method further comprises:
[0025] The deep learning network is trained by using human sample images, wherein the labels of the human sample images are actual motion information of the key nodes, and the actual motion information of the key nodes includes actual position information or actual posture information of the key nodes;
[0026] Calculating the loss of the deep learning network according to the label of the human sample image and the estimated motion information output by the deep learning network;
[0027] The parameters of the deep learning network are updated according to the loss of the deep learning network.
[0028] In some embodiments, the calculating the loss of the deep learning network according to the label of the human sample image and the estimated position information output by the deep learning network includes:
[0029] When the key node is visible in the human sample image, the loss of the deep learning network is calculated according to the label of the human sample image and the estimated motion information output by the deep learning network.
[0030] In some embodiments, the method further comprises:
[0031] Determining the confidence of the key node according to the human body sample image;
[0032] Whether the key node is visible is determined according to the confidence level of the key node.
[0033] In some embodiments, the motion information of the foot key node is the motion information of the human ankle, and / or the motion information of the hand key node is the motion information of the human wrist.
[0034] In some embodiments, the head-mounted device uses a visual simultaneous localization and mapping (SLAM) method to obtain the position information of the head-mounted device.
[0035] On the other hand, an embodiment of the present application provides a human motion capture device, the device comprising:
[0036] A first acquisition module is used to acquire the position and posture information of the head mounted device;
[0037] A second acquisition module, used to acquire a human body image captured by the head mounted device;
[0038] A first position determination module is used to determine motion information of key nodes of the human body according to the human body image, wherein the motion information of the key nodes includes position information or posture information of the key nodes, and the key nodes include one or more of hand key nodes, foot key nodes or waist key nodes;
[0039] A second position determination module, configured to determine head motion information according to the posture information of the head mounted device, wherein the head motion information includes the position information or posture information of the head;
[0040] The posture estimation module is used to determine the posture information of the human body through an inverse dynamics method according to the motion information of the key nodes and the motion information of the head.
[0041] On the other hand, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute any of the methods described above.
[0042] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program enables a computer to execute any of the methods described above.
[0043] On the other hand, an embodiment of the present application provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, it implements any of the methods described above.
[0044] The human motion capture method, device, equipment, medium and program provided in the embodiments of the present application obtain the posture information of the head-mounted device, obtain the human body image captured by the head-mounted device, determine the motion information of the key nodes of the human body based on the human body image, the motion information of the key nodes includes the position information or posture information of the key nodes, and the key nodes include one or more of the hand key nodes, foot key nodes or waist key nodes; determine the motion information of the head based on the posture information of the head-mounted device, the motion information of the head includes the position information or posture information of the head; determine the posture information of the human body through the inverse dynamics method based on the motion information of the key nodes and the motion information of the head. This method determines the motion information of the key nodes of the human body based on the human body image captured by the head-mounted device, and does not need to wear a wearable device for assisting in detecting the motion information of the key nodes of the human body at the key nodes of the human body, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 A flowchart of a human motion capture method provided in Example 1 of the present application;
[0047] Figure 2 A schematic diagram of the principle of the human motion capture method provided in Example 2 of the present application;
[0048] Figure 3 A schematic diagram of a flow chart of a method for capturing human motion provided in Embodiment 2 of the present application;
[0049] Figure 4 A schematic diagram of the structure of a human motion capture device provided in Example 3 of the present application;
[0050] Figure 5 A structural schematic diagram of an electronic device provided in Example 4 of the present application. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0053] An embodiment of the present application provides a human motion capture method, which can be applied to a head-mounted extended reality (Extended Reality, XR) device, and the head-mounted XR device is also referred to as a head-mounted device.
[0054] Extended Reality (XR) refers to the combination of reality and virtuality through computers to create a virtual environment for human-computer interaction. XR is also a general term for multiple technologies such as Virtual Reality (VR), Augmented Reality (AR) and Mixed Reality (MR). By integrating the visual interaction technologies of the three, it brings the experiencer an "immersive feeling" of seamless transition between the virtual world and the real world. Head-mounted XR devices include but are not limited to head-mounted VR devices, AR devices and MR devices.
[0055] VR: Technology for creating and experiencing a virtual world. It generates a virtual environment by computation. It is a multi-source information (the virtual reality mentioned in this article includes at least visual perception, and can also include auditory perception, tactile perception, motion perception, and even taste perception, olfactory perception, etc.). It realizes the simulation of the fusion and interactive three-dimensional dynamic vision and entity behavior of the virtual environment, immersing users in a simulated virtual reality environment, and realizing applications in various virtual environments such as maps, games, videos, education, medical care, simulation, collaborative training, sales, assisted manufacturing, maintenance and repair.
[0056] VR device refers to a terminal that realizes virtual reality effects, which can usually be provided in the form of glasses, helmet-mounted displays (Head Mount Display, HMD), and contact lenses to realize visual perception and other forms of perception. Of course, the form of virtual reality devices is not limited to this, and can be further miniaturized or enlarged as needed.
[0057] AR: AR scenery refers to a simulated scenery in which at least one virtual object is superimposed on a physical scenery or a representation thereof. For example, an electronic system may have an opaque display and at least one imaging sensor for capturing images or videos of a physical scenery, which are representations of the physical scenery. The system combines the image or video with the virtual object and displays the combination on the opaque display. An individual uses the system to indirectly view the physical scenery via an image or video of the physical scenery and observes the virtual object superimposed on the physical scenery. When the system uses one or more image sensors to capture images of the physical scenery and uses those images to present the AR scenery on an opaque display, the displayed image is referred to as video transmission. Alternatively, an electronic system for displaying an AR scenery may have a transparent or translucent display through which an individual can directly view the physical scenery. The system may display virtual objects on a transparent or translucent display so that an individual uses the system to observe virtual objects superimposed on the physical scenery. As another example, the system may include a projection system that projects virtual objects into a physical scenery. Virtual objects can be projected, for example, on a physical surface or as a hologram, so that individuals using the system observe virtual objects superimposed on a physical setting. Specifically, a technology that calculates the camera's attitude information parameters in the real world (or three-dimensional world, real world) in real time during the process of the camera capturing images, and adds virtual elements to the images captured by the camera based on the camera attitude information parameters. Virtual elements include, but are not limited to: images, videos, and three-dimensional models. The goal of AR technology is to integrate the virtual world into the real world on the screen for interaction.
[0058] MR: By presenting virtual scene information in the real scene, an interactive feedback information loop is established between the real world, the virtual world and the user to enhance the realism of the user experience. For example, computer-created sensory input (e.g., virtual objects) is integrated with sensory input from the physical scene or its representation in the simulated scene. In some MR scenes, the computer-created sensory input can adapt to changes in sensory input from the physical scene. In addition, some electronic systems used to present MR scenes can monitor orientation and / or position information relative to the physical scene so that virtual objects can interact with real objects (i.e., physical elements from the physical scene or their representations). For example, the system can monitor movement so that virtual plants appear stationary relative to physical buildings.
[0059] Optionally, the XR device described in the embodiments of the present application, also known as a virtual reality device, may include but is not limited to the following types:
[0060] 1) Mobile virtual reality devices support the configuration of mobile terminals (such as smart phones) in various ways (such as head-mounted displays with dedicated card slots). Through wired or wireless connection with the mobile terminal, the mobile terminal performs relevant calculations of virtual reality functions and outputs data to the mobile virtual reality device, such as watching virtual reality videos through the mobile terminal's APP.
[0061] 2) All-in-one virtual reality devices have a processor for performing relevant calculations of virtual functions, and thus have independent virtual reality input and output functions. They do not need to be connected to a PC or mobile terminal and have a high degree of freedom in use.
[0062] 3) Computer-based virtual reality (PCVR) devices use the PC to perform relevant calculations and data output for virtual reality functions. External computer-based virtual reality devices use the data output by the PC to achieve virtual reality effects.
[0063] Figure 1 This is a flow chart of a human motion capture method provided in Embodiment 1 of the present application. The method of this embodiment is executed by an XR device. When the XR device is an all-in-one device, the XR device is a head-mounted device. When the XR device is not an all-in-one device, the XR device includes a head-mounted device and a terminal device (such as a mobile phone or a computer, etc.) connected to the head-mounted device. Figure 1 As shown, the human motion capture method includes the following steps.
[0064] S101. Obtaining position information of a head mounted device.
[0065] The posture information of the head-mounted device includes the position information and posture information of the head-mounted device. The positioning module in the head-mounted device is used to locate the posture information of the head-mounted device.
[0066] Optionally, the positioning module adopts a visual simultaneous localization and mapping (SLAM) method to obtain the posture information of the head-mounted device. The positioning module is also called a SLAM module. Exemplarily, the SLAM module can perform positioning based on the image captured by the camera of the head-mounted device and the inertial measurement unit (IMU) The IMU is integrated in the head-mounted device. The IMU is a very common inertial sensor. The IMU measures inertial data, and the inertial data may include three-axis posture information angles and three-axis accelerations.
[0067] S102: Acquire a human body image captured by a head mounted device.
[0068] The human body image is an image of a human body wearing a head mounted device. The human body image is an image including all or part of the human body. One or more cameras are installed on the head mounted device, and the human body image is captured by the camera.
[0069] For example, a common head-mounted device is equipped with 6 cameras, which are installed at different positions and angles. The images taken by different cameras are different. Therefore, the human body images taken by the head-mounted device may include multiple human body images taken at different angles at the same time.
[0070] S103. Determine motion information of key nodes of the human body according to the human body image. The motion information of the key nodes includes position information or posture information of the key nodes. The key nodes include one or more of hand key nodes, foot key nodes or waist key nodes.
[0071] The motion information of the key nodes of the human body includes the position information or posture information of the key nodes, and the posture information includes the position information and posture information, wherein the position information of the key nodes refers to the three-dimensional coordinates of the key nodes, that is, the xyz coordinates of the key nodes, and the three-dimensional coordinates can be the coordinates in the world coordinate system. The posture information of the key nodes refers to the rotation angle of the key nodes on the xyz coordinate axis.
[0072] The position information of the hand key node may be the position information of the wrist or the position information of the palm, and the position information of the foot key node may be the position information of the ankle or the position information of the toe. The waist key node may be used as the root node of the human body, which is a node assumed to be located in the pelvis, and is used to represent the position information of the human body in the world coordinate system. The hand key node of the human body may include one hand key node or two hand (i.e., left and right hand) key nodes, and similarly, the foot key node of the human body may include one foot key node or two foot (i.e., left and right foot) key nodes.
[0073] The XR device can determine the motion information of each key node based on a human body image, or it can determine the motion information of each key node based on multiple human body images taken at different angles at the same time.
[0074] In one implementation, motion information of key nodes of the human body is estimated through a neural network, which may be a deep learning network. A human body image is input into the deep learning network to obtain motion information of key nodes of the human body.
[0075] Deep learning is a type of machine learning that combines low-level features to form more abstract high-level representations of attribute categories or features to discover distributed feature representations of data. The motivation for deep learning is to build a neural network that simulates the human brain for analysis and learning. It imitates the mechanism of the human brain to interpret data, such as images, sounds, and text.
[0076] The deep learning network can be a convolutional neural network (CNN), or a deep belief network (DBN).
[0077] Optionally, the deep learning network includes multiple sub-networks, and the motion information of different key nodes is estimated through different deep learning networks. For example, the deep learning network includes a first sub-deep learning network and a second sub-deep learning network, wherein the first sub-deep learning network is used to estimate the motion information of the hand key nodes, and the second sub-deep learning network is used to estimate the motion information of the foot key nodes.
[0078] Optionally, the second deep learning network is also used to estimate the motion information of the waist key nodes, or the deep learning network also includes a third sub-deep learning network, and the third sub-deep learning network is used to estimate the motion information of the waist key nodes.
[0079] In another implementation, the depth map of the human body image and the camera pose information corresponding to the human body image are obtained, and the three-dimensional coordinates of each pixel point on the human body image can be determined according to the depth map of the human body image and the camera pose information, so as to obtain the three-dimensional coordinates of each key node. The camera pose information includes the rotation matrix and translation matrix of the camera relative to the world coordinate system when shooting the human body image.
[0080] S104: Determine movement information of the head according to the posture information of the head-mounted device, where the movement information of the head includes position information or posture information of the head.
[0081] The posture information of the head-mounted device or the position information in the posture information can be used as the motion information of the human head. Alternatively, the motion information of the human head can be obtained by performing a certain offset on the posture information of the head-mounted device or the position information in the posture information, for example, a certain offset is added to the posture information of the head-mounted device to obtain the posture information of the human head.
[0082] S105. Determine the posture information of the human body by using an inverse dynamics method according to the motion information of the key nodes and the motion information of the head.
[0083] In VR or AR applications, it is necessary to use the posture information of the joints of the human body to drive the animated character to move. The posture information of the human body is the posture information of each joint of the human body, and the posture information of the joint refers to the rotation angle of the joint. In different applications, the defined human body models may be different, and the joints of different models may be different. Exemplarily, the human body model includes a head node, a left shoulder joint, a right shoulder joint, a left elbow node, a right elbow node, a left wrist node, a right wrist node, a waist node, a left hip node, a right hip node, a left knee node, a right knee node, a left ankle node, etc., wherein the left hip node and the right hip node can also be understood as a left hip joint and a right hip joint.
[0084] In this embodiment, the posture information of the human body estimated by the inverse kinematics (IK) method includes at least the posture information of key nodes and the head posture information, and of course, may also include the posture information of other nodes.
[0085] In interactive applications of VR and AR, the IK algorithm can be used to determine the character's movements. The IK algorithm is a method that first determines the position information of the child bone, and then reversely derives the position information of the n-level parent bones on the bone chain to determine the entire bone chain. The principle of the IK algorithm is to drive the parent node to move and rotate by changing the position information and rotation angle of the child node. The IK algorithm takes into account the human body's kinematic constraints when solving the posture information of the human body.
[0086] When the motion information of the key nodes includes the position information of the key nodes, and the motion information of the head includes the position information of the head, the posture information of the key nodes and the posture information of the head can be determined by the inverse dynamics method based on the position information of the key nodes and the position information of the head; the posture information of other nodes of the human body can be determined based on the posture information of the key nodes and the posture information of the head.
[0087] When the motion information of the key nodes includes the position and posture information of the key nodes, and the motion information of the head includes the position and posture information of the head, the posture information of other nodes of the human body can be determined by the inverse dynamics method based on the posture information of the key nodes and the posture information of the head.
[0088] When the motion information of the key nodes includes the position information of the key nodes, and the motion information of the head includes the posture information of the head, the posture information of the key nodes can be determined by the inverse dynamics method based on the position information of the key nodes and the posture information of the head; the posture information of other nodes of the human body can be determined based on the posture information of the key nodes and the posture information of the head.
[0089] Exemplarily, the position information of the two hand key nodes, the position information of the two foot key nodes and the position information of the head are first solved by the IK algorithm to obtain the posture information of the two hand key nodes, the two foot key nodes and the head, and then the posture information of other nodes of the human body is determined according to the posture information of the solved nodes. According to the IK algorithm, starting from the end node, the posture information of the connected upper nodes is determined in turn until the posture information of all nodes is determined.
[0090] Take two hand key nodes and two foot key nodes as examples. Both the two hand key nodes and the two foot key nodes are terminal nodes. The superior node connected to the hand key node is the elbow joint, and the superior node of the elbow joint is the shoulder joint. The superior node connected to the foot key node is the knee joint, and the superior node of the knee joint is the hip joint. Therefore, the posture information of the elbow joint can be determined based on the posture information of the hand key node, and the posture information of the shoulder joint can be determined based on the posture information of the elbow joint. Similarly, the posture information of the knee joint can be determined based on the posture information of the foot key node, and the posture information of the hip joint can be determined based on the posture information of the knee joint.
[0091] It is understandable that when determining the posture information of a node's parent node, the kinematic constraints between nodes need to be considered. Usually, the joints of the elbow and knee joints are assumed to be hinge joints, that is, they can only rotate in a fixed plane. For example, for the elbow node, the plane formed by the shoulder joint, elbow joint and wrist joint is the rotation plane. Nodes other than the hinge joints can be rotated arbitrarily.
[0092] It should be noted that if the head motion information includes the head posture information, it is not necessary to solve the head posture information according to the IK algorithm. If the head motion information does not include the head posture information, it is necessary to solve the head posture information according to the IK algorithm.
[0093] In the prior art, the motion information of the key nodes of the hands, feet, and waist usually requires wearing additional wearable devices at the corresponding key nodes to assist in detecting the motion information of the key nodes. However, the method of this embodiment does not require the user to wear wearable devices at the key nodes of the human body, which improves the user experience. The method of this embodiment is a purely visual human motion capture method, which determines the motion information of the key nodes of the human body based on the human body image captured by the camera of the head-mounted device, thereby freeing the user's hands and improving the user experience. In addition, the purely visual solution is more in line with the naturalness of human-computer interaction.
[0094] In addition, in this embodiment, the more key nodes are used, the more accurate the estimated posture information of the human body is. For example, the posture information of the human body is estimated based on the motion information of at least 5 key nodes of the human body (head, two hand key nodes and two foot key nodes), which can ensure the accuracy of the estimated posture information of the human body. In the virtual character driving in AR or VR games, generally determining the position information of the five nodes of the head, wrists and feet can well determine the posture of the virtual character. If fewer nodes are used to estimate the human body posture information, the estimated human body posture information will be inaccurate.
[0095] It is understandable that the more key nodes are used, the more accurate the estimated human body posture information will be. However, too many nodes will increase the amount of computation required to estimate the key node motion information and the amount of computation required by the IK algorithm, thereby increasing computing resources and latency. Considering the real-time requirements of XR application scenarios, latency and accuracy issues must be considered comprehensively when selecting key nodes.
[0096] After acquiring the posture information of each joint of the human body, the 6 degrees of freedom (DoF) data of each joint of the human body are obtained according to the position information and posture information of each joint. The 6DoF data of the joint includes 3DoF rotation data and 3DoF movement data. The rotation data can be understood as the rotation angle of the joint, and the movement data can be understood as the translation of the joint on the XYZ axis.
[0097] The position information of each joint of the human body is estimated based on the position information of the key nodes of the human body and the head position information determined in S102 and S103.
[0098] In this embodiment, the posture information of the head-mounted device is obtained, and the human body image captured by the head-mounted device is obtained. According to the human body image, the motion information of the key nodes of the human body is determined, and the motion information of the key nodes includes the position information or posture information of the key nodes. The key nodes include one or more of the hand key nodes, the foot key nodes or the waist key nodes; the motion information of the head is determined according to the posture information of the head-mounted device, and the motion information of the head includes the position information or posture information of the head; according to the motion information of the key nodes and the motion information of the head, the posture information of the human body is determined by the inverse dynamics method. This method determines the motion information of the key nodes of the human body based on the human body image captured by the head-mounted device, and it is not necessary to wear a wearable device for assisting in detecting the motion information of the key nodes of the human body at the key nodes of the human body, thereby improving the user experience.
[0099] Based on the first embodiment, the second embodiment of the present application provides a method for capturing human motion, in which a deep learning network is used to determine the motion information of key nodes of a human body. This embodiment is described by taking the deep learning network including a first sub-deep learning network and a second sub-deep learning network as an example.
[0100] Figure 2 The schematic diagram of the principle of the human motion capture method provided in the second embodiment of the present application is as follows: Figure 2 As shown, a human body image is input into the first sub-deep learning network and the second sub-deep learning network, and the human body images input into the first sub-deep learning network and the second sub-deep learning network can be the same or different. When the human body images input into the first sub-deep learning network and the second sub-deep learning network are different, the human body images input into the first sub-deep learning network and the second sub-deep learning network are human body images taken at different angles at the same time by different cameras of the head-mounted device.
[0101] For example, the head-mounted device includes two cameras, and the two cameras are installed in different positions and angles. One camera is used to capture images of human hands, and the other camera is used to capture images of the lower body of the human body. The human body image input into the first sub-deep learning network is also called a hand image, and the human body image input into the second sub-deep learning network is also called a lower body head image.
[0102] The human body image is input into the first sub-deep learning network, and the output of the first sub-deep learning network is the motion information of the hand key nodes. The human body image is input into the second sub-deep learning network, and the output of the second sub-deep learning network is the motion information of the foot key nodes and the waist key nodes. The SLAM module of the head-mounted device outputs the motion information of the head to the IK solution module. The IK solution module solves the posture information of the head, two hand key nodes, two foot key nodes, waist joint nodes and other nodes of the human body according to the motion information of the head output by the SLAM module, the motion information of the hand key nodes output by the first sub-deep learning network, the motion information of the foot key nodes output by the second sub-deep learning network, and the motion information of the waist key nodes.
[0103] Figure 3 A flow chart of a method for capturing human motion provided in the second embodiment of the present application is shown in FIG. Figure 3 As shown, the method provided in this embodiment includes the following steps:
[0104] S201. Obtaining position information of a head mounted device.
[0105] S202: Acquire a human body image captured by a head mounted device.
[0106] S203: Input the human body image into the first sub-deep learning network to obtain motion information of key nodes of the hand.
[0107] S204: Input the human body image into the second sub-deep learning network to obtain motion information of the key nodes of the feet and the key nodes of the waist.
[0108] S205: Determine movement information of the head according to the position and posture information of the head mounted device.
[0109] There is no sequential order for executing steps S202, S203 and S204, and they can also be executed in parallel.
[0110] The SLAM module is an existing module of the XR device itself. The posture information of the head-mounted device in the SLAM module can be used not only for the method of this embodiment, but also for other functions. It can be understood that the method of this embodiment only reads the posture information of the head-mounted device from the SALM module.
[0111] Optionally, in other embodiments of the present application, a third sub-deep learning network may also be included, and the human body image is input into the third sub-deep learning network to obtain the motion information of key nodes, that is, the motion information of each key node is learned through a separate deep learning network.
[0112] S206. Determine the posture information of the human body using the IK method according to the motion information of the head, hand key nodes, foot key nodes and waist key nodes.
[0113] The deep learning network in the embodiment of the present application can be obtained by training with a large number of human sample images. The labels of the human sample images are the actual motion information of the key nodes. The actual motion information of the key nodes includes the actual position information or actual posture information of the key nodes. The deep learning network is trained with human sample images. The output of the deep learning network is the estimated motion information of the human sample images. The loss of the deep learning network is calculated according to the labels of the human sample images and the estimated motion information output by the deep learning network. The loss is used to represent the difference between the actual motion information and the estimated motion information of the human sample images. The parameters of the deep learning network are updated according to the loss of the deep learning network. The final deep learning network can be obtained by performing multiple rounds of iterative training on the training data set. When the iteration end condition is met, the model training is terminated, and the trained deep learning network is used as the final deep learning network. The iteration end condition can be that the loss value reaches a preset threshold, or that the loss value of multiple consecutive rounds no longer decreases.
[0114] During the model training process, if the label of the human sample image is the actual position information of the key node, then the output of the deep learning network is the estimated position information of the key node. If the label of the human sample image is the actual pose information of the key node, then the output of the deep learning network is the estimated pose information of the key node.
[0115] Optionally, the loss of the deep learning network adopts mean squared error (MSE) loss, which is also called L2 loss. The loss can also adopt mean absolute error (MAE), which is also called L1 loss. Of course, other existing loss functions can also be used to calculate the loss of the model. This is just an example, and the embodiment of the present application does not limit the loss function of the deep learning network.
[0116] Optionally, when the key node is visible in the human sample image, the loss of the deep learning network is calculated based on the label of the human sample image and the estimated motion information output by the deep learning network. When the key node is not visible in the human sample image, the human sample image is not included in the loss, that is, the loss of the deep learning network is not calculated using the human sample image.
[0117] Accordingly, before calculating the loss of the deep learning network, it is necessary to determine whether the key node is visible in the human sample image. Optionally, the confidence of the key node is determined based on the human sample image, and whether the key node is visible is determined based on the confidence of the key node. For example, a confidence threshold is set. If the confidence of the key node is greater than or equal to the confidence threshold, it is determined that the key node is visible in the human sample image. If the confidence of the key node is less than the confidence threshold, it is determined that the key node is not visible in the human sample image. The confidence of the key node can be calculated based on a heatmap of the human sample image.
[0118] When the deep learning network includes a first sub-deep learning network and a second sub-deep learning network, a human sample image and a label of the human sample image are input into the deep learning network, and the label of the human sample image input into the first sub-deep learning network is the actual motion information of the hand key node, and the label of the human sample image input into the second sub-deep learning network is the actual motion information of the foot key node and the waist key node. The first sub-deep learning network learns the human sample image to obtain the estimated motion information of the hand key node, and calculates the first loss of the first sub-deep learning network according to the actual motion information and the estimated motion information of the hand key node. The second sub-deep learning network learns the human sample image to obtain the estimated motion information of the foot key node and the waist key node, and calculates the second loss of the second sub-deep learning network according to the actual motion information and the estimated motion information of the foot key node and the waist key node.
[0119] After the first loss and the second loss are calculated, the loss of the entire deep learning network is obtained according to the first loss and the second loss. Exemplarily, the loss of the deep learning network is obtained by taking a weighted average of the first loss and the second loss.
[0120] Similarly, when the deep learning network includes three sub-networks, the losses of the three sub-networks are calculated separately, and the loss of the deep learning network is obtained by weighted average of the losses of the three sub-networks.
[0121] In this embodiment, a human body image captured by a head-mounted device is obtained, and the human body image is input into the first sub-deep learning network to obtain motion information of the key nodes of the hands; the human body image is input into the second sub-deep learning network to obtain motion information of the key nodes of the feet and the key nodes of the waist; and the motion information of the head of the human body is determined by the posture information of the head-mounted device obtained by positioning the SLAM module, and the posture information of the human body is determined by the IK method based on the motion information in the head, the key nodes of the hands, the key nodes of the feet, and the key nodes of the waist. In this method, the motion information of the key nodes of the hands, the key nodes of the feet, and the key nodes of the waist in the human body image is determined by the deep learning network, so that the motion information calculation of the key nodes of the human body is more accurate, thereby improving the accuracy of subsequent human body posture estimation.
[0122] In order to better implement the human motion capture method of the embodiment of the present application, the embodiment of the present application also provides a human motion capture device. Figure 4 A schematic diagram of the structure of a human motion capture device provided in Example 3 of the present application is shown in FIG. Figure 4 As shown, the human body motion capture device 100 may include:
[0123] A first acquisition module 11 is used to acquire the position information of the head mounted device;
[0124] A second acquisition module 12, used to acquire a human body image captured by the head mounted device;
[0125] A first position determination module 13 is used to determine motion information of key nodes of the human body according to the human body image, wherein the motion information of the key nodes includes position information or posture information of the key nodes, and the key nodes include one or more of hand key nodes, foot key nodes or waist key nodes;
[0126] A second position determination module 14 is used to determine the motion information of the head according to the position and posture information of the head-mounted device, wherein the motion information of the head includes the position information or the position and posture information of the head;
[0127] The posture estimation module 15 is used to determine the posture information of the human body through the inverse dynamics method according to the motion information of the key nodes and the motion information of the head.
[0128] In some embodiments, the first location determination module 13 is specifically used to:
[0129] The human body image is input into a deep learning network to obtain motion information of the key nodes of the human body.
[0130] In some embodiments, the deep learning network includes a first sub-deep learning network and a second sub-deep learning network;
[0131] The first position determination module 13 is specifically used for:
[0132] Inputting the human body image into the first sub-deep learning network to obtain motion information of the key nodes of the hand;
[0133] The human body image is input into the second sub-deep learning network to obtain the motion information of the key nodes of the foot.
[0134] In some embodiments, the second sub-deep learning network also outputs motion information of the waist key nodes.
[0135] In some embodiments, the deep learning network further includes a third sub-deep learning network, and the first position determination module 13 is further used to:
[0136] The human body image is input into the third sub-deep learning network to obtain the motion information of the waist key nodes.
[0137] In some embodiments, when the motion information of the key node includes the position information of the key node, and the motion information of the head includes the position information of the head, the posture estimation module 15 is specifically used to:
[0138] Determining the posture information of the key nodes and the posture information of the head by an inverse dynamics method according to the position information of the key nodes and the position information of the head;
[0139] The posture information of other nodes of the human body is determined according to the posture information of the key nodes and the head posture information.
[0140] In some embodiments, the method further comprises a training module for:
[0141] The deep learning network is trained by using human sample images, wherein the labels of the human sample images are actual motion information of the key nodes, and the actual motion information of the key nodes includes actual position information or actual posture information of the key nodes;
[0142] Calculating the loss of the deep learning network according to the label of the human sample image and the estimated motion information output by the deep learning network;
[0143] The parameters of the deep learning network are updated according to the loss of the deep learning network.
[0144] In some embodiments, the training module is specifically used to:
[0145] When the key node is visible in the human sample image, the loss of updating the parameters of the deep learning network is calculated according to the loss of the deep learning network based on the label of the human sample image and the estimated motion information output by the deep learning network.
[0146] In some embodiments, the training module is further configured to:
[0147] Determining the confidence of the key node according to the human body sample image;
[0148] Whether the key node is visible is determined according to the confidence level of the key node.
[0149] In some embodiments, the motion information of the foot key node is the motion information of the human ankle, and / or the motion information of the hand key node is the motion information of the human wrist.
[0150] In some embodiments, the head-mounted device uses a visual simultaneous localization and mapping (SLAM) method to obtain the position information of the head-mounted device.
[0151] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here.
[0152] The above describes the device 100 of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.
[0153] An embodiment of the present application also provides an electronic device. Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present application is shown in FIG. Figure 5 As shown, the electronic device 200 may include:
[0154] The memory 21 and the processor 22, the memory 21 is used to store the computer program and transmit the program code to the processor 22. In other words, the processor 22 can call and run the computer program from the memory 21 to implement the method in the embodiment of the present application.
[0155] For example, the processor 22 may be configured to execute the above method embodiments according to instructions in the computer program.
[0156] In some embodiments of the present application, the processor 22 may include but is not limited to:
[0157] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0158] In some embodiments of the present application, the memory 21 includes but is not limited to:
[0159] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0160] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 21 and executed by the processor 22 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0161] like Figure 5 As shown, the electronic device 200 may further include: a transceiver 23 , which may be connected to the processor 22 or the memory 21 .
[0162] The processor 22 may control the transceiver 23 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 23 may include a transmitter and a receiver. The transceiver 23 may further include an antenna, and the number of antennas may be one or more.
[0163] Understandable, although Figure 5 Not shown, the electronic device 200 may also include a camera module, a wireless fidelity WIFI module, a positioning module, a Bluetooth module, a display, a controller, etc., which will not be repeated here.
[0164] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0165] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.
[0166] The present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. The processor of the electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the electronic device executes the corresponding process in the human motion capture method in the embodiment of the present application, which will not be described in detail for the sake of brevity.
[0167] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0168] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0169] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A human motion capture method, characterized in that: include: Get the posture information of the head-mounted device; Acquire a human body image captured by the head mounted device; Determine, according to the human body image, motion information of key nodes of the human body, wherein the motion information of the key nodes includes position information or posture information of the key nodes, and the key nodes include one or more of hand key nodes, foot key nodes or waist key nodes; Determine the movement information of the head according to the posture information of the head mounted device, wherein the movement information of the head includes the position information or posture information of the head; According to the motion information of the key nodes and the motion information of the head, the posture information of the human body is determined by an inverse dynamics method.
2. The method according to claim 1, characterized in that Determining the motion information of key nodes of the human body according to the human body image includes: The human body image is input into a deep learning network to obtain motion information of the key nodes of the human body.
3. The method according to claim 2, characterized in that The deep learning network includes a first sub-deep learning network and a second sub-deep learning network; The step of inputting the human body image into a deep learning network to obtain motion information of the key nodes of the human body includes: Inputting the human body image into the first sub-deep learning network to obtain motion information of the key nodes of the hand; The human body image is input into the second sub-deep learning network to obtain motion information of the key nodes of the foot.
4. The method according to claim 3, characterized in that The second sub-deep learning network also outputs motion information of the waist key nodes.
5. The method according to claim 3, characterized in that: The deep learning network also includes a third sub-deep learning network, and the method further includes: The human body image is input into the third sub-deep learning network to obtain the motion information of the waist key nodes.
6. The method according to any one of claims 1 to 5, characterized in that: When the motion information of the key node includes the position information of the key node, and the motion information of the head includes the position information of the head, determining the posture information of the human body by an inverse dynamics method according to the motion information of the key node and the motion information of the head includes: Determining the posture information of the key nodes and the posture information of the head by an inverse dynamics method according to the position information of the key nodes and the position information of the head; The posture information of other nodes of the human body is determined according to the posture information of the key nodes and the head posture information.
7. The method according to any one of claims 2 to 5, characterized in that: Also includes: The deep learning network is trained by using human sample images, wherein the labels of the human sample images are actual motion information of the key nodes, and the actual motion information of the key nodes includes actual position information or actual posture information of the key nodes; Calculating the loss of the deep learning network according to the label of the human sample image and the estimated motion information output by the deep learning network; The parameters of the deep learning network are updated according to the loss of the deep learning network.
8. The method according to claim 7, characterized in that The calculating the loss of the deep learning network according to the label of the human sample image and the estimated position information output by the deep learning network includes: When the key node is visible in the human sample image, the loss of the deep learning network is calculated according to the label of the human sample image and the estimated motion information output by the deep learning network.
9. The method according to claim 8, characterized in that Also includes: Determining the confidence of the key node according to the human body sample image; Whether the key node is visible is determined according to the confidence level of the key node.
10. The method according to any one of claims 1 to 5, characterized in that: The motion information of the foot key node is the motion information of the human ankle, and / or the motion information of the hand key node is the motion information of the human wrist.
11. The method according to any one of claims 1 to 5, characterized in that: The head mounted device uses a visual simultaneous positioning and mapping SLAM method to obtain the position and posture information of the head mounted device.
12. A human motion capture device, characterized in that: include: A first acquisition module is used to acquire the position and posture information of the head mounted device; A second acquisition module, used to acquire a human body image captured by the head mounted device; A first position determination module is used to determine motion information of key nodes of the human body according to the human body image, wherein the motion information of the key nodes includes position information or posture information of the key nodes, and the key nodes include one or more of hand key nodes, foot key nodes or waist key nodes; A second position determination module, configured to determine head motion information according to the posture information of the head mounted device, wherein the head motion information includes the position information or posture information of the head; The posture estimation module is used to determine the posture information of the human body through an inverse dynamics method according to the motion information of the key nodes and the motion information of the head.
13. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 11.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
