A rotation problem

Hey everyone,

I had a few questions and I would really appreciate it if you can help me with that :)

I am working on a facial expression detection project, I am using VS 2010 with C++ and openCV and I have been using Intraface for facial features detection. My input comes from a camera, which means I am working on a real time video. Although my code is working more or less correctly, when the orientation of the face changes, results are no more accurate.To solve that problem I thought of rotating the face so that it is always straight and then calculate the facial expression from there.

For example, I succeeded to measure the angle between the two eyes so if it is not 180 (which means the face is not horizontal) the frame of the captured video will rotate either clockwise or counter clockwise to make the face horizontal and then calculate the facial expression. So this has been working correctly when using orientation in x direction.
My problem now is with the y and z direction...this means I will have to rotate the face itself from the video or if that is possible to rotate the camera...Does anyone have any suggestion about how to solve that?

Your help will be very much appreciated =)
Thank you very much in advance.
Best regards,
Maha
Sorry I can't help much, but you can't rotate a 2D frame of video that way.

There will always be a lot of stuff the computer cannot recognize. The trick is just too notice when you do recognize an expression and continue with that assumption until another recognition changes it.

If the target's head is swivelled on the neck, you can try to preprocess the image a little too essentially distort it into something that can be recognized, but this will require some serious image recognition as well.

Sorry.
Topic archived. No new replies allowed.