13
votes

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

3
Hi I would like to know if you are successful in finding the head-pose. My intention is to do it in real time video capture. Is that possible with POSIT? Can you help me with some example are codes? - user2727765
Can you please guide me on how u have done this? - user2727765
I have posted a question here stackoverflow.com/questions/21732367/… - user2727765

3 Answers

7
votes

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.

6
votes

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.

5
votes

You could check the EHCI project at http://code.google.com/p/ehci/ as it gives a nice overview about POSIT and Lukas Kanade.