Position estimation method, position estimation program, and information processing device
Patent Information
- Application Number
- PCT/JP2023/017138
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-02
- Publication Date
- 2024-11-07
AI Technical Summary
Existing methods face challenges in accurately estimating the three-dimensional position of a person from a moving image captured by a moving camera, as it is difficult to distinguish between the person's movement and the camera's movement, leading to inaccurate position and orientation estimation.
A method that estimates the camera's position and orientation for each frame, calculates the joint torque, and corrects the position and orientation based on trajectory estimation to accurately determine the three-dimensional absolute coordinates of the person's joints, using a processing device that includes a processor for real-time or asynchronous processing of moving image data.
This approach enables high-accuracy estimation of the three-dimensional position of a person from moving images captured by a moving camera, improving the precision of position and orientation estimation by differentiating between the person's movement and the camera's movement.
Smart Images

Figure JP2023017138_07112024_PF_FP_ABST
Abstract
Description
Position estimation method, position estimation program, and information processing device
[0001] The present invention relates to a position estimation method, a position estimation program, and an information processing device.
[0002] There are known techniques for estimating the three-dimensional state (position and posture) of an object or person in a captured video based on the video. For example, a device has been proposed that estimates an initial posture based on feature data of the joints of a multi-joint object and a motion model, generates a motion vector based on the estimated information, and selects the most likely posture from the postures included in the state samples for each viewpoint candidate selected based on the motion vector.
[0003] In addition to video images, depth information may also be used to estimate the state. For example, a device has been proposed that extracts three-dimensional mesh information from a depth image and compares the three-dimensional coordinates of the object with the object recognition results from a color image to extract the three-dimensional coordinates of the object.
[0004] JP 2013-20578 A U.S. Patent Application Publication No. 2016 / 364912
[0005] However, when a person is photographed with a moving camera, it is difficult to accurately estimate the three-dimensional position of the person based on the moving image. For example, if the position of a person in the image moves upward, it is difficult to determine whether the person's position in space moved upward due to an action such as a jump, or whether the camera position moved downward, making it difficult to accurately estimate the person's three-dimensional position.
[0006] In one aspect, the present invention aims to provide a position estimation method, a position estimation program, and an information processing device that can estimate the three-dimensional position of a person with high accuracy from a moving image captured by a moving camera.
[0007] One proposal provides a position estimation method in which a computer performs the following processes. In this position estimation method, the computer performs a coordinate estimation process to estimate a first position and orientation of the camera for each of a plurality of frames included in a video image of a person captured by the camera, and to estimate first three-dimensional absolute coordinates for each of a plurality of joints included in the person based on the first position and orientation. The coordinate estimation process for a first frame of the plurality of frames includes the following first to third processes. In the first process, the computer estimates a second position and orientation of the camera corresponding to the first frame based on the positional relationship of the plurality of joints between the first frame and a second frame preceding the first frame, and the first position and orientation estimated from the second frame. In the second process, the computer estimates joint torques acting on each of the plurality of joints in the first frame based on the positional relationship, and estimates trajectories of each of the plurality of joints from the second frame based on the joint torques. In the third process, the computer estimates a first position and posture corresponding to the first frame by correcting the second position and posture based on the trajectory estimation result, and estimates first three-dimensional absolute coordinates for each of the multiple joints corresponding to the first frame based on the estimated first position and posture.
[0008] In one aspect, the three-dimensional position of a person can be estimated with high accuracy from a moving image captured by a moving camera. The above and other objects, features, and advantages of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings illustrating preferred embodiments of the present invention.
[0009] FIG. 1 is a diagram illustrating a configuration example and a processing example of a first information processing system. FIG. 2 is a diagram illustrating a configuration example of an information processing system according to a second embodiment. FIG. 3 is a diagram illustrating a problem that occurs when a person moves within a frame. FIG. 4 is a diagram illustrating a configuration example of processing functions provided in an information processing device. FIG. 5 is a diagram illustrating an overview of processing for estimating global coordinates of each joint point. FIG. 6 is a diagram illustrating processing for detecting a contact surface. FIG. 7 is a flowchart (part 1) illustrating an example of processing for estimating a three-dimensional position by an information processing device. FIG. 8 is a flowchart (part 2) illustrating an example of processing for estimating a three-dimensional position by an information processing device.
[0010]
[0023] Hereinafter, embodiments of the present invention will be described with reference to the drawings. [First Embodiment] Fig. 1 is a diagram showing an example of the configuration and processing of a first information processing system. The information processing system shown in Fig. 1 includes a camera 1 and an information processing device 2.
[0011] Camera 1 captures moving images of person 3. Camera 1 is also movable, for example, by being carried by the photographer. Data of the captured moving images is input to information processing device 2. The captured moving image data may be input to information processing device 2 in real time when the image is captured, or may be temporarily stored in a storage device and then input to information processing device 2 at a timing asynchronous with the capture.
[0012] The information processing device 2 has a processing unit 2a. The processing unit 2a is, for example, a processor. The processing unit 2a executes a coordinate estimation process for estimating first three-dimensional absolute coordinates for each of a plurality of joints included in the person 3 for each of frames 4_1 to 4_N included in the input moving image. In this coordinate estimation process, the processing unit 2a estimates a first position and orientation of the camera 1, and estimates the first three-dimensional absolute coordinates based on the estimated first position and orientation.
[0013] The coordinate estimation process for each of the frames 4_1 to 4_N includes the following steps S1 to S3: Here, the Mth (M≦N) frame 4_M will be described as an example.
[0014] [Step S1] The processing unit 2a estimates the second position and orientation of the camera 1 corresponding to frame 4_M based on the positional relationship of each joint between frame 4_M and the previous frame (here, the previous frame 4_M-1) and the first position and orientation estimated from frame 4_M-1.
[0015] [Step S2] The processing unit 2a estimates the joint torque acting on each joint in frame 4_M based on the positional relationship of each joint between frame 4_M and frame 4_M-1. The processing unit 2a estimates the trajectory of each joint from frame 4_M-1 based on the estimated joint torque. This trajectory estimation is performed, for example, by motion simulation.
[0016] [Step S3] The processing unit 2a estimates a first position and posture corresponding to frame 4_M by correcting the second position and posture estimated in step S1 based on the estimation result of the trajectory of each joint in step S2. The processing unit 2a estimates first three-dimensional absolute coordinates of each joint corresponding to frame 4_M based on the estimated first position and posture.
[0017] In step S1, the second position and orientation of the camera 1 is estimated based on a moving image captured by the movable camera 1. At this time, for example, three-dimensional position information about the surrounding environment in which a person exists or position information about the moving camera 1 is not used. Therefore, the estimation accuracy of the second position and orientation cannot be said to be high.
[0018] For example, if the position of person 3 in frame 4_M moves upward, processing unit 2a cannot determine whether the position of person 3 in space has moved upward due to an action such as a jump, or whether the position of camera 1 has moved downward. This makes it difficult to accurately estimate the second position and orientation. Therefore, it is difficult to accurately estimate the three-dimensional absolute coordinates of each joint by using such second position and orientation as is.
[0019] In contrast, by correcting the second position and posture based on the trajectory estimation of each joint in step S2, the second position and posture are corrected according to the movement of the person in space, thereby improving the estimation accuracy of the corrected first position and posture. For example, in a case where the position of person 3 in frame 4_M has moved upward, if the position of person 3 in space has moved upward due to an action such as jumping, the second position and posture will not change due to the correction. On the other hand, if the position of camera 1 has moved downward, the second position and posture will change due to the correction. Therefore, by using the first position and posture estimated with high accuracy in this way, processing unit 2a can estimate the three-dimensional absolute position of each joint with high accuracy.
[0020] As described above, the information processing device 2 according to the first embodiment can estimate the three-dimensional position of a person with high accuracy from a moving image captured by a moving camera. [Second Embodiment] Fig. 2 is a diagram showing an example of the configuration of an information processing system according to the second embodiment. The information processing system shown in Fig. 2 includes an information processing device 100 and a camera 50 connected to this information processing device 100.
[0021] 1 , and is realized as a computer such as a personal computer or a server device. The information processing device 100 estimates the three-dimensional coordinates of a person appearing in a moving image based on the moving image captured by a camera 50. The camera 50 is disposed so as to be movable, for example, by being carried by the photographer, and transmits data of the captured moving image to the information processing device 100.
[0022] In this embodiment, the information processing device 100 receives data of captured moving images and estimates the three-dimensional coordinates of the person in real time. However, the captured moving image data may be temporarily stored in a storage device, and the information processing device 100 may estimate the three-dimensional coordinates of the person from the moving image data at a timing asynchronous to the capture.
[0023] An example of the hardware configuration of the information processing device 100 will now be described with reference to Fig. 2. The information processing device 100 is realized as a computer having the hardware configuration shown in Fig. 2, for example.
[0024] The information processing device 100 shown in Figure 2 has a processor 101, a RAM (Random Access Memory) 102, a HDD (Hard Disk Drive) 103, a GPU (Graphics Processing Unit) 104, an input interface (I / F) 105, a reading device 106, a communication interface (I / F) 107, and a network interface (I / F) 108.
[0025] The processor 101 performs overall control of the entire information processing device 100. The processor 101 is, for example, a central processing unit (CPU), a micro processing unit (MPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), or a programmable logic device (PLD). The processor 101 may also be a combination of two or more elements of a CPU, an MPU, a DSP, an ASIC, or a PLD.
[0026] The RAM 102 is used as a main storage device of the information processing device 100. The RAM 102 temporarily stores at least a part of an OS (Operating System) program and application programs to be executed by the processor 101. The RAM 102 also stores various data necessary for processing by the processor 101.
[0027] The HDD 103 is used as an auxiliary storage device for the information processing device 100. The HDD 103 stores an OS program, application programs, and various data. Note that other types of non-volatile storage devices, such as a solid state drive (SSD), can also be used as the auxiliary storage device.
[0028] A display device 104a is connected to the GPU 104. The GPU 104 displays an image on the display device 104a in accordance with an instruction from the processor 101. The display device 104a may be a liquid crystal display or an organic EL (ElectroLuminescence) display.
[0029] An input device 105a is connected to the input interface 105. The input interface 105 transmits a signal output from the input device 105a to the processor 101. The input device 105a may be a keyboard or a pointing device. The pointing device may be a mouse, a touch panel, a tablet, a touch pad, a trackball, or the like.
[0030] A portable recording medium 106a is detachably attached to the reading device 106. The reading device 106 reads data recorded on the portable recording medium 106a and transmits the data to the processor 101. The portable recording medium 106a may be an optical disk, a semiconductor memory, or the like.
[0031] The communication interface 107 receives data of moving images captured by the camera 50 and transmits it to the processor 101. The network interface 108 transmits and receives data to and from other devices via the network 108a. Note that the moving image data from the camera 50 may be transmitted via the network 108a, and the network interface 108 may receive this data.
[0032] The above hardware configuration can realize the processing functions of the information processing device 100. The information processing device 100 estimates the position and orientation of the movable camera 50 (hereinafter, may be referred to as the "camera position and orientation") from moving images captured by the camera 50. Then, based on the estimated camera position and orientation, the information processing device 100 estimates the three-dimensional coordinates in a global coordinate system of body parts (specifically, joint points) of a person appearing in the moving images.
[0033] This configuration makes it possible to estimate the three-dimensional position of a person from various captured images. For example, it is possible to estimate the three-dimensional positions of a person's body parts from video images of a person (athlete) captured during a sports broadcast or video images of a person (performer) captured at a concert. It is also possible to estimate the three-dimensional positions of a person's body parts from video images captured with a smartphone at such events.
[0034] In recent years, there has been a surge in activity related to the metaverse, such as watching sports events, concerts, and other events on the metaverse. If the three-dimensional positions of a person's body parts can be estimated using the above method, it will be possible to, for example, recreate a real space on the metaverse and place an avatar corresponding to a photographed person in the recreated space.
[0035] However, it is difficult to estimate the three-dimensional spatial position of a person with high accuracy when the camera 50 moves. In particular, as shown in the following Figure 3, there is a problem that the three-dimensional spatial position of a person cannot be accurately estimated when the person moves within the frames of a moving image.
[0036] 3 is a diagram illustrating the problem that occurs when a person moves within a frame. In the example of FIG. 3, the same person 60 appears in consecutive frames 61 and 62. The position of person 60 appears higher in frame 62 than in frame 61. In other words, person 60 appears to be moving upward in frame 62 compared to frame 61.
[0037] Such a situation may occur, for example, in the following cases 1 and 2. In case 1, the person 60 actually moves upward in space. For example, this is the case when the person 60 jumps. On the other hand, in case 2, the person 60 does not move upward, but the camera 50 moves downward. When attempting to estimate the three-dimensional position of the person 60 from a captured video image, it is difficult to accurately estimate the three-dimensional position of the person 60 because it is not possible to determine whether the person 60 or the camera 50 has moved, as described above. Furthermore, in reality, both the person 60 and the camera 50 may be moving, making it even more difficult to accurately estimate the three-dimensional position of the person 60.
[0038] To address this issue, for example, it is possible to improve the accuracy of estimating a person's three-dimensional position by providing three-dimensional position information about the surrounding environment of the person 60 in advance and detecting feature points of the surrounding environment from a captured image. However, this method requires the three-dimensional position information about the surrounding environment to be prepared in advance, making it less versatile. Furthermore, in footage of live sports broadcasts or concerts, the focus is often only on the person, making it impossible to detect feature points of the surrounding environment that are a certain distance away from the person. Another possible method is to detect the position information of a moving camera 50, but this requires a sensor for position detection, which increases the cost of the device.
[0039] Therefore, the information processing device 100 of this embodiment estimates the camera position and orientation based on the positional relationship of the person's joint points in the moving image, and also estimates the manner in which force is applied to the person based on this positional relationship.The information processing device 100 then optimizes the camera position and orientation and the manner in which force is applied so that the trajectory of the joint point in the global coordinate system predicted when the estimated force is applied matches the three-dimensional position of the joint point based on the camera position and orientation.This makes it possible to improve the estimation accuracy of the camera position and orientation, and by using the corrected camera position and orientation, it becomes possible to accurately estimate the three-dimensional coordinates of the joints in the global coordinate system.
[0040] 4 is a diagram showing an example of the configuration of processing functions provided in an information processing device. The information processing device 100 includes a storage unit 110 and a processing unit 120. The storage unit 110 is a storage area allocated in a storage device provided in the information processing device 100, such as the RAM 102 or the HDD 103. The storage unit 110 stores camera parameters 111, kinematic information 112, and a parameter set 113.
[0041] The camera parameters 111 include information indicating internal parameters of the camera 50, such as the focal length and optical center of the camera 50. The kinematic information 112 is information that defines a joint model of a human body. For example, the kinematic information 112 includes information indicating the connection relationship and relative positional relationship between a plurality of predetermined joint points. The kinematic information 112 may also include information indicating the length of a part between adjacent joint points.
[0042] The parameter set 113 includes various parameters used in the processing of the motion simulator 124 and the optimization processing unit 125. For example, the parameter set 113 includes the coefficient of friction between the person and the contact surface, parameters for gradient calculation, a convergence threshold in the optimization calculation, and the like.
[0043] The processing unit 120 includes a person detection unit 121, a contact surface detection unit 122, a camera position and orientation estimation unit 123, a motion simulator 124, and an optimization processing unit 125. The processing unit 120 is, for example, the processor 101. In this case, the processes of the person detection unit 121, the contact surface detection unit 122, the camera position and orientation estimation unit 123, the motion simulator 124, and the optimization processing unit 125 are realized, for example, by the processor 101 executing a predetermined program.
[0044] The human detection unit 121 detects joint points included in the joint model from frames of a moving image. The human detection unit 121 also estimates three-dimensional coordinates of each detected joint point based on the positions of multiple joint points on the frame images, the relative positional relationships between the joint points based on the kinematic information 112, and the camera parameters 111. The estimated three-dimensional coordinates are coordinates in the camera coordinate system.
[0045] The contact surface detection unit 122 detects a contact surface that is in contact with the person from the frame. For example, the contact surface detection unit 122 detects the ground or floor that is in contact with the joint point corresponding to the ankle as the contact surface. The contact surface detection unit 122 tracks the detected contact surface and estimates the three-dimensional coordinates of the contact surface based on the positional relationship of the contact surface between frames. The estimated three-dimensional coordinates are coordinates in the camera coordinate system.
[0046] The camera position and orientation estimation unit 123 estimates the camera position and orientation based on the camera position and orientation estimated in the previous frame, the positional relationship between corresponding feature points between the previous frame, and the camera parameters 111. For example, joint points detected by the person detection unit 121 are used as the feature points. Furthermore, by using the camera position and orientation estimated in the previous frame, time-series prediction from the initial position and orientation is performed, and therefore the camera position and orientation in the global coordinate system is estimated.
[0047] Furthermore, the camera position and orientation estimation unit 123 uses the estimation result of the camera position and orientation to convert the three-dimensional coordinates of each joint point estimated by the person detection unit 121 and the three-dimensional coordinates of the contact surface estimated by the contact surface detection unit 122 into three-dimensional coordinates in the global coordinate system. In this way, the global coordinates of each joint point based on the camera position and orientation are estimated.
[0048] The motion simulator 124 estimates dynamic parameters that indicate forces acting on the human body based on the positional relationships between joint points and contact surfaces between frames. The estimated dynamic parameters include joint torques acting on each joint point.
[0049] Furthermore, the motion simulator 124 estimates the three-dimensional coordinates of each joint point in the global coordinate system for the current frame by simulation, based on the three-dimensional coordinates of each joint point and contact surface in the global coordinate system estimated in the previous frame and the estimated dynamic parameters. This allows the global coordinates of each joint point to be estimated based on the simulation. The simulation is performed using a differentiable simulator (equation of motion) to enable gradient calculation in the optimization process.
[0050] The optimization processing unit 125 optimizes the camera position and orientation and the joint torques so as to reduce the error between the global coordinates of each joint point estimated based on the camera position and orientation and the global coordinates of each joint point estimated based on the simulation. The optimization processing unit 125 outputs the global coordinates of each joint point in the current frame when the optimal values of the camera position and orientation are used.
[0051] 5 is a diagram showing an outline of the process of estimating the global coordinates of each joint point. In the example of Fig. 5, it is assumed that frame 72 is the target of processing out of consecutive frames 71 and 72. Furthermore, although not shown, the person detection unit 121 detects two-dimensional coordinates of each joint point of the person from frame 72, and estimates three-dimensional coordinates in the camera coordinate system of each detected joint point.
[0052] In this state, the camera position and orientation estimation unit 123 estimates the camera position and orientation corresponding to frame 72 based on the camera position and orientation estimated from frame 71 by the optimization processing unit 125, the positional relationship of each joint point between frames 71 and 72, and the camera parameters 111 (step S11). Using the estimated camera position and orientation, the camera position and orientation estimation unit 123 converts the three-dimensional coordinates of each joint point estimated by the person detection unit 121 into global coordinates (step S12).
[0053] Meanwhile, the motion simulator 124 estimates the joint torque acting on each joint point based on the positional relationship of the joint points between frames 71 and 72 (step S13). The motion simulator 124 estimates the global coordinates of each joint point in frame 72 by simulation based on the global coordinates of each joint point estimated from frame 71 and the estimated joint torque (step S14). This allows estimation of the position in frame 72 to which the position of each joint point in the global coordinate system in frame 71 will move when the joint torque estimated in step S13 occurs.
[0054] The optimization processing unit 125 compares the global coordinates estimated in step S12 with the global coordinates estimated in step S14. The optimization processing unit 125 optimizes the camera position, orientation, and joint torque so as to minimize the error in the global coordinates for each joint point (step S15). This calculates optimal values for the camera position, orientation, and joint torque so as to approximate the global coordinate estimation results in steps S12 and S14. This processing allows the camera position and orientation to be estimated by reflecting not only geometric factors but also factors related to how force is applied to the person. This makes it possible to accurately determine the movement of the camera 50 and the movement of the person and estimate the camera position and orientation.
[0055] The optimization processing unit 125 estimates the global coordinates of each joint point based on the camera position and orientation optimized in step S15 (step S16), thereby improving the accuracy of estimating the global coordinates of each joint point.
[0056] In the estimation of steps S13 and S14, the accuracy of the estimation can be improved by also using the position of the contact surface that is in contact with the person. The contact surface is detected as the surface of an object that is in contact with the lower end of the person, such as the ground or floor.
[0057] FIG. 6 is a diagram illustrating the contact surface detection process. The left side of FIG. 6 shows the state of the previous frame, and the right side of FIG. 6 shows the state of the current frame. When the contact surface detection unit 122 detects a contact surface from a certain frame, it continues to detect the position of the contact surface from subsequent frames. For example, the contact surface detection unit 122 tracks multiple feature points included in the detected contact surface. This tracking is performed in parallel with the joint point detection process performed by the person detection unit 121.
[0058] In the example of Fig. 6, a contact surface 91 that is in contact with ankles 81 and 82 among the joint points of the person is detected in the previous frame. The detected contact surface 91 is also detected in the current frame. In the example of Fig. 6, in the current frame, it is detected that the ankles 81 and 82 have left the contact surface 91 by comparing the three-dimensional coordinates of the ankles 81 and 82 in the camera coordinate system with the three-dimensional coordinates of the contact surface 91.
[0059] The motion simulator 124 can calculate the distance between the joint point and the contact surface for each frame based on the estimation results of the three-dimensional coordinates of the joint point by the person detection unit 121 and the estimation results of the three-dimensional coordinates of the contact surface by the contact surface detection unit 122. Therefore, the motion simulator 124 can estimate not only the joint torque but also the reaction force and friction force from the contact surface to the joint point as motion parameters. Therefore, by using the three-dimensional coordinates of the contact surface, the motion simulator 124 can estimate the global coordinates of each joint point with high accuracy. For example, when a person in frame 62 moves upward as shown in FIG. 3 , it can accurately determine whether the person has moved upward from a lower contact surface.
[0060] Note that the contact surface detection unit 122 may not be able to continue detecting the same contact surface in all frames after detecting the contact surface depending on the angle of view of the camera 50. For example, there may be a case where the contact surface temporarily falls outside the imaging range, causing the contact surface detection unit 122 to be temporarily unable to detect the contact surface.
[0061] For this reason, for example, if the contact surface can no longer be detected, the contact surface detection unit 122 estimates the position of the contact surface in the current frame by interpolation from the detection results in past frames. Furthermore, if the contact surface has not been detected by the current frame, the contact surface detection unit 122 may acquire position information of an external object that may be in contact with the person from past frames and estimate the position of the contact surface in the current frame by interpolation. Furthermore, when the process of FIG. 5 is performed offline, the contact surface detection unit 122 may detect a contact surface that will be in contact with the person from a future frame and estimate the position of the contact surface in the current frame by interpolation. Furthermore, if the contact surface is not captured in any frame, the contact surface detection unit 122 may estimate the distance between the contact surface and the person based on the person's height and posture.
[0062] Next, a description will be given of the processing of the information processing device 100 using a flowchart. Figures 7 and 8 are flowcharts showing an example of a three-dimensional position estimation process performed by the information processing device.
[0063] [Step S21] The person detection unit 121 acquires frame data from the input video. [Step S22] The person detection unit 121 detects a plurality of joint points of the person from the frame and acquires their two-dimensional coordinates.
[0064] [Step S23] The human detection unit 121 estimates the three-dimensional coordinates of each detected joint point based on the two-dimensional coordinates of each joint point, the relative positional relationship between the joint points based on the kinematic information 112, and the camera parameters 111. The estimated three-dimensional coordinates are coordinates in the camera coordinate system.
[0065] [Step S24] The contact surface detection unit 122 detects a contact surface that is in contact with the person from the frame. The contact surface detection unit 122 estimates the three-dimensional coordinates of the contact surface based on the positional relationship of the contact surface between the previous frame and the current frame. The estimated three-dimensional coordinates are coordinates in the camera coordinate system. In practice, for example, the three-dimensional coordinates of each feature point included in the current frame are estimated based on the positional relationship of corresponding feature points included in the contact surface between frames.
[0066] [Step S25] The camera position and orientation estimation unit 123 estimates the camera position and orientation corresponding to the current frame based on the camera position and orientation estimated from the previous frame by the optimization processing unit 125, the positional relationship of each joint point between the current frame and the previous frame, and the camera parameters 111. Since time-series prediction from the initial position and orientation is performed using the camera position and orientation estimated from the previous frame, the camera position and orientation in the global coordinate system is estimated. Furthermore, the estimated camera position and orientation become the initial parameters of the camera position and orientation in the optimization process.
[0067] [Step S26] The camera position and orientation estimation unit 123 uses the estimated camera position and orientation to convert the three-dimensional coordinates of each joint point estimated by the person detection unit 121 into global coordinates. Also, the camera position and orientation estimation unit 123 uses the estimated camera position and orientation to convert the three-dimensional coordinates of the contact surface estimated by the contact surface detection unit 122 into global coordinates.
[0068] [Step S27] The motion simulator 124 acquires the three-dimensional coordinates of each joint point for the current frame estimated in step S23 by the person detection unit 121. The motion simulator 124 also acquires the three-dimensional coordinates of the contact surface for the current frame estimated in step S24 by the contact surface detection unit 122.
[0069] Furthermore, the motion simulator 124 acquires the three-dimensional coordinates of each joint point for the previous frame estimated in step S23 for the previous frame by the person detection unit 121. The motion simulator 124 also acquires the three-dimensional coordinates of the contact surface estimated in step S24 for the previous frame by the contact surface detection unit 122.
[0070] The motion simulator 124 uses the acquired three-dimensional coordinates to estimate dynamic parameters that indicate forces acting on the person in the current frame, based on the positional relationships of corresponding joint points and contact surfaces between the current frame and the previous frame. Dynamic parameters estimated include, for example, the joint torque acting on each joint point, the reaction force from the contact surface to the person, and the friction force between the contact surface and the person. The estimated joint torques serve as initial parameters for the joint torques in the optimization process.
[0071] [Step S28] The motion simulator 124 acquires the three-dimensional coordinates of each joint point and contact surface in the global coordinate system estimated by the optimization processing unit 125 for the previous frame, and the dynamics parameters corresponding to the current frame estimated in step S27. Based on the acquired information, the motion simulator 124 estimates the global coordinates of each joint point for the current frame through simulation.
[0072] Next, in steps S29 to S32, the optimization processing is performed by the optimization processing unit 125. [Step S29] The optimization processing unit 125 generates an objective function f for optimization. The objective function f is expressed, for example, by the following equation (1).
[0073]
[0074] In equation (1), T is a position and orientation matrix indicating the camera position and orientation estimated in step S25. n denotes the joint torque estimated in step S27 for the n-th joint point. n denotes the three-dimensional coordinates estimated in step S26 for the n-th joint point. n denotes the three-dimensional coordinates estimated in step S27 for the n-th joint point. n ({F m} m ) is the three-dimensional coordinate r of the nth joint point by solving the equation of motion when the estimated joint torque acts on m joint points (all joint points). n This means that r n ({F m} m ) is calculated by the motion simulator 124.
[0075] n 0a indicates the position and orientation of the contact surface in global coordinates estimated in the previous frame. a denotes the position and orientation of the contact surface in the global coordinate system estimated in the current frame. 0n denotes the time series predicted value of the joint torque for the n-th joint point (e.g., the joint torque estimated in the previous frame). 0 denotes the time-series predicted value of the camera position and orientation (e.g., the camera position and orientation estimated in the previous frame). tr denotes the trace of the matrix (the sum of the diagonal elements). w c , w rF , w rT indicates a preset weighting coefficient.
[0076] From the above, the first term in equation (1) represents the error between the global coordinates of each joint point estimated in step S26 and the global coordinates of each joint point estimated in step S28. The second term in equation (1) represents the error in the contact surface estimation result between the previous frame and the current frame. The third term in equation (1) is a smoothing term for suppressing sudden torque fluctuations between frames.
[0077] When step S29 is executed after step S28, the camera position and orientation and joint torque values, which are parameters to be optimized, are set as initial values estimated in steps S25 and S27, respectively. On the other hand, when step S29 is executed after step S31, the camera position and orientation and joint torque values are set as initial values updated in the most recent step S30.
[0078] The optimization processor 125 performs a gradient calculation of the objective function f. For example, a Jacobian matrix is used in this gradient calculation. [Step S30] The optimization processor 125 obtains the amounts of change in the camera position and orientation and the joint torque based on the results of the gradient calculation in step S29. The optimization processor 125 adds the obtained amounts of change to the current values of the camera position and orientation and the joint torque, thereby updating the values of the camera position and orientation and the joint torque.
[0079] [Step S31] The optimization processing unit 125 inputs the values of the camera position and orientation and joint torque updated in step S30 into equation (1) and recalculates equation (1). At this time, the global coordinates of each joint point and contact surface based on the updated camera position and orientation are recalculated by the camera position and orientation estimation unit 123 in response to an instruction from the optimization processing unit 125. n ({F m} m ) is recalculated by the motion simulator 124 in response to an instruction from the optimization processing unit 125.
[0080] The optimization processor 125 determines whether the calculation of equation (1) has converged. For example, if the calculated value of equation (1) is equal to or less than a predetermined threshold, it is determined that the calculation has converged. If the calculation has not converged, the process proceeds to step S29. If the calculation has converged, the process proceeds to step S32.
[0081] [Step S32] The optimization processing unit 125 outputs the global coordinates of each joint point calculated in step S30 (i.e., the global coordinates of each joint point estimated using the optimal camera position and orientation) as the global coordinates of each joint point corresponding to the frame acquired in step S21.
[0082] [Step S33] The optimization processing unit 125 determines whether the frame acquired in step S21 is the final frame in the video. If it is not the final frame, the process returns to step S21, where the next frame is acquired. On the other hand, if it is the final frame, the process ends.
[0083] In the optimization process described above, joint torques are also optimized in addition to the camera position and orientation. This reduces the impact of joint torque calculation errors and improves the final estimation accuracy of the global coordinates of each joint point. For example, depending on the orientation of the person in the frame, one joint point may be hidden by another joint point, making it impossible to detect the former joint point, which can result in a decrease in joint torque estimation accuracy. Optimizing joint torques as described above can reduce the impact of such a decrease in estimation accuracy on the estimation accuracy of the global coordinates of each joint point.
[0084] Furthermore, since the processing of the information processing device 100 described above involves performing a simulation during the processing, the following advantages are also achieved. For example, when a virtual character is displayed using the estimated global coordinates of each joint point, it is possible to manipulate the character's movements and try out different movements or scenarios that differ from reality midway through the processing. Furthermore, it is possible to have such a virtual character learn the movements of an athlete's body parts. The results of such learning can be used, for example, to pass on or preserve the athlete's skills.
[0085] The processing functions of the devices (e.g., information processing devices 2, 100) shown in each of the above embodiments can be realized by a computer. In this case, a program describing the processing content of the functions to be possessed by each device is provided, and the processing functions are realized on the computer by executing the program. The program describing the processing content can be recorded on a computer-readable recording medium. Examples of computer-readable recording media include magnetic storage devices, optical discs, and semiconductor memories. Examples of magnetic storage devices include hard disk drives (HDDs) and magnetic tapes. Examples of optical discs include CDs (Compact Discs), DVDs (Digital Versatile Discs), and Blu-ray Discs (BD, registered trademark).
[0086] When distributing a program, for example, the program is recorded on a portable recording medium such as a DVD or CD and sold. Alternatively, the program can be stored in a storage device of a server computer and transferred from the server computer to other computers via a network.
[0087] A computer that executes a program stores, for example, a program recorded on a portable recording medium or a program transferred from a server computer in its own storage device. The computer then reads the program from its own storage device and executes processing in accordance with the program. Note that the computer can also read the program directly from a portable recording medium and execute processing in accordance with that program. The computer can also execute processing in accordance with the program received each time a program is transferred from a server computer connected via a network.
[0088] The foregoing merely illustrates the principles of the present invention. Further, since numerous modifications and changes will be apparent to those skilled in the art, the present invention is not limited to the exact construction and application shown and described above, and all corresponding modifications and equivalents are deemed to be within the scope of the present invention as defined by the appended claims and their equivalents.
[0089] 1 Camera 2 Information processing device 2a Processing unit 3 Person 4_1, 4_M-1, 4_M, 4_N Frames S1 to S3 Steps
Claims
1. A computer executes a coordinate estimation process for estimating a first position and orientation of a camera for each of a plurality of frames included in a moving image in which a person is captured by the camera, and estimating first three-dimensional absolute coordinates for each of a plurality of joints included in the person based on the first position and orientation, wherein the coordinate estimation process for a first frame of the plurality of frames includes: a first process for estimating a second position and orientation of the camera corresponding to the first frame based on a positional relationship of the plurality of joints between the first frame and a second frame preceding the first frame, and the first position and orientation estimated from the second frame; a second process for estimating a joint torque acting on each of the plurality of joints in the first frame based on the positional relationship, and estimating a trajectory of each of the plurality of joints from the second frame based on the joint torque; and a third process for estimating the first position and orientation corresponding to the first frame by correcting the second position and orientation based on a result of the trajectory estimation, and estimating the first three-dimensional absolute coordinates for each of the plurality of joints corresponding to the first frame based on the estimated first position and orientation. Location estimation method.
2. The position estimation method according to claim 1, wherein in the first processing for the first frame, second three-dimensional absolute coordinates for each of the plurality of joints corresponding to the first frame are estimated based on the positional relationship and the second position and orientation; in the second processing for the first frame, third three-dimensional absolute coordinates for each of the plurality of joints corresponding to the first frame are estimated based on the first three-dimensional absolute coordinates and the joint torque estimated from the second frame; and in the third processing for the first frame, the second position and orientation is optimized so as to reduce an error between the second three-dimensional absolute coordinates and the third three-dimensional absolute coordinates, and the optimized second position and orientation is estimated as the first position and orientation.
3. A position estimation method as described in claim 2, wherein the coordinate estimation process for the first frame further includes a fourth process of detecting a contacting object that is in contact with the person or has been in contact with the person in a past frame from the first frame and estimating a three-dimensional position of the contacting object, and the second process for the first frame estimates the third three-dimensional absolute coordinates based on the first three-dimensional absolute coordinates, the joint torque and the three-dimensional position of the contacting object estimated from the second frame.
4. The position estimation method according to claim 2, wherein in the third processing for the first frame, the second position and orientation and the joint torque are optimized so as to reduce an error between the second three-dimensional absolute coordinates and the third three-dimensional absolute coordinates.
5. A method for causing a computer to execute a coordinate estimation process for estimating a first position and orientation of a camera for each of a plurality of frames included in a video of a person captured by a camera, and estimating first three-dimensional absolute coordinates for each of a plurality of joints included in the person based on the first position and orientation, wherein the coordinate estimation process for a first frame of the plurality of frames includes: a first process for estimating a second position and orientation of the camera corresponding to the first frame based on a positional relationship of the plurality of joints between the first frame and a second frame preceding the first frame, and the first position and orientation estimated from the second frame; a second process for estimating joint torques acting on each of the plurality of joints in the first frame based on the positional relationship, and estimating trajectories of each of the plurality of joints from the second frame based on the joint torques; and a third process for estimating the first position and orientation corresponding to the first frame by correcting the second position and orientation based on a result of the trajectory estimation, and estimating the first three-dimensional absolute coordinates for each of the plurality of joints corresponding to the first frame based on the estimated first position and orientation. A location estimation program.
6. A system having a processing unit that executes coordinate estimation processing for estimating a first position and orientation of a camera for each of a plurality of frames included in a moving image in which a person is photographed by the camera, and estimating first three-dimensional absolute coordinates for each of a plurality of joints included in the person based on the first position and orientation, wherein the coordinate estimation processing for a first frame of the plurality of frames includes: a first process for estimating a second position and orientation of the camera corresponding to the first frame based on a positional relationship of the plurality of joints between the first frame and a second frame preceding the first frame, and the first position and orientation estimated from the second frame; a second process for estimating a joint torque acting on each of the plurality of joints in the first frame based on the positional relationship, and estimating a trajectory of each of the plurality of joints from the second frame based on the joint torque; and a third process for estimating the first position and orientation corresponding to the first frame by correcting the second position and orientation based on a result of the trajectory estimation, and estimating the first three-dimensional absolute coordinates for each of the plurality of joints corresponding to the first frame based on the estimated first position and orientation. Information processing device.
Citation Information
Patent Citations
Body feature detection and human pose estimation using medial distance-shape relationships
JP2012518857A
Camera parameter estimation device, camera parameter estimation method, and camera parameter estimation program
WO2021090467A1
Cited By
Posture correction training method and device applied to human intelligence manufacturing
CN119366911A
