Attitude estimation system and attitude estimation method
The posture estimation system improves accuracy by using orthogonal direction reference vectors to determine joint angles, addressing ambiguity in movable part orientations.
Patent Information
- Application Number
- JP2023053042
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
AI Technical Summary
Existing posture estimation systems face challenges in accurately determining joint angles due to ambiguity in the orientation of movable parts relative to a reference part, leading to reduced accuracy.
A posture estimation system and method that involves acquiring part vectors from joint points, determining a direction reference vector orthogonal to the reference part vector, and using this vector to accurately calculate joint angles by considering the movable part's direction relative to the reference part.
Enhances the accuracy of posture estimation by clearly defining the orientation of movable parts, thereby reducing errors in joint angle determination.
Smart Images

Figure 2024141415000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a posture estimation system and a posture estimation method. [Background technology]
[0002] Patent Document 1 discloses a technique for estimating a posture by utilizing machine learning to estimate a skeleton model and each joint point of a person from image data of the person. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2023-015598 A Summary of the Invention [Problem to be solved by the invention]
[0004] When estimating posture using a skeletal model, vectors indicating multiple joint points on a person and the parts connecting the multiple joint points are obtained, and the angle between the vectors between two parts that can move relative to each other via a joint is obtained to estimate the joint angle. For example, as shown in FIG. 7, when trying to find the angle of the hip joint of a person who is walking, the angle between vector 100 indicating the trunk and vector 102 indicating the thigh is found.
[0005] Here, the angle between the two vectors is determined using the dot product relationship of the vectors, and therefore takes a value in the range from 0 degrees to 180 degrees. As a result, when trying to calculate the thigh joint angle based on the angle between two vectors, there is a risk that it will be impossible to determine whether the thigh is located in front of or behind the person, which can reduce the accuracy of posture estimation. [Means for solving the problem]
[0006] A posture estimation system according to an embodiment is a system for estimating the posture of a subject having a reference part and a movable part connected to the reference part via a joint. The posture estimation system includes a processing unit that executes the following processes: acquiring a plurality of part vectors indicating parts of the subject based on a plurality of joint points obtained from an image of the subject; calculating an inter-vector angle between a reference part vector indicating the reference part among the plurality of part vectors and a movable part vector indicating the movable part among the plurality of part vectors; calculating a direction reference vector having a direction perpendicular to the reference part vector when the movable range of the movable part is viewed in a plane based on a reference part vector among the plurality of part vectors; and calculating a joint angle between the movable part and the reference part at the joint based on the inter-vector angle, the movable part vector, and the direction reference vector.
[0007] Also, from another viewpoint, the present embodiment is a posture estimation method. This posture estimation method estimates the posture of a subject having a reference part and a movable part connected to the reference part via a joint. The posture estimation method includes the steps of: acquiring a plurality of part vectors indicating the parts of the subject based on a plurality of joint points obtained from an image capturing the subject; calculating an inter-vector angle between a reference part vector indicating the reference part among the plurality of part vectors and a movable part vector indicating the movable part among the plurality of part vectors; calculating a direction reference vector having a direction perpendicular to the reference part vector when the movable range of the movable part is viewed in a plane based on a reference part vector among the plurality of part vectors; and calculating a joint angle between the movable part and the reference part at the joint based on the inter-vector angle, the movable part vector, and the direction reference vector. Effect of the Invention
[0008] According to the present disclosure, it is possible to suppress a decrease in accuracy of posture estimation. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing an overall configuration of a posture estimation system according to an embodiment. [Diagram 2] FIG. 2 is a flowchart showing a procedure for pose estimation using the pose estimation system 1. [Diagram 3] FIG. 3 is a diagram showing a plurality of joint points estimated by the processing unit 6. As shown in FIG. [Figure 4] FIG. 4 is a flowchart showing an example of the joint angle estimation process. [Diagram 5] FIG. 5 is a diagram showing some of the part vectors when the subject T is viewed from the side. [Figure 6] FIG. 6 is a diagram showing some of the part vectors when the subject T is viewed from the front. [Figure 7] FIG. 7 is a diagram showing the relationship between the vector of the trunk and the vector of the thigh. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] First, the contents of the embodiment will be listed and described. [Outline of the embodiment] (1) A posture estimation system according to an embodiment is a system for estimating the posture of a subject having a reference part and a movable part connected to the reference part via a joint. The posture estimation system includes a processing unit that executes the following processes: acquiring a plurality of part vectors indicating parts of the subject based on a plurality of joint points obtained from an image of the subject; calculating an inter-vector angle between a reference part vector indicating the reference part among the plurality of part vectors and a movable part vector indicating the movable part among the plurality of part vectors; calculating a direction reference vector having a direction perpendicular to the reference part vector when the movable range of the movable part is viewed in a plane based on a reference part vector among the plurality of part vectors; and calculating a joint angle between the movable part and the reference part at the joint based on the inter-vector angle, the movable part vector, and the direction reference vector.
[0011] According to the above system, a direction reference vector having a direction perpendicular to the reference part vector is obtained, so that the moving direction (movable position) of the movable part vector can be identified based on the direction reference vector and the movable part vector. As a result, when determining the joint angle from the reference part vector and the movable part vector, the moving direction of the movable part relative to the reference part can be taken into consideration, allowing the joint angle to be determined with high accuracy. As a result, the deterioration of the accuracy of the attitude estimation can be suppressed.
[0012] (2) In the above system, it is preferable that the reference part vector is a vector of a part among the multiple part vectors that extends in a direction intersecting the longitudinal direction of the reference part when the movable range of the movable part is viewed in a plane. In this case, the direction reference vector can be suitably obtained.
[0013] (3) In the above system, it is preferable that the process of calculating the direction reference vector includes a process of calculating a vector perpendicular to the reference part vector when the movable range of the movable part is viewed in a plane based on the reference part vector and the movable part vector, and a process of calculating the direction reference vector based on a vector perpendicular to the reference part vector and the reference part vector. In this case, the direction reference vector can be obtained using the reference portion vector and the movable portion vector in addition to the reference portion vector.
[0014] (4) In the above system, the part indicated by the reference part vector may be the foot, and the reference part may be the trunk. In this case, the angle of the movable part that can move in the forward and backward directions of the subject can be suitably obtained. (5) In this case, the movable part may be the thigh. (6) The movable part may be the upper arm.
[0015] (7) In the above system, the part indicated by the reference part vector may be the shoulder, and the reference part may be the trunk. In this case, the angle of the movable part that can move in the left-right direction of the subject can be suitably obtained. (8) In this case, the movable part may be the thigh. (9) The movable part may be the upper arm.
[0016] (10) Also, from another viewpoint, the present embodiment is a posture estimation method. This posture estimation method estimates the posture of a subject having a reference part and a movable part connected to the reference part via a joint. The posture estimation method includes the steps of: acquiring a plurality of part vectors indicating parts of the subject based on a plurality of joint points obtained from an image capturing the subject; calculating an inter-vector angle between a reference part vector indicating the reference part among the plurality of part vectors and a movable part vector indicating the movable part among the plurality of part vectors; calculating a direction reference vector having a direction perpendicular to the reference part vector when the movable range of the movable part is viewed in a plane based on a reference part vector among the plurality of part vectors; and calculating a joint angle between the movable part and the reference part at the joint based on the inter-vector angle, the movable part vector, and the direction reference vector.
[0017] [Details of the embodiment] Hereinafter, preferred embodiments will be described with reference to the drawings. [Overall structure] FIG. 1 is a diagram showing an overall configuration of a posture estimation system according to an embodiment. A posture estimation system 1 according to the embodiment is a system that captures an image of a subject and estimates the posture of the subject based on the captured moving or still images.
[0018] The pose estimation system 1 includes a plurality of cameras 2 and a processing device 4 . Each of the multiple cameras 2 has an imaging element such as a CCD element or a CMOS element, and an optical mechanism such as a lens, and has the function of capturing an image of a predetermined imaging range and generating image data such as a video or still image. The cameras 2 capture a subject T within the imaging range as a subject, and generate image data of the subject T. The cameras 2 are supported by legs 3, and are installed at a height of about half the height of the subject T. As a result, the imaging direction of the cameras 2 when capturing an image of the subject T is approximately horizontal. The camera 2 is communicatively connected to a processing device 4. Image data generated by the camera 2 is provided to the processing device 4.
[0019] The processing device 4 is configured by a computer or the like that includes a processing unit 6, a storage unit 8, and an input / output unit 10. The processing unit 6 is composed of, for example, a CPU (Central Processing Unit).
[0020] The storage unit 8 is, for example, a flash memory, a hard disk, a ROM (Read Only Memory), a RAM (Random Access Memory), or the like. The storage unit 8 stores computer programs and necessary information to be executed by the processing unit 6. The processing unit 6 executes computer programs stored in a computer-readable non-transitory recording medium such as the storage unit 8, thereby realizing various processing functions of the processing unit 6.
[0021] The input / output unit 10 includes an input device and an output device. The input device has a function of accepting operations by an operator of the processing device 4. The input device includes a keyboard, a mouse, a touch panel, etc. The output device has a function of outputting various information related to processing by the processing device 4 to the outside. The output device includes a monitor, a printer, a touch panel, a speaker, etc.
[0022] [Posture estimation using a posture estimation system] FIG. 2 is a flowchart showing a procedure for pose estimation using the pose estimation system 1. In posture estimation, first, an operator captures an image of a subject T using multiple cameras 2 (step S1 in FIG. 2). Image data generated by the multiple cameras 2 by capturing an image of the subject T is provided to the processing device 4 as described above. When image data of subject T is given, the processing unit 6 of the processing device 4 identifies an image of subject T from the image contained in the image data, estimates the skeleton of subject T based on the image of subject T, and further estimates multiple joint points from the estimated skeleton (step S2 in Figure 2). The processing unit 6 uses a method utilizing machine learning to estimate the skeleton and joint points of the subject T. Examples of the method for estimating the skeleton and joint points include open pose. The processing unit 6 estimates the body parts of the subject T, such as the head, neck, shoulders, arms, waist, thighs, and legs, and further estimates the joint points where each body part is connected.
[0023] FIG. 3 is a diagram showing a plurality of joint points estimated by the processing unit 6. As shown in FIG. As shown in FIG. 3 , the joint points estimated by the processing unit 6 include a head joint point 20, a left shoulder joint point 21, a right shoulder joint point 22, a left elbow joint point 23, a right elbow joint point 24, a left wrist joint point 25, a right wrist joint point 26, a left hip joint point (left buttock joint point) 27, a right hip joint point (right buttock joint point) 28, a left knee joint point 29, a right knee joint point 30, a left ankle joint point 31, a right ankle joint point 32, a left toe joint point 33, a right toe joint point 34, a left heel joint point 35, and a right heel joint point 36.
[0024] The processing unit 6 obtains coordinates as position information of a plurality of joint points. Furthermore, processing unit 6 acquires a plurality of part vectors based on a plurality of joint points (step S3 in FIG. 2). The multiple part vectors are directional vectors indicating multiple parts that make up the subject T. The processing unit 6 determines, based on the coordinates of a plurality of joint points, a vector between the joint points connected by a part of the subject T as a part vector. The site vector in FIG. 3 is a vector that points in the direction of the arrow shown in the figure.
[0025] As shown in FIG. 3, the part vectors acquired by the processing unit 6 include a left upper arm vector 41, a right upper arm vector 42, a left forearm vector 43, a right forearm vector 44, a left thigh vector 45, a right thigh vector 46, a left shin vector 47, a right shin vector 48, a left foot vector 49, and a right foot vector 50.
[0026] Furthermore, the processing unit 6 determines a first midpoint 52 between the left shoulder joint point 21 and the right shoulder joint point 22. Moreover, the processing unit 6 determines a second midpoint 54 between the left hip joint point 27 and the right hip joint point . The processing unit 6 obtains a vector connecting the first midpoint 52 and the second midpoint 54 as a trunk vector 56. The trunk vector 56 is a part vector indicating the trunk of the subject T. The trunk refers to the torso part of the subject T other than the head, neck, arms, and legs. Furthermore, the processing unit 6 obtains a vector connecting the first midpoint 52 and the left shoulder joint point 21 as a left shoulder vector 57. The left shoulder vector 57 is a part vector indicating the left shoulder of the subject T. The processing unit 6 obtains a vector connecting the first midpoint 52 and the right shoulder joint point 22 as a right shoulder vector 58. The right shoulder vector 58 is a part vector indicating the right shoulder of the subject T.
[0027] In the following description, the three mutually orthogonal directions in each drawing are referred to as the X direction, the Y direction, and the Z direction. As shown in Fig. 3, one of the X directions is referred to as the X1 direction, and the opposite direction of the X1 direction is referred to as the X2 direction. One of the Y directions is referred to as the Y1 direction, and the opposite direction of the Y1 direction is referred to as the Y2 direction. One of the Z directions is referred to as the Z1 direction, and the opposite direction of the Z1 direction is referred to as the Z2 direction. In addition, in the following description, the trunk vector 56 is assumed to be parallel to the Y direction, the left shoulder vector 57 and the right shoulder vector 58 are assumed to be parallel to the Z direction, and the second midpoint, the left hip joint point 27, and the right hip joint point 28 are assumed to be aligned in a straight line along the Z direction. In other words, the X direction, Y direction, and Z direction are directions based on subject T, and are determined based on subject T's trunk vector 56, left shoulder vector 57, and right shoulder vector 58. For example, the X1 direction is a forward direction (anterior direction) from the perspective of the subject T. The X2 direction is a backward direction (posterior direction) from the perspective of the subject T. Moreover, the XY plane is a sagittal plane, and the YZ plane is a coronal plane.
[0028] As shown in Fig. 2, when a plurality of part vectors are acquired, the processing unit 6 performs a posture estimation process (step S4 in Fig. 2). The processing unit 6 estimates the posture of the subject T using the plurality of part vectors. The processing unit 6 performs a process (joint angle estimation process) for obtaining an estimated value of a joint angle between two parts connected via a joint, and estimates the posture of the subject T.
[0029] When the image data generated by the multiple cameras 2 is a moving image, the processing unit 6 performs the above-mentioned processes of steps S2 to S4 on some or all of the multiple still images included in the moving image, and estimates the posture of the subject T.
[0030] When the posture of the subject T is estimated in step S4, the processing unit 6 outputs the posture estimation result to the operator via the input / output unit 10 (step S5 in FIG. 2), and ends the processing.
[0031] [Joint angle estimation process] As described above, in the posture estimation process in FIG. 2, the processing unit 6 performs a joint angle estimation process for obtaining an estimated value of a joint angle. FIG. 4 is a flowchart showing an example of the joint angle estimation process. In the joint angle estimation process, the processing unit 6 obtains an estimate of the joint angle between a reference part and a movable part. The reference part is a part that serves as a reference for the movement of the movable part. The movable part is a part that is connected to the reference part via a joint. The processing unit 6 identifies the position of the tip of the movable part vector and obtains an estimate of the joint angle based on the position of the tip of the movable part vector. In the following description, the estimate of the joint angle may be simply referred to as the joint angle.
[0032] In the joint angle estimation process, the processing unit 6 first obtains a vector perpendicular to the reference portion vector (step S11 in FIG. 4). The processing unit 6 obtains a vector perpendicular to the reference part vector when the movable range of the movable part is viewed in a plane based on the reference part vector and the movable part vector. The reference part vector is a vector indicating the reference part. The movable part vector is a vector indicating the movable part. Viewing the movable range of a movable part in a plan view means viewing the parts and vectors on the plane that includes the movable range from the normal direction of the plane.
[0033] After determining the vector perpendicular to the reference part vector, the processing unit 6 proceeds to step S12 to determine a direction reference vector. The direction reference vector is a vector having a direction perpendicular to the reference part vector, and is a vector for identifying the moving direction (movable position) of the movable part vector. The processing unit 6 calculates a directional reference vector based on a vector perpendicular to the reference part vector and the reference part vector. The reference part vector is a vector of a part that extends in a direction intersecting the longitudinal direction of the reference part when the movable range of the movable part is viewed in a plane among the multiple part vectors.
[0034] After determining the direction reference vector, the processing unit 6 proceeds to step S13 to determine the inter-vector angle, which is the angle between the reference portion vector and the movable portion vector. After determining the inter-vector angle, the processing unit 6 proceeds to step S14, determines the joint angle based on the inter-vector angle, the movable part vector, and the direction reference vector, and then ends the process.
[0035] [Hip joint angle estimation process on the XY plane] Next, the above-mentioned joint angle estimation process will be described in more detail. Here, first, a joint angle estimation process will be described in which a joint angle is obtained based on an image of a walking subject T captured from the side (Z1 direction).
[0036] Fig. 5 is a diagram showing some of the part vectors when the subject T is viewed from the side. Fig. 5 shows a case where the joint points and part vectors are acquired based on an image of the subject T captured from the Z1 direction. That is, Fig. 5 shows the joint points and part vectors on the XY plane.
[0037] FIG. 5 shows the trunk vector 56, left upper arm vector 41, left thigh vector 45, left foot vector 49, and right foot vector 50 of subject T when subject T is walking in the X1 direction (forward). Hereinafter, the processing unit 6 performs joint angle estimation processing to estimate the joint angle θ of the left hip joint. hipl The case of calculating the joint angle θ hipl As shown in FIG. 5, is the joint angle between the trunk 60 of the subject T and the left thigh 62 connected to the trunk 60 via the hip joint 61 on the XY plane. In other words, here, a case will be described in which the processing unit 6 determines an estimated value of the joint angle at the hip joint between the trunk 60 and the left thigh 62, when the trunk 60 is the reference part and the left thigh 62 is the movable part. The left thigh 62 has a movable range along the XY plane. Therefore, Fig. 5 shows the movable range of the left thigh 62 in a plan view.
[0038] First, the processing unit 6 obtains a vector perpendicular to the trunk vector 56 (reference part vector) on the XY plane (step S11 in FIG. 4). Processing unit 6 obtains vector n perpendicular to trunk vector 56 based on the following formula (1). Note that in this specification, the arrows on the characters representing vectors may be omitted, and vectors may be represented by the character vector.
[0039]
number
[0040] In formula (1), d spine is the trunk vector 56, d thghl is the left thigh vector 45. Vector n is perpendicular to the trunk vector 56, but it is unclear whether it faces the X1 direction or the X2 direction.
[0041] Next, the processing unit 6 obtains a direction reference vector a (step S11 in FIG. 4). The direction reference vector a is a vector for identifying the position of the tip of the left thigh vector 45 (movable part vector). The processing unit 6 determines a directional reference vector a based on the vector n and the reference portion vector. Joint angle θ hipl When calculating the foot vector d foot is used as the reference site vector. foot is expressed as the following equation (2).
[0042]
number
[0043] In formula (2), d lfoot is the left foot vector 49, d rfoot is the right foot vector 50. As shown in equation (2), the average of the left foot vector 49 and the right foot vector 50 is the foot vector d foot It is. The left foot vector 49 and the right foot vector 50 are expressed as in the above equations (3) and (4). In formula (3), p ltoe is the position vector of the left toe joint point 33, p lheel is the position vector of the left heel joint point 35, and in equation (4), p rtoe is the position vector of the right toe joint point 34, p rheelis the position vector of the right heel joint point 36. As shown in FIG. 5, the left foot vector 49 and the right foot vector 50 are vectors that point toward the X1 direction (front side) of the subject T. In this case, the left foot vector 49 and the right foot vector 50 almost never point toward the X2 direction (rear side) of the subject T. For this reason, the foot vector d foot indicates the X1 direction side of the subject T. Thus, the reference site vector, foot vector d foot is the vector of the left foot 64 and right foot 66, which are parts extending in a direction intersecting the longitudinal direction of the trunk 60 when the range of motion of the left thigh 62 is viewed in a plane.
[0044] Next, the processing unit 6 calculates the vector n and the foot vector d as shown in the following formula (5). foot Calculate the inner product α of and.
[0045]
number
[0046] Here, the foot vector d foot indicates the X1 direction side of the subject T. In addition, vector n is a vector perpendicular to the trunk vector 56. Therefore, if the inner product α is 0 or more, the vector n and the bar vector d foot It can be seen that the angle with respect to the target object T is in the range of 0 degrees to 90 degrees. Therefore, in this case, the processing unit 6 determines that the vector n faces the X1 direction side of the target object T. Conversely, if the dot product α is less than 0, then vector n and bar vector d foot It can be seen that the angle with respect to the target object T is in the range of 90 degrees to 180 degrees. Therefore, in this case, the processing unit 6 can determine that the vector n faces the X2 direction side of the target object T. In other words, the inner product α indicates the direction of the vector n.
[0047] Next, the processing unit 6 obtains a direction reference vector a based on the inner product α and the vector n, as shown in the following formula (6) (step S12 in FIG. 4).
[0048]
number
[0049] When the inner product α is equal to or greater than 0 (when the vector n faces the X1 direction of the subject T), the processing unit 6 sets the vector n as it is as the directional reference vector a. When the inner product α is smaller than 0 (when the vector n faces the X2 direction side of the subject T), the processing unit 6 inverts the vector n to obtain the direction reference vector a. As a result, the directional reference vector a is obtained as a vector that is perpendicular to the trunk vector 56 and points toward the X1 direction (front) of the subject T when the movable range of the left upper arm 72 is viewed in a plan view.
[0050] Next, the processing unit 6 obtains the inter-vector angle (step S13 in FIG. 4). The processing unit 6 calculates the inter-vector angle θ based on the following formula (7). tl Request.
[0051]
number
[0052] Angle between vectors θ tl After calculating the joint angle θ hipl is calculated (step S14 in FIG. 4). The processing unit 6 first calculates the inner product β of the direction reference vector a and the left thigh vector 45 as shown in the following formula (8). l Request.
[0053]
number
[0054] Inner product β l is equal to or greater than 0, it is understood that the angle between the direction reference vector a and the left thigh vector 45 is in the range of 0 degrees to 90 degrees. Therefore, in this case, the processing unit 6 can determine that the direction of the left thigh vector 45 is toward the X1 direction (front side) or that the left thigh vector 45 and the trunk vector 56 are located on the same straight line. Conversely, the inner product β l is smaller than 0, it is found that the angle between the direction reference vector a and the left thigh vector 45 is in the range of 90 degrees to 180 degrees. Therefore, in this case, the processing unit 6 can specify that the direction of the left thigh vector 45 is the X2 direction side (rear side).
[0055] Note that when the direction of the left thigh vector 45 is on the X1 direction side (front side), it refers to a case where the position of the tip of the left thigh vector 45 is on the X1 direction side of the trunk vector 56. Also, when the direction of the left thigh vector 45 is on the X2 direction side (rear side), it refers to a case where the position of the tip of the left thigh vector 45 is on the X2 direction side of the trunk vector 56.
[0056] Next, the processing unit 6 calculates the joint angle θ based on the following equation (9). hipl Request.
[0057]
number
[0058] In equation (9), the inner product β l If the vector angle θ is 0 or more, the processing unit 6 tl As it is, joint angle θ hipl Then, the inner product β l If is less than 0, the angle between the vectors with the sign reversed is θ tl Joint angle θ hipl Let us assume that. In other words, when the left thigh 62 is located on the X1 direction side (front side) of the subject T with respect to the trunk vector 56, the processing unit 6 calculates the inter-vector angle θ tl Joint angle θ hipl When the left thigh 62 is located on the X2 direction side (rear side) of the subject T with respect to the trunk vector 56, the vector angle θ tl Joint angle θ hipl Let us assume that.
[0059] In this way, the processing unit 6 can grasp whether the left thigh 62 of the subject T is located on the X1 direction side (front side) or the X2 direction side (rear side) of the subject T, and can determine the joint angle θ hipl can be found with high accuracy.
[0060] According to this embodiment, a direction reference vector a having a direction perpendicular to the trunk vector 56 (reference part vector) is obtained, so that the movable direction (movable position) of the left thigh vector 45 can be identified based on the direction reference vector a and the left thigh vector 45 (movable part vector). As a result, the joint angle θ hipl When calculating the joint angle θ, the movable direction of the left thigh 62 relative to the trunk 60 can be taken into consideration. hipl can be determined with high accuracy. As a result, the deterioration of the accuracy of the attitude estimation can be suppressed.
[0061] In the above example, the reference part vector, the foot vector d foot The part indicated by is the foot, and the reference part is the trunk 60, so that the angle of the movable part that can move in the front-back direction of the subject T can be suitably obtained.
[0062] [Shoulder joint angle estimation process on the XY plane] Next, the processing unit 6 performs joint angle estimation processing to estimate the joint angle θ of the left shoulder joint. shll The case of calculating the joint angle θ shllAs shown in FIG. 5, is the joint angle between the trunk 60 of the subject T and the left upper arm 72 connected to the trunk 60 via the left shoulder joint 70 on the XY plane. In other words, here, a case will be described in which the processing unit 6 determines an estimated value of the joint angle at the shoulder joint between the trunk 60 and the left upper arm 72 when the trunk 60 is the reference part and the left upper arm 72 is the movable part.
[0063] Joint angle θ shll When calculating the range of motion of the upper arm, like the thigh, the upper arm has a range of motion along the XY plane. Therefore, FIG. 5 shows the range of motion of the upper arm in a plan view. Therefore, the processing unit 6 calculates the hip joint angle θ hipl The direction reference vector a used in calculating the shoulder joint angle θ shll It can also be used to find Therefore, the joint angle θ shll When determining the direction reference vector a, the processing unit 6 performs the same processes as in steps S11 and S12 described above to determine the direction reference vector a.
[0064] Next, the processing unit 6 obtains the inter-vector angle (step S13 in FIG. 4). The processing unit 6 calculates the inter-vector angle θ based on the following formula (10). ul Request.
[0065]
number
[0066] Angle between vectors θ ul After calculating the joint angle θ shll is calculated (step S14 in FIG. 4). The processing unit 6 calculates the inner product γ of the direction reference vector a and the left upper arm vector 41 as shown in the following formula (11). l Request.
[0067]
number
[0068] In formula (11), d uarml is the left upper arm vector 41. Inner product gamma l is equal to or greater than 0, it is understood that the angle between the direction reference vector a and the left upper arm vector 41 is in the range of 0 degrees to 90 degrees. Therefore, in this case, the processing unit 6 can determine that the direction of the left upper arm vector 41 is toward the X1 direction (front side) or that the left upper arm vector 41 and the trunk vector 56 are located on the same straight line. Conversely, the inner product γ l is smaller than 0, it is found that the angle between the direction reference vector a and the left upper arm vector 41 is in the range of 90 degrees to 180 degrees. Therefore, in this case, the processing unit 6 can specify that the direction of the left upper arm vector 41 is the X2 direction side (rear side).
[0069] Next, the processing unit 6 calculates the joint angle θ based on the following formula (12): shll Request.
[0070]
number
[0071] In equation (12), the inner product γ l If the vector angle θ is 0 or more, the processing unit 6 ul As it is, joint angle θ shll Then, the inner product γ l If is less than 0, the angle between the vectors with the sign reversed is θ ul Joint angle θ shll Let us assume that. In other words, when the left upper arm 72 is located on the X1 direction side (front side) of the subject T with respect to the trunk vector 56, the processing unit 6 calculates the inter-vector angle θ ul Joint angle θ shll When the left upper arm 72 is located on the X2 direction side (rear side) of the subject T with respect to the trunk vector 56, the vector angle θ ulJoint angle θ shll Let us assume that.
[0072] In this case as well, the processing unit 6 can grasp whether the left upper arm 72 of the subject T is located on the X1 direction side (front side) or the X2 direction side (rear side) of the subject T, and can grasp the joint angle θ shll can be found with high accuracy.
[0073] In addition, in the above example, the part indicated by the left shoulder vector 57, which is the reference part vector, is the shoulder, and the reference part is the trunk 60, so the angle of the movable part of the subject T that can move in the left-right direction can be suitably obtained.
[0074] [Hip joint angle estimation process on the YZ plane] Next, a joint angle estimation process will be described in which a joint angle is obtained based on an image of the subject T captured from the front (X1 direction).
[0075] Fig. 6 is a diagram showing some of the part vectors when the subject T is viewed from the front. Fig. 6 shows a case where the joint points and part vectors are acquired based on an image of the subject T captured from the X1 direction. That is, Fig. 6 shows the joint points and part vectors on the YZ plane.
[0076] Figure 6 shows the trunk vector 56, left upper arm vector 41, left thigh vector 45, and left shoulder vector 57 when subject T is standing with his trunk 60 tilted and his left upper arm 72 and left thigh 62 raised upward. Hereinafter, the processing unit 6 performs joint angle estimation processing to estimate the left hip joint angle ψ hipl The case where the joint angle ψ is calculated will be explained. hipl As shown in FIG. 6, is the joint angle between the trunk 60 of the subject T and the left thigh 62 connected to the trunk 60 via the hip joint 61 on the YZ plane. In other words, here, a case will be described in which the processing unit 6 determines the joint angle at the hip joint between the trunk 60 and the left thigh 62 when the trunk 60 is the reference part and the left thigh 62 is the movable part. The left thigh 62 has a movable range along the YZ plane. Thus, Fig. 6 shows the movable range of the left thigh 62 in a plan view.
[0077] First, the processing unit 6 obtains a vector n perpendicular to the trunk vector 56 (reference part vector) on the YZ plane (step S11 in FIG. 4). Here, vector n is a vector on the YZ plane. The processing unit 6 obtains vector n perpendicular to the trunk vector 56. The processing unit 6 obtains vector n in accordance with the above-mentioned formula (1). That is, the processing unit 6 obtains vector n using the trunk vector 56 and the left thigh vector 45. Vector n is perpendicular to trunk vector 56, but it is unclear whether it faces the Z2 direction or the Z1 direction.
[0078] Next, the processing unit 6 obtains a direction reference vector a (step S11 in FIG. 4). The direction reference vector a here is a vector on the YZ plane. The processing unit 6 determines a directional reference vector a based on the vector n and the reference portion vector. Joint angle ψ hipl When calculating, the processing unit 6 uses the left shoulder vector 57 as the reference region vector.
[0079] The left shoulder vector 57 is a vector directed from the first midpoint 52 to the left shoulder joint point 21. The left shoulder vector 57 indicates the Z2 direction side of the subject T. In this way, left shoulder vector 57, which is a reference part vector, is a vector of a part extending in a direction intersecting the longitudinal direction of trunk 60 when the movable range of left upper arm 72 is viewed in a plan view.
[0080] Next, the processing unit 6 calculates an inner product α of the vector n and the left shoulder vector 57 as shown in the following formula (13).
[0081]
number
[0082] where d shll indicates the left shoulder vector 57, and indicates the Z2 direction side of the subject T. In addition, vector n is a vector perpendicular to the trunk vector 56. Therefore, when the inner product α is equal to or greater than 0, it is found that the angle between the vector n and the left shoulder vector 57 is in the range of 0 degrees to 90 degrees. Therefore, in this case, the processing unit 6 determines that the vector n faces the Z2 direction side of the subject T. Conversely, when the inner product α is smaller than 0, it is found that the angle between the vector n and the left shoulder vector 57 is in the range of 90 degrees to 180 degrees. Therefore, in this case, the processing unit 6 can determine that the vector n faces the Z1 direction side of the subject T.
[0083] Next, the processing unit 6 calculates a direction reference vector l based on the inner product α and the vector n as shown in the following equation (14). l is calculated (step S12 in FIG. 4).
[0084]
number
[0085] When the inner product α is equal to or greater than 0 (when the vector n faces the Z2 direction of the subject T), the processing unit 6 converts the vector n directly into a directional reference vector l l Let us assume that. When the inner product α is smaller than 0 (when the vector n faces the Z1 direction of the subject T), the processing unit 6 inverts the vector n to obtain a directional reference vector l l get. This gives the direction reference vector l lis obtained as a vector that is perpendicular to the trunk vector 56 and points toward the Z2 direction side (left side) of the subject T when the movable range of the left upper arm 72 is viewed in a plan view.
[0086] Next, the processing unit 6 obtains the inter-vector angle (step S13 in FIG. 4). The processing unit 6 calculates the inter-vector angle ψ based on the following formula (15): l Request.
[0087]
number
[0088] Angle between vectors ψ tl After calculating the joint angle ψ hipl is calculated (step S14 in FIG. 4). First, the processing unit 6 calculates a direction reference vector l as shown in the following formula (16). l and the left thigh vector 45, the inner product β l Request.
[0089]
number
[0090] Inner product β l If is greater than or equal to 0, the direction reference vector l l It can be seen that the angle between the left thigh vector 45 and the Z2 direction is in the range of 0 degrees to 90 degrees. Therefore, in this case, the processing unit 6 can determine that the direction of the left thigh vector 45 is in the Z2 direction (left side) or that the left thigh vector 45 and the trunk vector 56 are located on the same straight line. Conversely, the inner product β l If is less than 0, the direction reference vector l l and the left thigh vector 45 is found to be in the range of 90 degrees to 180 degrees. Therefore, in this case, the processing unit 6 can specify that the direction of the left thigh vector 45 is the Z1 direction side (right side).
[0091] Note that when the direction of the left thigh vector 45 is on the Z2 direction side (left side), it means that the position of the tip of the left thigh vector 45 is on the Z2 direction side of an imaginary line that is parallel to the trunk vector 56 and passes through the left hip joint point 27. Also, when the direction of the left thigh vector 45 is on the Z1 direction side (right side), it means that the position of the tip of the left thigh vector 45 is on the Z1 direction side of the imaginary line.
[0092] Next, the processing unit 6 calculates the joint angle ψ based on the following equation (17): hipl Request.
[0093]
number
[0094] In equation (17), the inner product β l If ψ is equal to or greater than 0, the processing unit 6 calculates the inter-vector angle ψ tl As it is, the joint angle ψ hipl Then, the inner product β l If is less than 0, the angle between the vectors ψ with the sign reversed tl The joint angle ψ hipl Let us assume that. In other words, when the left thigh 62 is located on the Z2 direction side (left side) of the subject T with respect to the trunk vector 56, the processing unit 6 calculates the inter-vector angle ψ tl The joint angle ψ hipl When the left thigh 62 is located on the Z1 direction side (right side) of the subject T with respect to the trunk vector 56, the vector angle ψ tl The joint angle ψ hipl Let us assume that.
[0095] In this way, the processing unit 6 can grasp whether the left thigh 62 of the subject T is located on the Z2 direction side (left side) or the Z1 direction side (right side) of the subject T, and can determine the joint angle ψ hipl can be found with high accuracy.
[0096] [Shoulder joint angle estimation process on the YZ plane] Next, the processing unit 6 performs joint angle estimation processing to estimate the joint angle ψ of the left shoulder joint. shll The case where the joint angle ψ is calculated will be explained. shll As shown in FIG. 6, is the joint angle between the trunk 60 of the subject T and the left upper arm 72 connected to the trunk 60 via the left shoulder joint 70 on the YZ plane. In other words, here, a case will be described in which the processing unit 6 determines an estimated value of the joint angle at the shoulder joint between the trunk 60 and the left upper arm 72 when the trunk 60 is the reference part and the left upper arm 72 is the movable part.
[0097] Joint angle ψ shll When calculating the range of motion of the upper arm, like the thigh, the upper arm has a range of motion along the YZ plane. Therefore, FIG. 6 shows the range of motion of the upper arm in a plan view. Therefore, the processing unit 6 calculates the hip joint angle ψ hipl The directional reference vector a used in calculating the shoulder joint angle ψ shll It can also be used to find
[0098] The processing unit 6 obtains the inter-vector angle (step S13 in FIG. 4). The processing unit 6 calculates the inter-vector angle ψ based on the following formula (18): ul Request.
[0099]
number
[0100] Angle between vectors ψ ul After calculating the joint angle ψ shll is calculated (step S14 in FIG. 4). First, the processing unit 6 calculates a direction reference vector l as shown in the following formula (19). l and the left upper arm vector 41, the inner product γ l Request.
[0101]
number
[0102] In formula (19), d uarml is the left upper arm vector 41. Inner product gamma l If is greater than or equal to 0, the direction reference vector l l It can be seen that the angle between the left upper arm vector 41 and the left upper arm vector 56 is in the range of 0 degrees to 90 degrees. Therefore, in this case, the processing unit 6 can determine that the direction of the left upper arm vector 41 is in the Z2 direction (left side) or that the left upper arm vector 41 and the trunk vector 56 are located on the same straight line. Conversely, the inner product γ l If is less than 0, the direction reference vector l l and the left upper arm vector 41 is found to be in the range of 90 degrees to 180 degrees. Therefore, in this case, the processing unit 6 can specify that the direction of the left upper arm vector 41 is the Z1 direction side (right side).
[0103] Next, the processing unit 6 calculates the joint angle ψ based on the following equation (20): shll Request.
[0104]
number
[0105] In equation (20), the inner product γ l If ψ is equal to or greater than 0, the processing unit 6 calculates the inter-vector angle ψ ul As it is, the joint angle ψ shll Then, the inner product γ l If is less than 0, the angle between the vectors ψ with the sign reversed ul The joint angle ψ shll Let us assume that. In other words, when the left upper arm 72 is located on the Z2 direction side (left side) of the subject T with respect to the trunk vector 56, the processing unit 6 calculates the inter-vector angle ψ ul The joint angle ψshll When the left upper arm 72 is located on the Z1 direction side (right side) of the subject T with respect to the trunk vector 56, the vector angle ψ ul The joint angle ψ shll Let us assume that.
[0106] In this case as well, the processing unit 6 can grasp whether the left upper arm 72 of the subject T is located on the Z2 direction side (left side) or the Z1 direction side (right side) of the subject T, and can determine the joint angle ψ shll can be found with high accuracy.
[0107] In addition, when calculating the joint angle of the right hip joint and the joint angle of the right shoulder joint in the YZ plane, the processing unit 6 calculates the directional reference vector l r The processing unit 6 calculates the direction reference vector l r By using this, the joint angle of the right hip joint and the joint angle of the right shoulder joint can be obtained.
[0108] 〔others〕 The embodiments disclosed herein are illustrative in all respects and are not restrictive. In the above embodiment, the angle of the left thigh 62 and the left upper arm 72 relative to the trunk 60 is calculated, but the joint angles of the right thigh and right upper arm relative to the trunk 60 can also be calculated by similar processing. Furthermore, the joint angle between the upper arm and the forearm, and the joint angle between the thigh and the shin can also be obtained by similar processing.
[0109] The scope of the present invention is not limited to the above-described embodiment, but includes all modifications within the scope of the equivalents of the configurations described in the claims. [Explanation of symbols]
[0110] 1 Pose estimation system 6 Processing section T target audience
Claims
1. 1. A posture estimation system for estimating a posture of a subject having a reference part and a movable part connected to the reference part via a joint, comprising: A process of acquiring a plurality of part vectors indicating parts of the subject based on a plurality of joint points obtained from an image of the subject; A process of calculating an inter-vector angle between a reference part vector indicating the reference part among the plurality of part vectors and a movable part vector indicating the movable part among the plurality of part vectors; A process of determining a direction reference vector having a direction perpendicular to the reference portion vector when the movable range of the movable portion is viewed in a plane, based on a reference portion vector among the plurality of portion vectors; and determining a joint angle between the movable part and the reference part at the joint based on the inter-vector angle, the movable part vector, and the direction reference vector. Pose estimation system.
2. The reference part vector is a vector of a part that extends in a direction intersecting with the longitudinal direction of the reference part when the movable range of the movable part is viewed in a plane, among the plurality of part vectors. The pose estimation system of claim 1 .
3. The process of determining the direction reference vector includes: A process of calculating a vector perpendicular to the reference part vector when the movable range of the movable part is viewed in a plane based on the reference part vector and the movable part vector; A process of determining the direction reference vector based on a vector perpendicular to the reference portion vector and the reference portion vector; Includes The pose estimation system of claim 2 .
4. The part indicated by the reference part vector is a foot, The reference part is the trunk. The pose estimation system of claim 1 .
5. The movable part is the thigh The pose estimation system of claim 4 .
6. The movable part is the upper arm The pose estimation system of claim 4 .
7. The part indicated by the reference part vector is the shoulder, The reference part is the trunk. The pose estimation system of claim 1 .
8. The movable part is the thigh The pose estimation system of claim 7.
9. The movable part is the upper arm The pose estimation system of claim 7.
10. A posture estimation method for estimating a posture of a subject having a reference part and a movable part connected to the reference part via a joint, comprising: acquiring a plurality of part vectors indicating parts of the subject based on a plurality of joint points obtained from an image of the subject; determining an inter-vector angle between a reference part vector indicating the reference part among the plurality of part vectors and a movable part vector indicating the movable part among the plurality of part vectors; determining a direction reference vector having a direction perpendicular to the reference portion vector when the movable range of the movable portion is viewed in a plane based on a reference portion vector among the plurality of portion vectors; determining a joint angle between the movable part and the reference part at the joint based on the inter-vector angle, the movable part vector, and the direction reference vector; Includes Pose estimation method.
Citation Information
Patent Citations
Motion information processing apparatus
JP2015061579A
Object detection device and object detection method
WO2012077286A1
Control device, control method, control program and information processing system
JP2023015598A
Cited By
Modular cutting tool body and method for manufacturing the same
US20240091867A1
