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

Camera parameters #86

Closed
collinabidi opened this issue Oct 16, 2019 · 2 comments
Closed

Camera parameters #86

collinabidi opened this issue Oct 16, 2019 · 2 comments

Comments

@collinabidi
Copy link

I'm trying to find camera calibration and distortion parameters (aside from the resolution and FOV) so I can plug recorded RGB-D video into ORB_SLAM2

@saihv
Copy link
Contributor

saihv commented Oct 16, 2019

You can approximate the camera intrinsics in the following way, (HFOV is 90 degrees by default)

HFOV = 2 * arctan( width / 2f ) (estimate f through this, assuming f_x = f_y = f
c_x = w/2 ; c_y = h/2

The drone camera also has only very negligible distortion - assuming the coefficients as zero should work fairly well.

@madratman
Copy link
Contributor

You can transcribe this C++ snippet from our ROS wrapper on the main AirSim repo to python - https://github.com/microsoft/AirSim/blob/master/ros/src/airsim_ros_pkgs/src/airsim_ros_wrapper.cpp#L1043-#L1061. This essentially implements the equation @saihv mentions above

To add on, you can see the distortion params are in the order of 0.000x here microsoft/AirSim#269 (comment) -

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

3 participants