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

Automatic camera calibration #45

Open
ayberkozgur opened this issue May 2, 2014 · 1 comment
Open

Automatic camera calibration #45

ayberkozgur opened this issue May 2, 2014 · 1 comment

Comments

@ayberkozgur
Copy link
Member

We should try and implement the automatic calibration of the camera during runtime. Assuming that we don't have nonlinear camera elements (spherical, cylindrical etc.) and that the focal point is in the middle of the image, we effectively need to calibrate just two numbers: elements (1,1) and (2,2) of the calibration matrix, i.e the focal lengths in pixel units.

OpenCV does this with a checkerboard. We can do this with our tags: we know their dimensions beforehand. While we see any tags, we can tune the focal lengths until its 3D transform back to the screen matches its actual place on the screen (detected via FindQuads). We should even be able to calculate the focal lengths exactly using algebra.

Here is what I propose for an application that uses Chilitags; there are exactly two alternatives and no more or no less:

  • The application provides a calibration file that is empty/nonexistent, we do this calibration for the first e.g 1000 frames and dump the values to that file. The next time that application runs, the values will be there.
  • The application provides the calibration values without a file.
@ayberkozgur
Copy link
Member Author

An alternative to all this: Do the calibration all the time. This would make more sense if we calculated the focal lengths algebraically each frame.

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

No branches or pull requests

1 participant