Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Head pose estimation with Opencv

I am using OpenCV Haar Algorithm to track the Head and overlay an image over the Head.
What I am doing is saving frames generated by camera and overlaying image over each frames.
And time is not a constraint as I am not doing it Real-Time.

My code is working fine for say 45 degree of left and right rotation of Head.
But I need something which will track up to 90 degree of rotation.

Even I got many reference of OpenCV functions and link to estimate Head Pose

Please provide me some reference. Code Examples will be cool.
Thanks in advance

like image 835
Wazy Avatar asked Nov 11 '11 10:11

Wazy


People also ask

What is pose estimation OpenCV?

Pose estimation is a computer vision technique that is used to predict the configuration of the body(POSE) from an image.

Is OpenPose part of OpenCV?

OpenCV has integrated OpenPose in its new Deep Neural Network(DNN) module. This would mean that you would need OpenCV version 3.4. 1 or above to run this code.

What is pose estimation algorithm?

Pose estimation is a computer vision technique to track the movements of a person or an object. This is usually performed by finding the location of key points for the given objects. Based on these key points we can compare various movements and postures and draw insights.


2 Answers

You can use an algorithm like SURF (you have samples in OpenCV package) and use it over a picture of the face, the over the image, and then use SURF descriptors to match the points and estimate the 3d position of the face in the image. You can use the same code on the sample "find_obj" but replace the image by the face picture you want to track.

Hope this helps.

like image 86
Jav_Rock Avatar answered Sep 21 '22 20:09

Jav_Rock


There is a functionc in openCV called POSIT that permit to estimate the pose of 3d object in a single image. It implements POSIT algorithm. Try to have a look there.

like image 35
Titus Pullo Avatar answered Sep 19 '22 20:09

Titus Pullo