A method for restoring the correct posture of a head rigid body and its device, equipment and storage medium
By obtaining and analyzing the position information of each part of the rigid body in multi-person motion capture, and using preset constraint conditions to judge and re-match the calculation, the problem of inaccurate positioning of the head rigid body in the multi-person motion capture process is solved, and the head is realized The accurate recovery of rigid body poses improves the accuracy of motion capture solutions.
Patent Information
- Application Number
- CN202110788033.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-12
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-07-12
AI Technical Summary
In the process of multi-person motion capture, the positioning and posture calculation of the head rigid body are easily interfered by other rigid bodies, leading to deviations in the human body motion capture solution. Especially in the intricate human motion capture process, the head rigid body tracking is poor and other With good body part tracking.
By obtaining the initial and dynamic position information of the rigid bodies of each part of the multi-person body, the preset constraint conditions are used to determine the correctness of the distance relationship between the rigid bodies. If crosstalk is found in the head rigid body, the matching calculation is re-executed to restore its correct pose information, using The waist rigid body is used as a reference point, the correct mark point is masked, and the matching calculation is re-calculated to determine the new pose of the head rigid body.
Effectively improve and prevent head rigid body crosstalk, restore the correct posture information of the head rigid body, and ensure accuracy in the human body motion capture process.
Smart Images

Figure CN113627261B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motion capture, and in particular to a method for restoring the correct posture of a head rigid body and a device, equipment and storage medium thereof. Background Art
[0002] In the current optical motion capture system, human motion capture can be performed by positioning the body parts and calculating the posture of the rigid bodies worn on various parts of the human body, thereby inferring the body's movements and other information. In the process of multi-person motion capture, the correctness of the positioning and posture calculation of multiple rigid bodies is easily interfered with by each other, resulting in deviations in the human motion capture solution. If the human motion capture solution conforms to certain constraints or models, establishing mutual constraints between the rigid bodies of various parts of the human body will help to locate the rigid bodies and estimate their postures. Generally, the amplitude of human motion will also affect the tracking of the rigid body. Therefore, the head is usually used as a reference to judge whether the rigid body meets the human body constraint conditions during the human motion capture process. However, in the complex human motion capture process, there may be situations where the head rigid body is poorly tracked while other body parts are well tracked. In view of this, it is necessary to propose a method to improve this situation. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes a method for restoring the correct posture information of a head rigid body and its device, equipment and storage medium.
[0004] The specific method of the technical solution adopted by the present invention is as follows:
[0005] According to the first aspect, an embodiment provides a method for restoring the correct posture of a head rigid body, comprising:
[0006] S1: Obtain the rigid body position information set P{(P 1t , P 2t , ...P pt )1、(P 1t , P 2t , ...P pt )2…(P 1t , P 2t , ...P pt ) N}, where p is the body part number, P pt is the rigid body position information on the human body part p, and N is the total number of human bodies;
[0007] S2: Obtain a set of rigid body position information at time t≥1, and obtain the actual distances HW1 and HW2 between the hands rigid body and the head rigid body, the actual distances HT1 and HT2 between the feet rigid body and the head rigid body, and the actual distance HL' between the waist rigid body and the head rigid body through the rigid body position information set;
[0008] S3: judging whether HW1, HW2, HT1, HT2, and HL' are correct according to the preset first constraint condition, and if so, ending the calculation;
[0009] S4: If the judgment result is no, judging whether only the head rigid body has crosstalk according to the preset second constraint condition;
[0010] S5: If yes, re-perform matching calculation to restore the correct new posture information of the head rigid body.
[0011] The human body parts include six parts: hands, head, waist and feet.
[0012] Taking the rigid body on the head as a reference, obtain the maximum distance HW between the rigid bodies of both hands and the rigid body of the head, the maximum distance HT between the rigid bodies of both feet and the rigid body of the head, the maximum distance HL between the rigid body of the waist and the rigid body of the head, and the approximate maximum distance ML=HW+HT respectively, and let HW=λ*HW+β, HT=λ*HT+β, HL=λ*HL+β, ML=λ*ML+β, where λ>1 and β is a constant, so that the HW, HT, HL and ML can have a certain error redundancy.
[0013] The preset first constraint condition includes:
[0014] if HW1<HW:f1=true else f1=false
[0015] if HW2<HW:f2=true else f2=false
[0016] if HT1<HT:f3=true else f3=false
[0017] if HT2<HT:f4=true else F4=false
[0018] if HL′<HL:f5=true else f5=false
[0019] Among them, f1 and f2 correspond to the position information of the hand rigid bodies respectively, f3 and f4 correspond to the position information of the foot rigid bodies respectively, and f5 corresponds to the position information of the waist rigid body. According to the preset first constraint condition, it can be determined whether HW1, HW2, HT1, HT2, and HL' are correct.
[0020] Taking the waist rigid body as a reference, calculate the maximum distance LW from the waist rigid body to the hands rigid body and the maximum distance LT from the waist rigid body to the feet rigid body respectively, and let LW=λ*LW+β1, LT=λ*LT+β1, where λ>1, β1 is a constant, so that LW and LT can have a certain error redundancy.
[0021] The preset second constraint condition includes:
[0022] Taking the waist rigid body as a reference, calculate the actual distances LW1 and LW2 from the waist rigid body to the hand rigid bodies, and the actual distances LT1 and LT2 from the waist rigid body to the foot rigid bodies, and determine whether LW1 and LW2 are respectively less than LW, and whether LT1 and LT2 are respectively less than LT. If so, it is considered that only the head rigid body has crosstalk.
[0023] The step S5 comprises:
[0024] Taking the human waist rigid body as a reference, a shielding point set Ps is established. The set Ps is the rigid body marker points that meet the preset second constraint condition. From the point set outside Ps, a point set Pt that meets the HL condition and whose distance from the head rigid body is less than the HL condition is obtained. The obtained point set Pt is re-matched with the rigid body marker points to obtain the correct new posture information of the human head rigid body.
[0025] According to the second aspect, an embodiment provides a device for restoring the correct posture of a head rigid body, comprising:
[0026] The acquisition unit is used to acquire the rigid body position information set P{(P 1t , P 2t , ...P pt )1、(P 1t , P 2t , ...P pt )2…(P 1t , P 2t , ...P pt ) N}, where p is the body part number, P pt is the rigid body position information on the human body part p, N is the total number of human bodies; obtain the rigid body position information set at time t≥1, and calculate the actual distances HW1 and HW2 of the hands rigid body from the head rigid body, the actual distances HT1 and HT2 of the feet rigid body from the head rigid body, and the actual distance HL' of the waist rigid body from the head rigid body through the rigid body position information set;
[0027] A judging unit, used to judge whether HW1, HW2, HT1, HT2, and HL' are correct according to a preset first constraint condition, and if so, terminate the calculation; if not, judge whether only the head rigid body has crosstalk according to a preset second constraint condition;
[0028] The calculation unit is used to re-calculate the matching when the judgment result is yes, so as to restore the correct new posture information of the head rigid body.
[0029] According to the third aspect, an embodiment provides a device for restoring the correct position of a head rigid body, including: a memory, a processor, and a method program for restoring the correct position of a head rigid body stored in the memory and executable on the processor, wherein the method program for restoring the correct position of a head rigid body implements the method described in the first aspect above when executed by the processor.
[0030] According to a fourth aspect, an embodiment provides a computer-readable storage medium, comprising a program, wherein the program can be executed by a processor to implement the method described in the first aspect.
[0031] The beneficial effects of this application are:
[0032] According to a method for restoring the correct posture of a head rigid body in the above embodiment, firstly, the position information of the rigid bodies worn on various parts of the bodies of multiple people at the initial moment (t=0) is obtained, and then the rigid body position information set at the moment t≥1 is obtained, and the distance between the rigid bodies of various parts of each person's body and the head rigid body is obtained through the rigid body position information set, and then it is judged whether these distance relationships are correct according to the preset first constraint condition, and if so, the calculation is terminated; if the judgment result is no, it is judged according to the preset second constraint condition whether only the head rigid body has crosstalk; if so, the matching calculation is re-performed to restore the correct new posture information of the head rigid body. This scheme can effectively improve and prevent the problem of crosstalk of the head rigid body, and can effectively restore the correct posture information of the head rigid body through other parts of the human body (such as the left and right hand rigid bodies, the left and right foot rigid bodies, and the waist rigid body, etc.). BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A flowchart of the method for restoring the correct posture of the head rigid body in this application;
[0034] Figure 2 A schematic diagram of a device for restoring the correct posture of a head rigid body in this application;
[0035] Figure 3 This is a schematic diagram of the structure of the device for restoring the correct posture of the head rigid body in this application. DETAILED DESCRIPTION
[0036] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.
[0037] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.
[0038] The serial numbers of the components in this document, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings).
[0039] Embodiment 1
[0040] Please refer to Figure 1 The present application discloses a method for restoring the correct posture of a head rigid body, which includes steps S110-S150, which will be described below respectively.
[0041] Step S110, obtaining the rigid body position information P{(P 1t , P 2t , ...P pt )1、(P 1t , P 2t , ...P pt )2…(P 1t , P 2t , ...P pt ) N}, where P is the rigid body position information set, p is the human body part number, P pt is the rigid body position information on the human body part p, and N is the total number of human bodies;
[0042] In one embodiment, the human body first performs TPose at a certain distance, that is, the hands are horizontally opened, the legs are close together, the head is looking forward, and the waist is straight. This posture is used to ensure that the position information of each rigid body obtained at the initial time is correct, and the position information set P{(P 1t , P 2t , ...P pt )1、(P 1t , P 2t , ...P pt )2…(P 1t , P 2t , ...P pt )N}, where p is the number of the human body part, for example, p=6, that is, the human body parts include 6 numbered parts such as hands, head, waist, and feet, N is the total number of human bodies, P pt is the rigid body position information on the human body part p. This embodiment takes a multi-person motion capture scene as an example to obtain the rigid body position information.
[0043] With the head rigid body as a reference, the distances of the hands, feet and waist rigid bodies from the head rigid body can be obtained respectively. At this time, the maximum distance between the hands rigid body and the head rigid body is taken as HW, the maximum distance between the feet rigid body and the head rigid body is taken as HT, the maximum distance between the waist rigid body and the head rigid body is taken as HL, and the approximate longest distance of the human body is taken as ML = HW + HT. In order to have a certain error redundancy, HW, HT, HL and ML can be multiplied by a coefficient λ greater than 1, that is, HW = λ*HW + β, HT = λ*HT + β, HL = λ*HL + β, ML = λ*ML + β, where β is a constant, to ensure that the obtained rigid body position information is as correct as possible.
[0044] Step S120, obtaining a set of rigid body position information at time t≥1, and calculating the actual distances HW1 and HW2 between the hands rigid body and the head rigid body, the actual distances HT1 and HT2 between the feet rigid body and the head rigid body, and the actual distance HL' between the waist rigid body and the head rigid body through the set of rigid body position information;
[0045] The human body parts may include: hands, head, waist, feet, etc. Let t≥1 be the time when human motion capture starts. Similarly, the rigid body position information set at each time is obtained as P{(P 1t , P 2t , ...P pt )1、(P 1t , P 2t , ...P pt )2…(P 1t , P 2t , ...P pt ) N}, through the rigid body position information set, the distance relationship between the positions of the rigid bodies on each person can be obtained (with the head rigid body as a reference), these distance relationships include: the actual distances HW1 and HW2 from the hand rigid bodies to the head rigid body, the actual distances HT1 and HT2 from the foot rigid bodies to the head rigid body, and the actual distance HL' from the waist rigid body to the head rigid body.
[0046] Step S130, judging whether HW1, HW2, HT1, HT2, HL' are correct according to the preset first constraint condition, and if so, ending the calculation;
[0047] The first constraint is the following formula:
[0048] if HW1<HW:fl=true else fl=false
[0049] if HW2<HW:f2=true else f2=false
[0050] if HT1<HT:f3=true else f3=false
[0051] if HT2<HT:F4=true else f4=false
[0052] if HL′<HL:f5=true else f5=false
[0053] Among them, f1 and f2 correspond to the position data of the rigid bodies of both hands respectively, f3 and f4 correspond to the position data of the rigid bodies of both feet respectively, and f5 corresponds to the position data of the rigid body of the waist. According to the preset first constraint condition, it can be judged whether the distance relationship between the positions of the rigid bodies on each person is correct, that is, the actual distances HW1, HW2, HT1, HT2, HL' of the rigid body positions of various parts of the body at time t≥1 are compared with the maximum distances of the rigid body positions of various parts of the body at the initial moment. If the actual distance is less than the maximum distance, it is judged to be true (true), indicating that the distance is correct, otherwise it is wrong (false).
[0054] In one embodiment, the set of rigid body marker points on each part of the human body corresponding to the above rigid body position information set P is obtained as F{(F 1t , F 2t , ... F pt )1、(F 1t , F 2t , ... F pt )2…(F 1t , F 2t , ... F pt ) N}, let the rigid body marker point F on the body of multiple people 1t Represents the head rigid body, that is, F 1t As reference data, there are algorithms that can guarantee its correctness, then F 1t All are true, the rigid body markers F of other body parts 2t , ... F pt For example, it can represent the rigid body position data on the hands, waist, feet, etc., so it can be understood that f1, f2, f3, f4, and f5 correspond to the rigid body position data F on the hands, waist, feet, etc. 2t , ... F pt Through the preset first constraint condition, it can be determined whether the rigid body position data on the hands, waist, feet and other parts are correct. If so, the correct rigid body marker point set can be obtained, thereby directly terminating the calculation. If not, enter step S140.
[0055] Step S140: if the judgment result is no, judging whether only the head rigid body has crosstalk according to the preset second constraint condition;
[0056] In this embodiment, taking the waist rigid body as a reference, the maximum distance LW from the waist rigid body to the hand rigid body and the maximum distance LT from the waist rigid body to the foot rigid body are calculated respectively, and LW=λ*LW+β1, LT=λ*LT+β1, where λ>1 and β1 is a constant, so that LW and LT can have a certain error redundancy.
[0057] For the rigid body whose position information is incorrect, it is determined whether only the head rigid body has crosstalk according to the following preset second constraint condition:
[0058] Taking the waist rigid body as a reference, calculate the actual distance LW1 and LW2 from the waist rigid body to the hands rigid body, and the actual distance LT1 and LT2 from the waist rigid body to the feet rigid body, and determine whether LW1 and LW2 are less than LW respectively, and whether LT1 and LT2 are less than LT respectively. If so, it is considered that the data of the hands and feet rigid bodies are correct, which means that only the head rigid body has crosstalk, which causes the results of f1, f2, f3, f4, and f5 to be false.
[0059] Step S150: If yes, re-perform matching calculation to restore the correct new posture information of the head rigid body, specifically including:
[0060] Taking the human waist rigid body as a reference, a shielding point set Ps is established. The set Ps is a set of rigid body marker points that meet the preset second constraint condition, that is, the correct rigid body marker point set Ps is shielded, and only the rigid body marker points that meet the conditions are found in the erroneous point set excluding Ps. Specifically, the point set Pt that meets the condition that the distance from the head rigid body is less than the above-mentioned maximum distance HL is obtained from the point set other than Ps. That is, when re-searching for the rigid body marker point set for matching, only the 3D point set in the space whose distance from the head rigid body position is less than the maximum distance HL is searched. In this way, the correct point set Pt can be successfully obtained, and then the obtained point set Pt and the rigid body marker points are re-matched and calculated to obtain the correct new posture information of the human head rigid body.
[0061] If the new position of the head rigid body can be solved correctly, then the matching point information set P with the human head rigid body is recorded. m , and P m Stack and store to P s If the correct position of the head rigid body cannot be obtained, it is considered that the head rigid body of the human body has been lost.
[0062] Embodiment 2
[0063] Please refer to Figure 2 The present application discloses a device 3 for restoring the correct posture of a head rigid body, comprising:
[0064] The acquisition unit 31 is used to acquire the position information P{(P 1t , P 2t , ...P pt )1、(P 1t , P 2t , ...P pt )2…(P 1t , P 2t , ...P pt ) N}, where P is a rigid body position information set, p is a human body part number, and N is the total number of human bodies; obtain a rigid body position information set at time t≥1, and obtain the actual distances HW1 and HW2 of the hands rigid body from the head rigid body, the actual distances HT1 and HT2 of the feet rigid body from the head rigid body, and the actual distance HL' of the waist rigid body from the head rigid body through the rigid body position information set;
[0065] The judgment unit 32 is used to judge whether the above-mentioned HW1, HW2, HT1, HT2, HL' are correct according to the preset first constraint condition. If so, the calculation is terminated; if not, it is used to judge whether only the head rigid body has crosstalk according to the preset second constraint condition; for the specific functions of the judgment unit 32, please refer to the relevant contents in steps S130-S140, which will not be described in detail here.
[0066] The calculation unit 33 is used to re-perform the matching calculation to restore the correct new posture information of the head rigid body when the judgment result is yes.
[0067] Embodiment 3
[0068] Please refer to Figure 3 The present application also discloses a device 4 for restoring the correct posture of a head rigid body, which may include a memory 41 and a processor 42, and a method program for restoring the correct posture of a head rigid body stored in the memory 41 and executable on the processor 42. In addition, it should be noted that the method program for restoring the correct posture of a head rigid body here can implement the steps of the method for restoring the correct posture of a head rigid body in the first embodiment (i.e., steps S110-S150) when executed by the processor 42.
[0069] It should be noted that, in this embodiment, the method program for restoring the correct posture of the head rigid body stored in the memory 41 may include some functional modules, such as the acquisition unit 31, the judgment unit 32 and the calculation unit 33 claimed in the second embodiment. Among them, the acquisition unit 31 is used to obtain the rigid body position information P{(P 1t , P 2t , ...P pt )1、(P 1t , P 2t , ...P pt )2…(P 1t , P 2t , ...P pt ) N}, where P is the rigid body position information set, p is the human body part number, and N is the total number of human bodies; obtain the rigid body position information set at time t≥1, and use the rigid body position information set to calculate the actual distance between the hands rigid body and the head rigid body, the actual distance between the feet rigid body and the head rigid body, and the actual distance between the waist rigid body and the head rigid body;
[0070] The calculation unit 33 is connected to the judgment unit 32, and is used to re-calculate the matching of the rigid body marker points that meet the constraint conditions with the help of other parts of the body, so as to restore the correct new posture information of the head rigid body.
[0071] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.
[0072] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.
Claims
1. A method for restoring the correct posture of a head rigid body, characterized in that: include: S1: Obtain the rigid body position information set P{(P 1t ,P 2t ,...P pt )1、(P 1t ,P 2t ,...P pt )2...(P 1t ,P 2t ,...P pt ) N }, where p is the body part number, P pt is the rigid body position information on the human body part p, and N is the total number of human bodies; S2: Obtain the rigid body position information set at time t≥1, and obtain the actual distances HW1 and HW2 between the hands rigid body and the head rigid body, the actual distances HT1 and HT2 between the feet rigid body and the head rigid body, and the actual distance HL between the waist rigid body and the head rigid body through the rigid body position information set;' S3: judging whether HW1, HW2, HT1, HT2, and HL' are correct according to the preset first constraint condition, and if so, ending the calculation; S4: If the judgment result is no, judging whether only the head rigid body has crosstalk according to the preset second constraint condition; S5: If yes, re-calculate the matching to restore the correct new pose information of the head rigid body; The preset first constraint condition includes: if HW1<HW:f1=true else f1=false if HW2<HW:f2=true else f2=false if HT1<HT:f3=true else f3=false if HT2<HT:f4=true else f4=false if HL'<HL:f5=true else f5=false Among them, f1 and f2 correspond to the position information of the hands rigid body respectively, f3 and f4 correspond to the position information of the feet rigid body respectively, f5 corresponds to the position information of the waist rigid body, HW refers to the maximum distance between the hands rigid body and the head rigid body, HT refers to the maximum distance between the feet rigid body and the head rigid body, and HL refers to the maximum distance between the waist rigid body and the head rigid body; The preset second constraint condition includes: taking the waist rigid body as a reference, calculating the actual distances LW1 and LW2 from the waist rigid body to the two hands rigid body, and the actual distances LT1 and LT2 from the waist rigid body to the two feet rigid body, and judging whether LW1 and LW2 are respectively less than LW, and whether LT1 and LT2 are respectively less than LT. If so, it is considered that only the head rigid body has crosstalk.
2. A method for restoring the correct posture of a head rigid body as claimed in claim 1, characterized in that: The human body parts include six parts: hands, head, waist and feet.
3. A method for restoring the correct posture of a head rigid body as claimed in claim 2, characterized in that: Taking the rigid body on the head as a reference, obtain the maximum distance HW between the rigid bodies of both hands and the rigid body of the head, the maximum distance HT between the rigid bodies of both feet and the rigid body of the head, the maximum distance HL between the rigid body of the waist and the rigid body of the head, and the approximate maximum distance ML=HW+HT respectively, and let HW=λ*HW+β, HT=λ*HT+β, HL=λ*HL+β, ML=λ*ML+β, where λ>1 and β is a constant, so that the HW, HT, HL and ML can have a certain error redundancy.
4. A method for restoring the correct posture of a head rigid body as claimed in claim 3, characterized in that: According to the preset first constraint condition, it can be determined whether HW1, HW2, HT1, HT2, and HL' are correct.
5. A method for restoring the correct posture of a head rigid body as claimed in claim 1, characterized in that: Taking the waist rigid body as a reference, calculate the maximum distance LW from the waist rigid body to the hands rigid body and the maximum distance LT from the waist rigid body to the feet rigid body respectively, and let LW=λ*LW+β1, LT=λ*LT+β1, where λ>1, β1 is a constant, so that LW and LT can have a certain error redundancy.
6. A method for restoring the correct posture of a head rigid body according to any one of claims 1 to 5, characterized in that: The step S5 comprises: Taking the human waist rigid body as a reference, a shielding point set Ps is established. The set Ps is the rigid body marker points that meet the preset second constraint condition. From the point set outside Ps, a point set Pt that meets the HL condition and whose distance from the head rigid body is less than the HL condition is obtained. The obtained point set Pt is re-matched with the rigid body marker points to obtain the correct new posture information of the human head rigid body.
7. A device for restoring the correct posture of a head rigid body, characterized in that: include: The acquisition unit is used to acquire the rigid body position information set P{(P 1t ,P 2t ,...P pt )1、(P 1t ,P 2t ,...P pt )2...(P 1t ,P 2t ,...P pt ) N }, where p is the body part number, P pt is the rigid body position information on the human body part p, N is the total number of human bodies; obtain the rigid body position information set at time t≥1, and obtain the actual distances HW1 and HW2 of the hands rigid body from the head rigid body, the actual distances HT1 and HT2 of the feet rigid body from the head rigid body, and the actual distance HL of the waist rigid body from the head rigid body through the rigid body position information set;' A judging unit, used to judge whether HW1, HW2, HT1, HT2, and HL' are correct according to a preset first constraint condition, and if so, terminate the calculation; if not, judge whether only the head rigid body has crosstalk according to a preset second constraint condition; A calculation unit, used for re-calculating the matching when the judgment result is yes, so as to restore the correct new posture information of the head rigid body; The preset first constraint condition includes: if HW1<HW:f1=true else f1=false if HW2<HW:f2=true else f2=false if HT1<HT:f3=true else f3=false if HT2<HT:f4=true else f4=false if HL'<HL:f5=true else f5=false Among them, f1 and f2 correspond to the position information of the hands rigid body respectively, f3 and f4 correspond to the position information of the feet rigid body respectively, f5 corresponds to the position information of the waist rigid body, HW refers to the maximum distance between the hands rigid body and the head rigid body, HT refers to the maximum distance between the feet rigid body and the head rigid body, and HL refers to the maximum distance between the waist rigid body and the head rigid body; The preset second constraint condition includes: taking the waist rigid body as a reference, calculating the actual distances LW1 and LW2 from the waist rigid body to the two hands rigid body, and the actual distances LT1 and LT2 from the waist rigid body to the two feet rigid body, and judging whether LW1 and LW2 are respectively less than LW, and whether LT1 and LT2 are respectively less than LT. If so, it is considered that only the head rigid body has crosstalk.
8. A device for restoring the correct posture of a head rigid body, characterized in that it comprises: A memory, a processor, and a method program for restoring the correct position of a head rigid body stored in the memory and executable on the processor, wherein the method program for restoring the correct position of a head rigid body, when executed by the processor, implements the steps of the method for restoring the correct position of a head rigid body as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that: The method comprises a program which can be executed by a processor to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method, device and system for tracking rigid body
CN107316319A
A method for estimating three-dimensional human body postures and hand information
CN109636831A
Initial correction method for single posture of human body
CN110398256A
Rigid body position information tracking method and device, equipment and storage medium
CN112465857A
Method, device and equipment for tracking rigid body position information based on 1[symbol in description] filtering
CN112508992A
