Giter Site home page Giter Site logo

hritik5102 / camera-calibration-using-matlab Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 3.98 MB

Calibration of the camera using checker-board finding camera parameter using MATLAB

camera-calibration matlab lens-distortion reprojection-error simulink-toolbox matlab-image-processing-toolbox matlab-gui matlab-script

camera-calibration-using-matlab's Introduction

Camera-Calibration-using-MATLAB

Calibration of the camera using checker-board finding camera parameter using MATLAB

Objective is to find a distance from the camera to the reference object which is fixed. We use camera calibration app to find a focal length of the camera

Characteristics inside the camera

  1. Intrinsic parameter – focal length , lens distortion coefficient , pixel scaling after knowing these parameter we can map real world distance into pixel , improve image quality.

  2. Extrinsic parameter – camera’s location in space in relation to fixed object .

  3. We take 20-25 images of checkerboard with different orientation and give size of square in mm

  4. We can specify radial distortion coefficient and also compute a tangential distortion when lense and camera sensors are not in parallel

  5. Find the reprojection error – which difference between points detected over the image and points reprojected back into the image using the camera parameter which we just calculated .

  6. We can also apply threshold to get minimum reprojection error and we can visualize from which angle we have taken the images .

  7. We change distorted image into undistorted image by removing lens distortion to get optimal result .

  8. When you are satisfied with calibration accuracy u can directly Export Camera Parameters or Export Matlab Script.

  9. After finding the focal length, move your camera both closer and farther away from the object. Then apply the triangle similarity to determine the distance of the object to the camera i.e
    D = (W*F)/P
    W = object width
    F = focal length
    P =  apparent width in pixels

output

camera-calibration-using-matlab's People

Contributors

hritik5102 avatar

Stargazers

 avatar  avatar

Watchers

 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.