Ask Your Question

terrachild's profile - activity

2014-08-06 05:14:19 -0600 asked a question Get object transform instead of camera pose

I've successfully gotten an animated camera in 3D space using:

retval, rvec, tvec = cv2.solvePnP(objp, corners, K, dist_coef)
camera_pose = (-np.matrix(r_mat).T * np.matrix(tvec)).reshape(-1,3)

In my original shot the camera was still and the object was moving. How do I go from an animated camera and a still object to an animated object and a still camera? I'm using four points (corners) for the solve, and I would like to get the 3D coordinates of those points.

Thanks

2014-06-27 02:21:22 -0600 asked a question Beginner question about camera solving

I just found OpenCV and I don't know anything about how to use it. If I want to feed it a set of x,y coordinates from tracked points, and get a camera solve in 3D space what do I need to do. Can I do this from python?

Thanks