Ask Your Question
0

cv2.solvePnp axis flip with rotation

asked 2013-01-22 18:45:07 -0600

Hi all,

I'm having an issue using the cv2.solvePnP function.

I am using the function to estimate the pose of my camera by recognising the position of markers on my ceiling, that I can uniquely identify. I can do this successfully but there seems to a quirk in the code where I rotate the camera 90 degrees and my axis flip, x becomes y and y becomes x and the z direction also reverses direction. The angle shown about the z axis seems to remain correct and the coordinates are fine only the x and y have changed.

It seems to be a trigonometry problem but has anyone else had the same issue?

Thanks for the assistance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-25 02:34:57 -0600

SimonH gravatar image

Yes I can confirm having the same problem using the iterative solvePnP approach on a set (about 30 on a flat marker) of coplanar points. The flip is always the same so not some random error produced by outliers.

Did you ever manage to fix it?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-22 18:45:07 -0600

Seen: 1,760 times

Last updated: Feb 25 '15