Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of triangulation.py #11

Open
zhanghua7099 opened this issue Dec 4, 2023 · 0 comments
Open

Implementation of triangulation.py #11

zhanghua7099 opened this issue Dec 4, 2023 · 0 comments

Comments

@zhanghua7099
Copy link

Hi! Thank you for giving this good tutorial!

Here I found a problem. When I tried the triangulation of the Python version and C++ version, I found that the output was not the same. The Python version will give a negative depth triangulation result.

After I add the camera intrinsic matrix to the function "cv.recoverPose", the triangulation works well.

The code for this line
https://github.com/mint-lab/3dv_tutorial/blob/f295338ae4a8c28bf7da0d3f2dea1506be652ef1/examples/triangulation.py#L14C43-L14C43

_, R, t, _ = cv.recoverPose(E, pts0, pts1)

should be:

_, R, t, _ = cv.recoverPose(E, pts0, pts1, K)

Hope this will be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant