Note that there are some explanatory texts on larger screens.

plurals
  1. POExtract face rotation from homography in a video
    primarykey
    data
    text
    <p>I'm trying to determine the orientation of a face in a video.</p> <p>The video starts with the frontal image of the face, so it has no rotation. In the following frames the head rotates and i'm trying to determine the rotation, which will lead me to determine the face orientation based on the camera position.</p> <p>I'm using OpenCV and C++ for the job. I'm using SURF descriptors to find points on the face which i use to calculate an homography between the two images. Being the two frames very close to each other, the head rotation will be minimal in that interval and my homography matrix will be close to the identity matrix.</p> <p>This is my homography matrix:</p> <pre><code>H = findHomography(k1,k2,RANSAC,8); </code></pre> <p>where k1 and k2 are the keypoints extracted with SURF.</p> <p>I'm using <a href="http://opencv.willowgarage.com/documentation/cpp/camera_calibration_and_3d_reconstruction.html#cv-decomposeprojectionmatrix" rel="nofollow" title="decomposeProjectionMatrix">decomposeProjectionMatrix</a> to extract the rotation matrix but now i'm not sure how to interpret the rotMatrix. This one too is basically (1 0 0; 0 1 0; 0 0 1) (where the 0 are numbers in a range from e-10 to e-16).</p> <p>In theory, what is was trying to do was to find the angle of the rotation at each frame and store it somewhere, so that if i get a 1° change in each frame, after 10 frames i know that my head has changed its orientation by 10°.</p> <p>I spend some time reading everything i could find about QR decomposition, homography matrices and so on, but i haven't been able to get around this. Hence, any help would be really appreciated.</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload