2015-11-27 12:56:00 -0600 | commented question | Kinect + OpenCV : Unable to fetch rotational vectors using cv2.solvePnP in python Thank you @Eduardo...that did the trick. I was lazy at feeding all the points of interests at one and just using the center pixel. Putting all the points does the trick. |
2015-11-26 01:41:55 -0600 | asked a question | Kinect + OpenCV : Unable to fetch rotational vectors using cv2.solvePnP in python I am working on a project where I require to track aerial objects and calculate the six degree of freedom.
I expect to find the rvecs which I will use as input for: to get the euler angles namely, pitch, yaw, roll. I am presently having issues with the solvePnP call, which gives me the following error: /opencv-3.0.0/modules/calib3d/src/solvepnp.cpp:61: error: (-215) npoints >= 0 && npoints == std::max(ipoints.checkVector(2, CV_32F), ipoints.checkVector(2, CV_64F)) in function solvePnP I also understand that sending just the center's object and image points is not recommended. By this is my first step towards the realization. I intend to use feature detectors like SIFT to make it more interesting later. Can anyone please suggest on my approach and help me accomplish finding the six degrees of freedom:
|