Extrinsic parameters from OpenCV

时光总嘲笑我的痴心妄想 提交于 2019-12-10 22:38:01

问题


I'm using OpenCV to calibrate a stereo camera pair. I've taken various calibration photos and I have a satisfactory fit for the intrinsic parameters using cv2.calibrateCamera. However, it's not clear how to get the extrinsic parameters out.

The function just returns the cameraMatrix, which while useful is only half the story, as it were. I'd like to be able to obtain the rotation/translation shown in the top of the documentation - i.e. a vector from the world origin to the camera perspective centre and a rotation.

I'm guessing cv2.solvePnP is something like what I need, but it's unclear exactly what R/T are - are they [R|t] in the projection formula or something else?

I realise that it's also possible to use cv2.stereoCalibrate, but I don't see why it's necessary to have two cameras. In principle the projection matrix is obtainable for each camera individually.


回答1:


R and T are 3x1 vectors describing the rotation and translation of your camera



来源:https://stackoverflow.com/questions/14440198/extrinsic-parameters-from-opencv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!