OpenCVForUnity icon indicating copy to clipboard operation
OpenCVForUnity copied to clipboard

Transform MatOfPoint3f using Rotation Matrix?

Open matthew-corbett opened this issue 2 years ago • 0 comments

I have a rotation matrix from face landmarks using solvePnP called rvec (below). I have tested the the resultant rotation is accurate to estimate head pose. However, I want to use this matrix to rotate the MatOfPoint3f object containing the landmarks back to a "forward facing" direction. I have tried using OpenCVForUnity.CoreModule.Core.transform(MatLandmarks, MatLandmarks, rmat.inv()) but the transformed values still are effected by the movement of the head. Any ideas?

Calib3d.solvePnP(object_points, image_points, camMatrix, distCoeffs, rvec, tvec);

matthew-corbett avatar Oct 24 '23 17:10 matthew-corbett