Skip to content

Camera Calibration Values #2396

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

Closed
BrianNguyen214 opened this issue Jan 24, 2020 · 6 comments
Closed

Camera Calibration Values #2396

BrianNguyen214 opened this issue Jan 24, 2020 · 6 comments

Comments

@BrianNguyen214
Copy link

I was wondering if anyone had the camera calibration values for the camera used in AirSim. Currently, I'm interested in using AirSim as a tool to test out SLAM and object detection algorithms, and in order to do so, I need the camera calibration values for the camera.

If no one does, then I'm wondering if anyone can help me create the checkerboard in AirSim, which is required for the camera calibration procedure.

@saihv
Copy link
Contributor

saihv commented Jan 25, 2020

You can approximate the camera intrinsics using the following formula

Horizontal FoV = 2 * arctan( width / 2f ) (then assuming fx = fy = f)

The default field of view of the camera is 90 degrees, so your focal length ends up being half of the image width in pixels. cx and cy can be set to w/2 and h/2 as well. The distortion is

See the discussion in #269, as well as the intrinsics computation in the ros wrapper :

sensor_msgs::CameraInfo AirsimROSWrapper::generate_cam_info(const std::string& camera_name,

for more details.

@catproof
Copy link

catproof commented Oct 1, 2021

@saihv what would be the distortion parameters? I imagine they would all be set to 0. The experimentation done here: #269 (comment) indicates this.

See here, the distortion parameters, k1, k2, k3, p1, p2: https://docs.opencv.org/4.5.3/dc/dbb/tutorial_py_calibration.html
I noticed orb slam does not use k3. the experimentation I referenced also only shows 4 distortion parameters.

@saihv
Copy link
Contributor

saihv commented Nov 22, 2021

@NickPerezCarletonUniversity By default, yes, the distortion parameters are all zeroes. You can change them to desired values through our camera distortion API

@cumtchenchang
Copy link

Can Airsim support fisheye model, such as Kananla Brandt 8 model?
Thank you

@emeQee
Copy link

emeQee commented Feb 13, 2022

@saihv Is the sensor size know or pixel size in mm? Or is there a way to get the intrinsic matrix in SI units?

@bd-hkumar
Copy link

Is this camera calibration valid for other FOV's? I cannot seem to get good results using the above formula.

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

6 participants