Code Monkey home page Code Monkey logo

cameracalibration's Introduction

Camera Calibrator

Installation

Clone this repository to your local computer.

git clone https://github.com/joelmwaka/CameraCalibration.git

Install requirements from the provided .txt files.

cd CameraCalibration
pip install -r requirements.txt

Execution

To execute the calibrator, ensure you have calibration images captured from the camera you intend to calibrate. Each calibration image must have a checkerboard in it.

Note: You can create your own checkerboard using this resource.

Execute the tool as follows:

python3 calibrator.py --path_to_images <PATH_TO_CALIBRATION_IMAGES> --path_to_results <PATH_TO_FOLDER_TO_SAVE_RESULTS> --pattern_shape <RxC> --square_size <SQUARE_SIZE>

Output

The calibration results will be saved in a JSON file named calibration_results.json. This file will be saved in the folder you provided with the argument --path_to_results.

The JSON file contains the following results from the calibration:

  • Root Mean Square Error (RMSE), rmse: a metric used to evaluate the accuracy of the calibration process.
  • Intrinsic Camera Matrix, camera_matrix: the camera calibration with information about the focal length, principal point, and skew.
  • Distortion Coefficients, distortion_coefficients: parameters for correction of camera lens distortion.

Note: Explanation of the intrinsic camera calibration and the distortion coefficients can be found on the OpenCV camera calibration page.

cameracalibration's People

Contributors

joelmwaka avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.