1 | initial version |
I think you should be a little more specific in your question.
If your asking how to obtain the rotation and translation (extrinsic parameters) of the camera using an homography, this problem is known as Homography Decomposition. For instance, if you want to insert an augmented object in your book, you will need these parameters (simply computing the perpendicular vector to X and Y will lead to errors).
Notice that to estimate the R and t from the homography you will need the instrinsic parameters of the camera, which can obtained using the calibration method present in OpenCV. These parameters will remain the same for all sequences of the camera.
Finally, you need to implement a couple of equations to extract the extrinsic parameters, they are well described in this great paper by Zhang:
A Flexible New Technique for Camera Calibration
Of course, this depends in what you really want to do in your application. I hope this can help.
2 | No.2 Revision |
I think you should be a little more specific in your question.
If your asking how to obtain the rotation and translation (extrinsic parameters) of the camera using an homography, this problem is known as Homography Decomposition. For instance, if you want to insert an augmented object in your book, you will need these parameters (simply computing the perpendicular vector to X and Y will lead to errors).
Notice that to estimate the R and t from the homography you will
need the instrinsic parameters of the camera, which can obtained
using the calibration method present in OpenCV.
These parameters will remain the same for all sequences of the camera.
Finally, you need to implement a couple of equations to extract the extrinsic parameters, they are well described in this great paper by Zhang:
A Flexible New Technique for Camera Calibration
Of course, this depends in what you really want to do in your application. I hope this can help.