Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform MatOfPoint3f using Rotation Matrix? #172

Open
mattycorbett opened this issue Oct 24, 2023 · 0 comments
Open

Transform MatOfPoint3f using Rotation Matrix? #172

mattycorbett opened this issue Oct 24, 2023 · 0 comments

Comments

@mattycorbett
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant