Ask Your Question

Anton Gromov's profile - activity

2020-04-13 08:30:09 -0600 received badge  Enthusiast
2020-04-10 15:07:51 -0600 commented answer Using solvePnP with fixed center of rotation

Thanks a lot! Actually I already did just that (first solution), but was wondering if it's necessary to modify OpenCV co

2020-04-10 15:02:57 -0600 marked best answer Using solvePnP with fixed center of rotation

We're using solvePnP to determine the attitude of an object with its center of rotation fixed relative to the camera (object has some aruco markers on it). And I know for a fact that coordinates of the center of the object are constant. Those coordinates are in tvec returned from solvePnP. I just need the object's rotation rvec, but solvePnP doesn't seem to provide a way to tell it that there's no need to optimize tvec because I already know it. The optimization process would have been easier, faster and most importantly more accurate if we had a way to do that, but judging by the code of cvFindExtrinsicCameraParams2 function it's not the case. At least not for SOLVEPNP_ITERATIVE algorithm that we're using.

So is there a way to use solvePnP to only optimize rotation if I already know tvec? I know that I can provide it as initial guess, but I want to exclude it from optimization altogether.

Thanks!

2020-04-10 15:02:57 -0600 received badge  Scholar (source)
2020-04-08 16:05:29 -0600 asked a question Using solvePnP with fixed center of rotation

Using solvePnP with fixed center of rotation We're using solvePnP to determine the attitude of an object with its center