Method, device, equipment and medium for determining three-dimensional pose of hand gesture
By optimizing the 3D pose of gestures under temporal, spatial, and shape constraints outside the deep learning model, and utilizing the LM algorithm from the Ceres nonlinear optimization library, the accuracy and reliability issues of deep learning models in 3D pose prediction of gestures are solved, achieving efficient 3D pose determination.
Patent Information
- Application Number
- CN202411029001.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-07-29
AI Technical Summary
In existing technologies, deep learning models lack accuracy and reliability in predicting the 3D pose of user gestures, and require a lot of manpower and time for training and optimization, making it difficult to guarantee the accuracy and reliability of the 3D pose of gestures in multiple different scenarios.
By acquiring the initial and historical 3D poses of the gesture in the current frame image and the previous frame image, optimization is performed using time, space and shape constraints to determine the 3D pose of the gesture target in the current frame image. The LM algorithm of the Ceres nonlinear optimization library is used to adjust the parameters until the preset convergence condition is reached.
It improves the accuracy and reliability of three-dimensional gesture poses, reduces manpower and time costs, and avoids the sample collection and annotation process.
Smart Images

Figure CN119002695B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, and more specifically, to a method, apparatus, device, and medium for determining the three-dimensional posture of a gesture. Background Technology
[0002] With the development of technology and the economy, XR head-mounted display devices such as AR, VR, and MR are being used more and more widely. Gestures, as an intuitive, efficient, and natural interaction method, have become an important way for users to interact with the virtual scenes presented by XR head-mounted display devices. For example, gestures can be used to simulate user interface operations such as mouse and keyboard, and can also be used to control virtual objects, such as grasping virtual objects. Therefore, determining the three-dimensional posture of the user's gestures has become a key technology for users to interact with the virtual scenes presented by XR head-mounted display devices.
[0003] Currently, deep learning models are commonly used to predict the 3D pose of user gestures. However, the predictions of deep learning models are inherently unreliable. In real-world applications, user gestures are diverse and easily changeable, with high degrees of hand freedom and the presence of self-occlusion and being occluded by both hands. These issues make it difficult to guarantee the accuracy and reliability of the 3D pose predictions made by deep learning models. To improve the accuracy of deep learning model predictions, it is often necessary to collect and label more accurate training datasets for model training, while continuously optimizing the model structure to improve accuracy. This results in a significant investment of manpower and time in training and optimizing deep learning models, and the final results still cannot guarantee the accuracy and reliability of the 3D poses of gestures with different hand shapes in multiple different scenarios.
[0004] Therefore, how to provide a method for determining the three-dimensional pose of a user's gesture with low manpower and time costs, and high accuracy and reliability, has become an urgent technical problem to be solved. Summary of the Invention
[0005] One objective of this application is to provide a new technical solution for determining the three-dimensional pose of a gesture.
[0006] According to a first aspect of this application, a method for determining the three-dimensional pose of a gesture is provided, comprising:
[0007] Obtain the current initial 3D pose of the gesture in the current frame image and the historical target 3D pose of the gesture in the previous frame image;
[0008] Based on the gesture constraints, the current initial 3D pose, and the historical target 3D pose, determine the current target 3D pose of the gesture in the current frame image;
[0009] The gesture constraints include at least two of the following: temporal constraints, spatial constraints, and shape constraints. The temporal constraint is the first maximum deviation between the current target's three-dimensional pose and the historical target's three-dimensional pose. The spatial constraint is the second maximum deviation between the two-dimensional coordinates of the current target's three-dimensional pose obtained by projection and the two-dimensional coordinates of the gesture in the current frame image. The shape constraint is the third maximum deviation between the corresponding gesture shapes of the current target's three-dimensional pose and the historical target's three-dimensional pose.
[0010] Optionally, after obtaining the current initial three-dimensional pose of the gesture in the current frame image, the method further includes:
[0011] The current initial 3D pose is filtered to obtain the filtered current initial 3D pose, and the current initial 3D pose is updated to the filtered current initial 3D pose.
[0012] Optionally, before determining the current target 3D pose of the gesture in the current frame image based on the gesture constraints, the current initial 3D pose, and the historical target 3D pose, the method further includes:
[0013] Based on the current initial 3D pose, determine whether the current gesture shape meets the requirements of a normal gesture shape;
[0014] If the conditions are not met, the step of determining the current target 3D pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial 3D pose, and the historical target 3D pose is triggered.
[0015] Optionally, the method further includes:
[0016] If the current gesture shape is determined to meet the requirements of a normal gesture shape, the current gesture movement amount is determined based on the current initial three-dimensional posture and the historical target three-dimensional posture.
[0017] If the current gesture movement amount is greater than the preset movement amount, the step of determining the current target three-dimensional pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial three-dimensional pose, and the historical target three-dimensional pose is triggered.
[0018] If the current gesture movement is less than or equal to the preset movement, the current initial three-dimensional pose is taken as the current target three-dimensional pose.
[0019] Optionally, determining the current target 3D pose of the gesture in the current frame image based on the gesture constraints, the current initial 3D pose, and the historical target 3D pose includes:
[0020] Determine the target loss value based on the gesture constraints;
[0021] The current initial 3D pose and the historical target 3D pose are input into the LM algorithm using the Ceres nonlinear optimization library to obtain the current predicted 3D pose;
[0022] Based on the current predicted 3D pose and the historical target 3D pose, determine the current loss value;
[0023] Based on the current loss value and the target loss value, adjust the parameters of the Ceres nonlinear optimization library LM algorithm, and repeat the steps of inputting the current initial 3D pose and the historical target 3D pose into the Ceres nonlinear optimization library LM algorithm to obtain the current predicted 3D pose, until the preset convergence condition is reached;
[0024] The current predicted 3D pose that meets the convergence condition is taken as the current target 3D pose.
[0025] Optionally, the preset convergence condition is that within a preset number of steps of repeatedly inputting the current initial 3D pose and the historical target 3D pose into the LM algorithm to obtain the current predicted 3D pose, the current gesture movement amount corresponding to the current predicted 3D pose relative to the historical target 3D pose is less than or equal to a preset movement amount.
[0026] Optionally, the method further includes:
[0027] In the absence of the historical target three-dimensional pose, determine whether the current gesture shape meets the requirements of a normal gesture shape based on the current initial three-dimensional pose;
[0028] Under certain conditions, the current initial three-dimensional pose of the gesture in the current frame image is taken as the current target three-dimensional pose of the gesture in the current frame image.
[0029] According to a second aspect of this application, a device for determining the three-dimensional pose of a gesture is provided, comprising:
[0030] The acquisition module is used to acquire the current initial 3D pose of the gesture in the current frame image and the historical target 3D pose of the gesture in the previous frame image.
[0031] The determination module is used to determine the current target 3D pose of the gesture in the current frame image based on the gesture constraints, the current initial 3D pose, and the historical target 3D pose.
[0032] The gesture constraints include at least two of the following: temporal constraints, spatial constraints, and shape constraints. The temporal constraint is the first maximum deviation between the current target's three-dimensional pose and the historical target's three-dimensional pose. The spatial constraint is the second maximum deviation between the two-dimensional coordinates of the current target's three-dimensional pose obtained by projection and the two-dimensional coordinates of the gesture in the current frame image. The shape constraint is the third maximum deviation between the corresponding gesture shapes of the current target's three-dimensional pose and the historical target's three-dimensional pose.
[0033] According to a third aspect of this application, an electronic device is provided, the electronic device including means for determining the three-dimensional pose of a gesture as described in the second aspect; or,
[0034] The electronic device includes a memory and a processor, the memory being used to store computer instructions, and the processor being used to retrieve the computer instructions from the memory to execute a method for determining the three-dimensional pose of a gesture as described in any one of the first aspects.
[0035] According to a fourth aspect of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements a method for determining the three-dimensional pose of a gesture according to any one of the first aspects.
[0036] This application provides a method for determining the three-dimensional pose of a gesture. The method includes: acquiring the current initial three-dimensional pose of the gesture in the current frame image and the historical target three-dimensional pose of the gesture in the previous frame image; determining the current target three-dimensional pose of the gesture in the current frame image based on gesture constraints, the current initial three-dimensional pose, and the historical target three-dimensional pose; wherein the gesture constraints include at least two of temporal constraints, spatial constraints, and shape constraints, the temporal constraint being a first maximum deviation between the current target three-dimensional pose and the historical target three-dimensional pose, the spatial constraint being a second maximum deviation between the two-dimensional coordinates of the current target three-dimensional pose obtained by projection and the two-dimensional coordinates of the gesture in the current frame image, and the shape constraint being a third maximum deviation between the corresponding gesture shapes of the current target three-dimensional pose and the historical target three-dimensional pose. The method for determining the three-dimensional pose of a gesture provided by this application optimizes the current initial three-dimensional pose of the gesture in the current frame image across various dimensions, thus obtaining a more accurate three-dimensional pose. Therefore, this application provides a highly accurate and reliable method for determining the three-dimensional pose of a user's gesture. Furthermore, the method for determining the three-dimensional pose of a gesture provided by this application does not involve a deep learning model, therefore eliminating the need for sample collection and annotation, thereby significantly reducing manpower and time costs.
[0037] Other features and advantages of this application will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0038] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments of the present application and, together with their description, serve to explain the principles of the present application.
[0039] Figure 1 This is a hardware configuration outline of an electronic device that implements a method for determining the three-dimensional pose of a gesture, according to an embodiment of this application. Figure 1 ;
[0040] Figure 2 This is a flowchart illustrating a method for determining the three-dimensional pose of a gesture according to an embodiment of this application. Figure 1 ;
[0041] Figure 3 This is a schematic diagram of a gesture provided according to an embodiment of this application;
[0042] Figure 4 This is a flowchart illustrating a method for determining the three-dimensional pose of a gesture according to an embodiment of this application. Figure 2 ;
[0043] Figure 5 This is a schematic diagram of the structure of a device for determining the three-dimensional posture of a gesture according to an embodiment of this application. Figure 1 ;
[0044] Figure 6 This is a hardware configuration outline of an electronic device that implements a method for determining the three-dimensional pose of a gesture, according to an embodiment of this application. Figure 2 . Detailed Implementation
[0045] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0046] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the scope of this application and its application or use.
[0047] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0048] In all the examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0049] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0050] Figure 1 This is a hardware configuration outline of an electronic device that implements a method for determining the three-dimensional pose of a gesture, according to an embodiment of this application. Figure 1 .
[0051] Electronic device 1000 can be a terminal or a server. Furthermore, the terminal can be a head-mounted device (such as an AR device, MR device, or VR device), a portable computer, a tablet computer, a PDA, etc. The server can be a cloud server, etc.
[0052] Electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and an image sensor 1900, etc. The processor 1100 may be a central processing unit (CPU), a microprocessor (MCU), etc. The memory 1200 may include, for example, ROM (Read-Only Memory), RAM (Random Access Memory), or non-volatile memory such as a hard disk. The interface device 1300 may include, for example, a USB interface, a headphone jack, etc. The communication device 1400 may be capable of wired or wireless communication. The display device 1500 may be, for example, an LCD screen, a touch screen, etc. The input device 1600 may include, for example, a touch screen, a keyboard, etc. The user can input / output voice information through the speaker 1700 and the microphone 1800. The image sensor 1900 is used to capture images of the user's hand.
[0053] Despite Figure 1 The electronic device 1000 shows multiple devices, but this application may only involve some of them. For example, the electronic device 1000 may only involve the memory 1200, the processor 1100 and the image sensor 1900.
[0054] In the embodiments applied in this application, the memory 1200 of the electronic device 1000 is used to store instructions for controlling the processor 1100 to execute the method for determining the three-dimensional pose of the gesture provided in the embodiments of this application.
[0055] In the above description, those skilled in the art can design instructions based on the scheme disclosed in this application. How the instructions control the processor to operate is well known in the art, and therefore will not be described in detail here.
[0056] This application provides a method for determining the three-dimensional pose of a gesture, the method as follows: Figure 2As shown, it includes the following steps S2100 and S2200.
[0057] Step S2100: Obtain the current initial 3D pose of the gesture in the current frame image and the historical target 3D pose of the gesture in the previous frame image.
[0058] In this embodiment, the current initial three-dimensional pose of the gesture in the current frame image is the three-dimensional pose of the gesture in the current frame image obtained using conventional techniques. The three-dimensional pose of the gesture can be exemplarily shown as follows: Figure 3 As shown, gestures are described using multiple gesture feature points. Each gesture feature point includes its corresponding three-dimensional coordinates and three-dimensional rotation angle, and can be specifically described using a deep learning model in traditional techniques. Based on this, obtaining the current initial three-dimensional pose of the gesture in the current frame image in step S2100 is specifically achieved through the following steps S2110 and S2111.
[0059] Step S2110: Obtain the current frame image.
[0060] Step S2111: Determine the current initial three-dimensional pose of the gesture in the current frame image based on the current frame image and the preset mapping relationship;
[0061] The preset mapping relationship is data reflecting the correspondence between the three-dimensional pose of the image and the gesture in the image, or data reflecting the correspondence between the two-dimensional coordinates of the image and the gesture in the image.
[0062] In one embodiment of this application, the current frame image includes depth information. The preset mapping relationship is data reflecting the correspondence between an image and the two-dimensional coordinates of a gesture within the image, as used in conventional technologies. An exemplary example is a first deep learning model that obtains the two-dimensional coordinates of a gesture within the image based on the image. When the two-dimensional coordinates of the gesture in the current frame image are obtained based on the first deep learning model, the three-dimensional pose of the gesture in the current frame image is obtained by combining the depth information corresponding to the two-dimensional coordinates of the gesture.
[0063] In another embodiment of this application, the preset mapping relationship is data reflecting the correspondence between an image and the three-dimensional pose of a gesture in the image in conventional technology. For example, it is a second deep learning model of the three-dimensional pose of the gesture in the image obtained from the image.
[0064] It should be noted that since the preset mapping relationship is related data in traditional technology, the method of obtaining the preset mapping relationship will not be described in detail in this application, and the specific method of obtaining it is not limited.
[0065] Based on the above, it can be understood that the method for determining the three-dimensional pose of a gesture provided in this application is a method for optimizing the three-dimensional pose of a gesture in the current frame image obtained using traditional techniques, thereby obtaining a more accurate three-dimensional pose of the gesture in the current frame image. Specifically, this application optimizes the three-dimensional pose of the gesture in the current frame image obtained using traditional techniques to obtain a more accurate three-dimensional pose of the gesture in the current frame image, denoted as the current target three-dimensional pose of the gesture in the current frame image.
[0066] Specifically, the historical target three-dimensional pose of the gesture in the previous frame image refers to the current target three-dimensional pose of the gesture in the current frame image obtained when the previous frame image is used as the current frame image and the method for determining the three-dimensional pose of the gesture provided in this application is executed on the previous frame image.
[0067] Step S2200: Determine the current target 3D pose of the gesture in the current frame image based on the gesture constraints, the current initial 3D pose, and the historical target 3D pose.
[0068] The gesture constraints include at least two of the following: time constraints, spatial constraints, and shape constraints. The time constraint is the first maximum deviation between the current target's 3D pose and the historical target's 3D pose. The spatial constraint is the second maximum deviation between the two-dimensional coordinates of the current target's 3D pose obtained by projection and the two-dimensional coordinates of the gesture in the current frame image. The shape constraint is the third maximum deviation between the corresponding gesture shapes of the current target's 3D pose and the historical target's 3D pose.
[0069] In this application, because the current frame image and the previous frame image have temporal continuity and the corresponding sampling time interval between them is short, the current target's 3D pose is close to the historical target's 3D pose, the hand gesture shape corresponding to the current target's 3D pose is close to the corresponding hand gesture shape of the historical target's 3D pose, and the 2D image coordinates of the current target's 3D pose obtained by forward projection according to the camera projection model are close to the 2D image coordinates of the hand gesture in the current frame image. Based on this, under normal hand gesture conditions, according to experience or experimentation, the maximum deviation value between the current target's 3D pose and the historical target's 3D pose is determined and recorded as the first maximum deviation value; the maximum deviation value between the hand gesture shape corresponding to the current target's 3D pose and the historical target's 3D pose is determined and recorded as the third maximum deviation value; and the maximum deviation value between the 2D coordinates of the current target's 3D pose obtained by projection and the 2D coordinates of the hand gesture in the current frame image is determined and recorded as the second maximum deviation value. It can be understood that the first maximum deviation value can be related to the hand speed or hand acceleration corresponding to the current frame image and the previous frame image. Specifically, the greater the hand speed or hand acceleration corresponding to the current frame image and the previous frame image, the larger the value of the first maximum deviation value.
[0070] Furthermore, using the current initial 3D pose as the initial value, the current initial 3D pose is optimized according to gesture constraints consisting of at least two of the following: the time constraint corresponding to the first maximum deviation value, the spatial constraint corresponding to the second maximum deviation value, and the shape constraint corresponding to the third maximum deviation value. This optimization yields a more accurate 3D pose of the gesture in the current frame image, denoted as the current target 3D pose of the gesture in the current frame image. In other words, the method for determining the 3D pose of a gesture provided in this application optimizes the current initial 3D pose of the gesture in the current frame image across various dimensions, thus obtaining a more accurate 3D pose. Therefore, this application provides a highly accurate and reliable method for determining the 3D pose of a user's gesture. Additionally, the method for determining the 3D pose of a gesture provided in this application does not involve a deep learning model, therefore eliminating the need for sample collection and annotation, thereby significantly reducing manpower and time costs.
[0071] Based on the above, this application provides a method for determining the three-dimensional pose of a gesture. The method includes: acquiring the current initial three-dimensional pose of the gesture in the current frame image and the historical target three-dimensional pose of the gesture in the previous frame image; determining the current target three-dimensional pose of the gesture in the current frame image based on gesture constraints, the current initial three-dimensional pose, and the historical target three-dimensional pose; wherein the gesture constraints include at least two of temporal constraints, spatial constraints, and shape constraints; the temporal constraint is a first maximum deviation between the current target three-dimensional pose and the historical target three-dimensional pose; the spatial constraint is a second maximum deviation between the two-dimensional coordinates of the current target three-dimensional pose obtained by projection and the two-dimensional coordinates of the gesture in the current frame image; and the shape constraint is a third maximum deviation between the corresponding gesture shapes of the current target three-dimensional pose and the historical target three-dimensional pose. The method for determining the three-dimensional pose of a gesture provided by this application optimizes the current initial three-dimensional pose of the gesture in the current frame image across various dimensions, thus obtaining a more accurate three-dimensional pose. Therefore, this application provides a highly accurate and reliable method for determining the three-dimensional pose of a user's gesture. In addition, the method for determining the three-dimensional pose of gestures provided in this application does not involve a deep learning model, so there is no need for sample collection and annotation, which can greatly reduce manpower and time costs.
[0072] In one embodiment of this application, the method for determining the three-dimensional pose of a gesture provided in this application, after obtaining the current initial three-dimensional pose of the gesture in the current frame image in step S2100 above, further includes the following step S2120.
[0073] Step S2120: Perform filtering on the current initial 3D pose to obtain the filtered current initial 3D pose, and update the current initial 3D pose to the filtered current initial 3D pose.
[0074] In one embodiment of this application, the current initial 3D pose can be filtered using the OneEuroFilter algorithm. This OneEuroFilter algorithm can improve the accuracy of the current initial 3D pose by adjusting the jitter and delay of the gesture.
[0075] It can be further understood that when the hand moves at low speed, the human eye is more sensitive to hand tremors, and when the hand moves at high speed, the human eye is more sensitive to hand delays. Therefore, in the embodiments of this application, the method for determining the three-dimensional pose of a hand gesture provided in this application may further include, before the above-mentioned step S2120: estimating the hand speed based on the current initial three-dimensional pose and the historical target three-dimensional pose; and adjusting the minimum cutoff frequency and velocity coefficient corresponding to the OneEuroFilter filtering algorithm based on the estimated hand speed. On this basis, the above-mentioned step S2120 can balance the hand tremors and delays in the current frame image.
[0076] In one embodiment of this application, the method for determining the three-dimensional pose of a gesture provided in this application further includes the following steps S2210 and S2211 before the above-mentioned step S2200.
[0077] Step S2210: Based on the current initial three-dimensional pose, determine whether the current gesture shape meets the requirements of a normal gesture shape.
[0078] In this embodiment, the current gesture shape refers to the shape of the gesture reflected by the current initial three-dimensional pose. Furthermore, based on the current initial three-dimensional pose, at least one of the following is determined in the current frame image: the length of each finger joint corresponding to the gesture, the angle between each finger, and the angle between the major joints of each finger. The current gesture shape is represented by at least one of these factors in the current frame image.
[0079] Furthermore, regardless of the changes in the gesture, for a normal gesture shape, it must satisfy at least one of the following characteristics: the length of each finger joint is less than a threshold, the angle between each finger is less than the corresponding threshold, and the angle of each major finger joint is within the corresponding threshold range. Therefore, the degree to which the current gesture shape reflected by the current initial three-dimensional pose satisfies at least one of the following characteristics—the length of each finger joint is less than the threshold, the angle between each finger is less than the corresponding threshold, and the angle of each major finger joint is within the corresponding threshold range—can be used to reflect whether the current gesture shape reflected by the current initial three-dimensional pose satisfies a normal gesture shape.
[0080] Specifically, for each finger joint length less than a threshold of 1 (e.g., 6cm), the details are as follows: Figure 3For example, for the thumb, gesture feature points 1 and 2 form a joint, gesture feature points 2 and 3 form a joint, and gesture feature points 3 and 4 form a joint; for the index finger, gesture feature points 5 and 6 form a joint, gesture feature points 6 and 7 form a joint, and gesture feature points 7 and 8 form a joint; for the middle finger, gesture feature points 9 and 10 form a joint, gesture feature points 10 and 11 form a joint, and gesture feature points 11 and 12 form a joint; for the ring finger, gesture feature points 13 and 14 form a joint, gesture feature points 14 and 15 form a joint, and gesture feature points 15 and 16 form a joint; for the little finger, gesture feature points 17 and 18 form a joint, gesture feature points 18 and 19 form a joint, and gesture feature points 19 and 20 form a joint; the length of all joints is less than the threshold 1. In this embodiment, the length of a joint is represented by the Euclidean distance between the three-dimensional coordinates of the gesture features corresponding to the two joint endpoints;
[0081] In addition, for the angles between each finger that are less than the corresponding threshold, specifically, the angle between the thumb and index finger is less than threshold 2 (e.g., 90°), and the angles between the index finger and middle finger, the middle finger and ring finger, and the ring finger and little finger are all less than threshold 3 (e.g., 60°). The calculation principle for each included angle is based on the law of cosines. For example, the included angle between the thumb and index finger is calculated by using the law of cosines to calculate the included angle between the line segments formed by the hand gesture feature points 0, 4, and 8, and between the line segments formed by the hand gesture feature points 4 and 0, and 8. The included angle between the thumb and index finger is calculated by using the law of cosines to calculate the included angle between the hand gesture feature points 8 and 0, and 1. The included angle between the middle and ring fingers is calculated by using the included angle between the line segments formed by the hand gesture feature points 12 and 0, and 16. The included angle between the ring and little fingers is calculated by using the included angle between the line segments formed by the hand gesture feature points 16 and 0, and 20.
[0082] Furthermore, for each major joint angle within the corresponding threshold range, specifically, for the index finger, the angle between the joint formed by gesture feature points 6 and 5, and the joint formed by gesture feature points 6 and 7, is greater than threshold 4 (e.g., 10°) and less than threshold 5 (e.g., 180°); for the middle finger, the angle between the joint formed by gesture feature points 10 and 9, and the joint formed by gesture feature points 10 and 11, is greater than threshold 6 (e.g., 80°) and less than threshold 5; for the ring finger, the angle between gesture feature points 14 and 7 is greater than threshold 6 (e.g., 80°) and less than threshold 5. Point 13 forms a joint, and gesture feature points 14 and 15 form an inter-joint angle greater than threshold 6 (e.g., 80°) and less than threshold 5. For the little finger, gesture feature points 18 and 17 form a joint, and gesture feature points 18 and 19 form an inter-joint angle greater than threshold 6 (e.g., 80°) and less than threshold 5. For the thumb, gesture feature points 3 and 2 form a joint, and gesture feature points 3 and 4 form an inter-joint angle greater than threshold 6 (e.g., 80°) and less than threshold 5.
[0083] Taking the feature that the length of each finger joint is less than a threshold of 1 as an example, for the current initial 3D pose, it is determined whether the length of each finger joint is less than the threshold of 1. Each joint length corresponds to a weight. If the length of a certain joint is less than the threshold of 1, then the weight corresponding to that joint is accumulated. Based on this, according to the judgment result of whether the length of each finger joint is less than the threshold of 1, the accumulated weight value of the feature that the length of each finger joint is less than the threshold of 1 is obtained. It can be understood that for the two features that the included angle between each finger is less than the corresponding threshold and the included angle between the major joints of each finger is within the corresponding threshold range, the weights are determined in a similar way. Finally, the accumulated weight value corresponding to each feature is accumulated to obtain the final weight, and it is determined whether the final weight is greater than or equal to a threshold of 7 (e.g., 0.8). Here, the threshold of 7 is the minimum value of the final weight corresponding to the normal gesture shape, and the maximum value of the final weight is 1. If yes, then it is determined that the current gesture shape reflected by the current initial 3D pose satisfies the normal gesture shape. Otherwise, it is determined that the current gesture shape reflected by the current initial 3D pose does not satisfy the normal gesture shape.
[0084] In addition, it should be noted that the specific values of the above thresholds 1 to 7 can be obtained based on experience or implementation, and this application does not limit them.
[0085] Step S2211: If the conditions are not met, trigger the step of determining the current target 3D pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial 3D pose, and the historical target 3D pose.
[0086] In this embodiment, if the current gesture shape reflected by the current initial three-dimensional pose does not meet the normal gesture shape as determined by the above step S2210, it indicates that the current initial three-dimensional pose is inaccurate. At this time, the above step S2200 is triggered to determine the accurate three-dimensional pose of the gesture in the current frame image, that is, the current target three-dimensional pose of the gesture in the current frame image.
[0087] Corresponding to step S2211 above, in one embodiment of this application, if it is determined that the current gesture shape meets the requirements of a normal gesture shape, then the current initial three-dimensional pose is considered accurate. In this case, the current initial three-dimensional pose is taken as the current target three-dimensional pose.
[0088] Corresponding to step S2211 above, in another embodiment of this application, the method for determining the three-dimensional pose of a gesture provided in this application further includes the following steps S2212 to S2214.
[0089] Step S2212: If the current gesture shape satisfies the normal gesture shape, determine the current gesture movement amount based on the current initial three-dimensional posture and the historical target three-dimensional posture.
[0090] In this embodiment, the Euclidean distance between the corresponding gesture feature points in the current initial three-dimensional pose and the historical target three-dimensional pose is calculated, and the average Euclidean distance between the Euclidean distances calculated above is recorded as the current gesture movement amount.
[0091] Step S2213: If the current gesture movement amount is greater than the preset movement amount, trigger the step of determining the current target three-dimensional pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial three-dimensional pose and the historical target three-dimensional pose.
[0092] In this embodiment, the preset movement amount is the minimum current gesture movement amount that would cause the current initial three-dimensional pose to be inaccurate, and can be determined based on experience or experimentation. This application does not limit the specific value of the preset movement amount.
[0093] In this embodiment, if the current gesture movement is greater than a preset movement amount, it indicates that the hand speed is too fast, which makes the current initial three-dimensional pose prone to abnormality. At this time, the above step S2200 is triggered to determine the accurate three-dimensional pose of the gesture in the current frame image, that is, the current target three-dimensional pose of the gesture in the current frame image.
[0094] Step S2214: If the current gesture movement is less than or equal to the preset movement, the current initial three-dimensional pose is taken as the current target three-dimensional pose.
[0095] In this embodiment, corresponding to step S2213 above, if the current gesture movement is less than or equal to the preset movement, it indicates that the hand speed is relatively slow, and the current initial three-dimensional posture is less likely to be abnormal. At this time, the current initial three-dimensional posture is taken as the current target three-dimensional posture.
[0096] In one embodiment of this application, a specific implementation of step S2200 is provided, which specifically includes steps S2220 to S2224.
[0097] Step S2220: Determine the target loss value based on the gesture constraints.
[0098] In this embodiment, a weighted sum is performed on each constraint included in the gesture constraints to obtain the target loss value. The weight of each constraint can be set empirically.
[0099] In one example, when the gesture constraints include time constraints, spatial constraints, and shape constraints, the first maximum deviation value, the second maximum deviation value, and the third maximum deviation value are weighted and summed to obtain the target loss value.
[0100] Step S2221: Input the current initial 3D pose and the historical target 3D pose into the LM algorithm using the Ceres nonlinear optimization library to obtain the current predicted 3D pose.
[0101] Step S2222: Determine the current loss value based on the current predicted 3D pose and the historical target 3D pose.
[0102] In this embodiment, taking the gesture constraints including temporal constraints, spatial constraints, and shape constraints as an example, the specific implementation of step S2222 is as follows: Based on the current predicted 3D pose and the historical target 3D pose, calculate the first deviation value between the current predicted 3D pose and the historical target 3D pose; perform forward projection of the current predicted 3D pose using a camera projection model to obtain the two-dimensional coordinates of the projected current predicted 3D pose; calculate the second deviation value between the two-dimensional coordinates of the projected current predicted 3D pose and the two-dimensional coordinates of the gesture in the current frame image; calculate the third deviation value between the gesture shape corresponding to the current predicted 3D pose and the gesture shape corresponding to the historical target 3D pose; and obtain the current loss value by weighted summation of the first deviation value, the second deviation value, and the third deviation value calculated based on the aforementioned content. The weight corresponding to the first deviation value is the same as the weight corresponding to the first maximum deviation value when calculating the target loss value in step S2220. Similarly, the weight corresponding to the second deviation value is the same as the weight corresponding to the second maximum deviation value when calculating the target loss value in step S2220, and the weight corresponding to the third deviation value is the same as the weight corresponding to the third maximum deviation value when calculating the target loss value in step S2220.
[0103] Step S2223: Based on the current loss value and the target loss value, adjust the parameters of the Ceres nonlinear optimization library LM algorithm, and repeatedly input the current initial 3D pose and the historical target 3D pose into the Ceres nonlinear optimization library LM algorithm to obtain the current predicted 3D pose, until the preset convergence condition is reached.
[0104] Step S2224: The current predicted 3D pose that has reached the convergence condition is taken as the current target 3D pose.
[0105] In this embodiment, the parameters of the Ceres nonlinear optimization library LM algorithm, such as the iteration step size, are adjusted according to the deviation between the current loss value and the target loss value. For the Ceres nonlinear optimization library LM algorithm with adjusted parameters, step S2221 is repeated until a preset convergence condition is reached. The current predicted 3D pose corresponding to the convergence condition is taken as the current target 3D pose.
[0106] In one embodiment of this application, the preset convergence condition can be to repeat step S2221 a preset number of times. The preset number of times can be set empirically. In one example, the preset number of times is 30.
[0107] In another embodiment of this application, the preset convergence condition can be that the deviation between the latest obtained current loss value and the target loss value is less than or equal to a preset deviation. The prediction deviation is the maximum deviation between the current loss value and the target loss value when the current loss value and the target loss value are close.
[0108] Understandably, when the current loss value is close to the target loss value, the latest predicted 3D pose becomes the more accurate 3D pose corresponding to the current image. In this case, the latest predicted 3D pose is taken as the current target 3D pose.
[0109] In another embodiment of this application, the preset convergence condition is that within a preset number of steps of repeatedly inputting the current initial three-dimensional pose and the historical target three-dimensional pose into the LM algorithm to obtain the current predicted three-dimensional pose, the current gesture movement amount between the current predicted three-dimensional pose and the historical target three-dimensional pose is less than or equal to a preset movement amount.
[0110] Regarding the preset convergence condition provided in this embodiment, during the process of repeatedly inputting the current initial 3D pose and the historical target 3D pose into the LM algorithm to obtain the current predicted 3D pose within a preset number of steps, the current gesture movement amount corresponding to the latest current predicted 3D pose and the historical target 3D pose is calculated (as shown in step S2212 above). If the current gesture movement amount corresponding to the latest current predicted 3D pose relative to the historical target 3D pose is less than or equal to a preset movement amount, then the latest current predicted 3D pose is taken as the current target 3D pose. In this way, the number of times step S2221 above is repeated can be reduced to obtain the current target 3D pose more quickly, thereby improving the efficiency of the gesture 3D pose determination method provided in this application in determining the current target 3D pose.
[0111] In one embodiment of this application, the method for determining the three-dimensional pose of a gesture provided in this application further includes the following steps S2300 and S2400.
[0112] Step S2300: In the absence of a historical target 3D pose, determine whether the current gesture shape meets the requirements of a normal gesture shape based on the current initial 3D pose.
[0113] In this embodiment, there are three cases for the absence of historical target 3D pose: Case 1, the current frame image is the first frame image; Case 2, the historical target 3D pose is lost; Case 3, the hand image is not present in the previous frame image.
[0114] It should be noted that the step S2300 above, which determines whether the current gesture shape meets the normal gesture shape based on the current initial three-dimensional posture, can be implemented according to the step S2210 above, and will not be repeated here.
[0115] Step S2400: If the conditions are met, the current initial three-dimensional pose of the gesture in the current frame image is taken as the current target three-dimensional pose of the gesture in the current frame image.
[0116] In this embodiment, based on the above steps S2300 and S2400, the current target 3D pose can be obtained for the current initial 3D pose where there is no historical target 3D pose.
[0117] Corresponding to step S2400 above, if the conditions are not met, the current target's three-dimensional pose will not be output.
[0118] Based on the above embodiments, in one embodiment of this application, the method for determining the three-dimensional pose of a gesture provided by this application is as follows: Figure 4 As shown, it includes the following steps:
[0119] Step S4100: Obtain the current initial 3D pose of the gesture in the current frame image and the historical target 3D pose of the gesture in the previous frame image, and then execute the following step S4200.
[0120] Step S4200: Perform filtering on the current initial 3D pose to obtain the filtered current initial 3D pose, update the current initial 3D pose to the filtered current initial 3D pose, and then execute the following step S4300.
[0121] Step S4300: Based on the current initial three-dimensional pose, determine whether the current gesture shape meets the normal gesture shape. If yes, execute the following step S4500; otherwise, execute the following step S4400.
[0122] Step S4400: Determine the current target 3D pose of the gesture in the current frame image based on the gesture constraints, the current initial 3D pose, and the historical target 3D pose.
[0123] Step S4500: Determine the current gesture movement amount based on the current initial three-dimensional pose and the historical target three-dimensional pose, and then execute the following step S4600;
[0124] Step S4600: Determine whether the current gesture movement amount is greater than the preset movement amount. If yes, execute the above step S4400; otherwise, execute the following step S4700.
[0125] Step S4700: Use the current initial 3D pose as the current target 3D pose.
[0126] This application also provides a three-dimensional pose determination device 500 for gestures, such as... Figure 5 As shown, it includes:
[0127] The acquisition module 510 is used to acquire the current initial three-dimensional pose of the gesture in the current frame image and the historical target three-dimensional pose of the gesture in the previous frame image.
[0128] The determining module 520 is used to determine the current target three-dimensional pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial three-dimensional pose, and the historical target three-dimensional pose.
[0129] The gesture constraints include at least two of the following: temporal constraints, spatial constraints, and shape constraints. The temporal constraint is the first maximum deviation between the current target's three-dimensional pose and the historical target's three-dimensional pose. The spatial constraint is the second maximum deviation between the two-dimensional coordinates of the current target's three-dimensional pose obtained by projection and the two-dimensional coordinates of the gesture in the current frame image. The shape constraint is the third maximum deviation between the corresponding gesture shapes of the current target's three-dimensional pose and the historical target's three-dimensional pose.
[0130] In one embodiment of this application, the gesture three-dimensional pose determination device 500 provided in this application further includes:
[0131] The filtering module is used to perform filtering processing on the current initial three-dimensional pose to obtain the filtered current initial three-dimensional pose;
[0132] An update module is used to update the current initial 3D pose to the filtered current initial 3D pose.
[0133] In one embodiment of this application, the determining module 520 is further configured to: determine whether the current gesture shape satisfies the normal gesture shape based on the current initial three-dimensional pose;
[0134] In this embodiment, the gesture three-dimensional pose determination device 500 provided in this application further includes:
[0135] The triggering module is used to trigger the step of determining the current target 3D pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial 3D pose, and the historical target 3D pose if the conditions are not met.
[0136] In one embodiment of this application, the determining module 520 is further configured to: determine the current gesture movement amount based on the current initial three-dimensional posture and the historical target three-dimensional posture when it is determined that the current gesture shape meets the normal gesture shape;
[0137] The triggering module is also used to trigger the step of determining the current target three-dimensional pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial three-dimensional pose, and the historical target three-dimensional pose when the current gesture movement amount is greater than the preset movement amount;
[0138] The determining module 520 is further configured to: when the current gesture movement amount is less than or equal to the preset movement amount, take the current initial three-dimensional posture as the current target three-dimensional posture.
[0139] In one embodiment of this application, the determining module 520 is specifically used for:
[0140] Determine the target loss value based on the gesture constraints;
[0141] The current initial 3D pose and the historical target 3D pose are input into the LM algorithm using the Ceres nonlinear optimization library to obtain the current predicted 3D pose;
[0142] Based on the current predicted 3D pose and the historical target 3D pose, determine the current loss value;
[0143] Based on the current loss value and the target loss value, adjust the parameters of the Ceres nonlinear optimization library LM algorithm, and repeat the steps of inputting the current initial 3D pose and the historical target 3D pose into the Ceres nonlinear optimization library LM algorithm to obtain the current predicted 3D pose, until the preset convergence condition is reached;
[0144] The current predicted 3D pose that meets the convergence condition is taken as the current target 3D pose.
[0145] In one embodiment of this application, the preset convergence condition is that within a preset number of steps of repeatedly inputting the current initial 3D pose and the historical target 3D pose into the LM algorithm to obtain the current predicted 3D pose, the current gesture movement amount corresponding to the current predicted 3D pose relative to the historical target 3D pose is less than or equal to a preset movement amount.
[0146] In one embodiment of this application, the determining module 520 is further configured to:
[0147] In the absence of the historical target three-dimensional pose, determine whether the current gesture shape meets the requirements of a normal gesture shape based on the current initial three-dimensional pose;
[0148] Under certain conditions, the current initial three-dimensional pose of the gesture in the current frame image is taken as the current target three-dimensional pose of the gesture in the current frame image.
[0149] This application also provides an electronic device including a three-dimensional pose determination device 500 for any of the gestures provided in the above-described device embodiments.
[0150] Or, such as Figure 6As shown, the electronic device 600 includes a memory 610 and a processor 620. The memory 610 is used to store computer instructions, and the processor 620 is used to call the computer instructions from the memory 610 to execute the method for determining the three-dimensional pose of a gesture as described in any of the above method embodiments.
[0151] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for determining the three-dimensional pose of a gesture according to any one of the above method embodiments.
[0152] This application may be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this application.
[0153] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0154] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0155] The computer program instructions used to perform the operations of this application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits, such as programmable logic circuits, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), are personalized by utilizing state information from the computer-readable program instructions. These electronic circuits can execute the computer-readable program instructions to implement various aspects of this application.
[0156] Various aspects of this application are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0157] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0158] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0159] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be well known to those skilled in the art that implementation in hardware, implementation in software, and implementation using a combination of software and hardware are equivalent.
[0160] The various embodiments of this application have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical applications, or technical improvements to the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of this application is defined by the appended claims.
Claims
1. A method for determining the three-dimensional pose of a gesture, characterized in that, include: Obtain the current initial 3D pose of the gesture in the current frame image and the historical target 3D pose of the gesture in the previous frame image; Based on the gesture constraints, the current initial 3D pose, and the historical target 3D pose, determine the current target 3D pose of the gesture in the current frame image; The gesture constraints include at least two of the following: time constraints, spatial constraints, and shape constraints. The time constraint is the first maximum deviation between the current target's three-dimensional pose and the historical target's three-dimensional pose. The spatial constraint is the second maximum deviation between the two-dimensional coordinates of the current target's three-dimensional pose obtained by projection and the two-dimensional coordinates of the gesture in the current frame image. The shape constraint is the third maximum deviation between the corresponding gesture shapes of the current target's three-dimensional pose and the historical target's three-dimensional pose. The method further includes, before determining the current target 3D pose of the gesture in the current frame image based on the gesture constraints, the current initial 3D pose, and the historical target 3D pose: Based on the current initial 3D pose, determine whether the current gesture shape meets the requirements of a normal gesture shape; If the conditions are not met, the step of determining the current target 3D pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial 3D pose, and the historical target 3D pose is triggered. The method further includes: If the current gesture shape is determined to meet the requirements of a normal gesture shape, the current gesture movement amount is determined based on the current initial three-dimensional posture and the historical target three-dimensional posture. If the current gesture movement amount is greater than the preset movement amount, the step of determining the current target three-dimensional pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial three-dimensional pose, and the historical target three-dimensional pose is triggered. If the current gesture movement is less than or equal to the preset movement, the current initial three-dimensional pose is taken as the current target three-dimensional pose.
2. The method according to claim 1, characterized in that, After obtaining the current initial 3D pose of the gesture in the current frame image, the method further includes: The current initial 3D pose is filtered to obtain the filtered current initial 3D pose, and the current initial 3D pose is updated to the filtered current initial 3D pose.
3. The method according to claim 1, characterized in that, Determining the current target 3D pose of the gesture in the current frame image based on the gesture constraints, the current initial 3D pose, and the historical target 3D pose includes: Determine the target loss value based on the gesture constraints; The current initial 3D pose and the historical target 3D pose are input into the LM algorithm using the Ceres nonlinear optimization library to obtain the current predicted 3D pose; Based on the current predicted 3D pose and the historical target 3D pose, determine the current loss value; Based on the current loss value and the target loss value, adjust the parameters of the Ceres nonlinear optimization library LM algorithm, and repeat the steps of inputting the current initial 3D pose and the historical target 3D pose into the Ceres nonlinear optimization library LM algorithm to obtain the current predicted 3D pose, until the preset convergence condition is reached; The current predicted 3D pose that meets the convergence condition is taken as the current target 3D pose.
4. The method according to claim 3, characterized in that, The preset convergence condition is that, within a preset number of steps to repeatedly input the current initial 3D pose and the historical target 3D pose into the LM algorithm to obtain the current predicted 3D pose, the current gesture movement amount corresponding to the current predicted 3D pose relative to the historical target 3D pose is less than or equal to a preset movement amount.
5. The method according to claim 1, characterized in that, The method further includes: In the absence of the historical target three-dimensional pose, determine whether the current gesture shape meets the requirements of a normal gesture shape based on the current initial three-dimensional pose; Under certain conditions, the current initial three-dimensional pose of the gesture in the current frame image is taken as the current target three-dimensional pose of the gesture in the current frame image.
6. A device for determining the three-dimensional posture of a gesture, characterized in that, include: The acquisition module is used to acquire the current initial 3D pose of the gesture in the current frame image and the historical target 3D pose of the gesture in the previous frame image. The determination module is used to determine whether the current gesture shape meets the requirements of a normal gesture shape based on the current initial 3D posture. It is also used to determine the current gesture movement amount based on the current initial three-dimensional pose and the historical target three-dimensional pose when the current gesture shape is determined to meet the normal gesture shape; it is also used to take the current initial three-dimensional pose as the current target three-dimensional pose when the current gesture movement amount is less than or equal to a preset movement amount; it is also used to determine the current target three-dimensional pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial three-dimensional pose and the historical target three-dimensional pose. The triggering module is configured to, if the conditions are not met, trigger the determining module to execute the step of determining the current target 3D pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial 3D pose, and the historical target 3D pose; and is further configured to, if the current gesture movement amount is greater than a preset movement amount, trigger the determining module to execute the step of determining the current target 3D pose of the gesture in the current frame image based on the gesture constraint conditions, the current initial 3D pose, and the historical target 3D pose. The gesture constraints include at least two of the following: temporal constraints, spatial constraints, and shape constraints. The temporal constraint is the first maximum deviation between the current target's three-dimensional pose and the historical target's three-dimensional pose. The spatial constraint is the second maximum deviation between the two-dimensional coordinates of the current target's three-dimensional pose obtained by projection and the two-dimensional coordinates of the gesture in the current frame image. The shape constraint is the third maximum deviation between the corresponding gesture shapes of the current target's three-dimensional pose and the historical target's three-dimensional pose.
7. An electronic device, characterized in that, The electronic device includes the three-dimensional posture determination device for the gesture as described in claim 6; or, The electronic device includes a memory and a processor, the memory being used to store computer instructions, and the processor being used to retrieve the computer instructions from the memory to execute a method for determining the three-dimensional pose of a gesture as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements a method for determining the three-dimensional pose of a gesture according to any one of claims 1-5.
Citation Information
Patent Citations
Gesture estimation optimization method and system and electronic device
CN112749512A
Gesture recognition method and device based on spinor, electronic equipment and storage medium
CN115798030A
Gesture posture recognition method and device, electronic equipment, medium and program product
CN116524582A
