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

Calibrate camera for distorsion #57

Open
ironsilk opened this issue Nov 24, 2022 · 2 comments
Open

Calibrate camera for distorsion #57

ironsilk opened this issue Nov 24, 2022 · 2 comments

Comments

@ironsilk
Copy link

ironsilk commented Nov 24, 2022

Hi,

I'm trying to calibrate a camera against what i believe to be radial distortion. With openCV the method used is calibrateCamera (link). Which usually requires you to use a chessboard pattern in order to identify the actual points and automatically calculate where they should be. I have manually constructed 6 pairs of these points.

My question is how do we achieve this using rust-cv? It is implemented? I've found something similar in the dlt crate but the output is a 4x3 matrix and i can't really make sense of it. (More details on what i've tried be found here)

Any help in deeply appreciated.

Disclaimer: I've been reading for about 2 days and decided to open an issue to you guys , maybe it will also be useful for someone else who's looking for this in the future.

@astraw
Copy link
Contributor

astraw commented Nov 24, 2022

dlt author here. The main function returns a 3x4 matrix as you can see in the docs. dlt does not try to estimate radial distortion. There are various implementations of such around. One is my opencv-calibrate crate which is not (yet) published to crates.io but you are welcome to use, of course.

(I had this stuff written before I was aware of the rust-cv org and keep it maintained but really should integrate with rust-cv, improving it as necessary.)

@ironsilk
Copy link
Author

@astraw Thanks! I was looking to build everything without relying on openCV at all, just using rust-cv which as i saw has no dependencies related to opencv. Thanks again!

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

2 participants