13

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

Charles
  • 48,924
  • 13
  • 96
  • 136
Wazy
  • 8,449
  • 8
  • 50
  • 95
  • 1
    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 Feb 12 '14 at 14:21
  • 1
    Can you please guide me on how u have done this? – user2727765 Feb 13 '14 at 05:26
  • I have posted a question here http://stackoverflow.com/questions/21732367/head-pose-estimation-in-real-time-video – user2727765 Feb 13 '14 at 09:35

3 Answers3

7

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.

Bhargav Rao
  • 41,091
  • 27
  • 112
  • 129
Jav_Rock
  • 21,011
  • 18
  • 115
  • 164
  • 1
    Idea is cool..I appreciate it...But what about it being implemented in real time video for different faces.... – Wazy Dec 21 '11 at 04:39
  • 2
    Well, for real time you could use FAST algorithm instead of SURF (also in openCV libraries), but of course you'll have to deal with occlusions. – Jav_Rock Dec 21 '11 at 09:15
  • 1
    Link "Here" is broken. Kindly check. – user2727765 Nov 13 '13 at 13:24
6

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.

Titus Pullo
  • 3,303
  • 10
  • 41
  • 60
5

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

dannyxyz22
  • 928
  • 8
  • 16
  • 1
    Sorry I was busy during that time....Have u checked out this web site http://www.iamironman2.com/uk/ – Wazy Mar 28 '12 at 16:42
  • 1
    Wow, that's nice. DFusion algorithm is working very well. Although I believe it is sort of expensive. Kind regards, – dannyxyz22 Mar 31 '12 at 04:21