2017-11-18 02:54:40 -0600 | received badge | ● Popular Question (source) |
2017-05-03 14:25:12 -0600 | commented question | Triangulation with openCV Thank you, but i'm wondered how in this video https://www.youtube.com/watch?v=UVzJl..., he could to have very good 3d tracking when he used 6 points at z=1. Note: he used the same two functions solvePNP and triangulatePoints, but i don't have the full code of him. |
2017-05-03 11:41:11 -0600 | commented question | Triangulation with openCV do you mean i need to define my six points in different z planes ? |
2017-05-03 02:41:27 -0600 | asked a question | Triangulation with openCV I'm working on 3-D tracking code, and i decided to use openCV functions to implement the algorithm. 1- Intrinsic Parameters: I have two cameras and i computed the intrinsic parameters of each one using chessboard to get "_camMatrix" 2- Extrinsic Parameters: I decided to use "solvePnP" to calculate the extrinsic parameters, So i defined 6 3D points in "_pts3d" vector: [(-1, 1, 0),(0, 1, 0),(1, 1, 0),(1,-1, 0),(0,-1, 0),(-1,-1, 0)] and for 6 times i get a new frame and push the 2D point to "_pts2d" vector, and finally calculate the "_rvec" and "_tvec" of the camera. 3- Build the Projection Matrix:
then calculate X,Y,Z : Finally, i'm sending those reading to my graphics engine in openGL but there is a big error in the X,Y,Z, is there anything wrong in my calculations ? |