Skip to content

The Camera Calibrator package is a tool for calibrating cameras. It allows for the intrinsic and extrinsic parameters of a camera to be determined in order to improve the accuracy of its visual data. The package uses a checkerboard pattern for calibration and provides a user-friendly interface for setting up and running the calibration process.

Notifications You must be signed in to change notification settings

jacob-02/CameraCalibrator

Repository files navigation

Camera Calibrator

It helps in finding the extrinsic parameters of the camera which in turn helps in finding the position of the camera in a 3D pose with respect to the user defined world coordinates. Helps in setting up a global truth for robotic systems.

Installation

Installing CameraCalibrator

  git clone https://github.com/jacob-02/CameraCalibrator
  pip install -r requirements.txt

Deployment

To deploy this project run

  cd CameraCalibrator
  python3 extrinsic_with_checkboard.py
  python3 extrinsic_with_click.py

The second command calibrates the camera position with respect to image points detected by checkboard corner detector function in opencv. The checkboard size, object points with respect to a world frame and if the image which we are using to calibrate is a .jpg or .png must be edited.

The third command calibrates the camera position with respect to image points selected in an image that is fed and the points are chosen by selecting on the image with a mouse pointer.

Common things to be edited in both the files are:

  • Object Points with respect to a Global Origin
  • Distortion Coefficient of the Camera
  • Camera Matrix of the Camera

The Object Points must be measured by the user and input into the code. Distortion coeffs and Camera matrix can be found my running the following 2 codes:

cd images
python3 calibrator.py
python3 image_save.py

The third command helps in saving multiple images of a checkboard whose size must be defined by the user correctly.

After clicking a suitable number of images, minimum 10, the user can run the second command that will help in giving the camera matrix and the distortion coefficients. This can then be inputted into the main files and give the user the translation and rotational vectors (radians and degrees).

Acknowledgements

About

The Camera Calibrator package is a tool for calibrating cameras. It allows for the intrinsic and extrinsic parameters of a camera to be determined in order to improve the accuracy of its visual data. The package uses a checkerboard pattern for calibration and provides a user-friendly interface for setting up and running the calibration process.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages