Reputation: 494
I am working on a project which requires me to find the angle between the person's body w.r.t. the camera. I already have the pose coordinates of the person but I am not sure how to find the angle. Do you think I need to use some camera parameters such as focal length and Intrinsic parameters of the camera? I would appreciate your suggestions or any references. Thank you.
The circle in the center is the person's head and the camera on the other side
Upvotes: 0
Views: 600
Reputation: 1715
Try this link: https://www.learnopencv.com/head-pose-estimation-using-opencv-and-dlib/
To make long story short, you have to know the 3D coordinates of some points of the person and its 2D projections on the camera sensor plane and then use a PnP (Perspective-n-Point) alghoritm to estimate camera pose relative to the person. It is better to know the calibration of the camera, but you can use the DLT (Direct Linear Transform) alghoritm if you don't have this data.
Upvotes: 2