Giter Site home page Giter Site logo

chandnii7 / camera-calibration Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 927 KB

Program for non-planar camera calibration, mean square error, RANSAC algorithm, and testing with & without noisy data using extracted 3D world and 2D image feature points.

License: MIT License

Jupyter Notebook 100.00%
camera-calibration feature-extraction mean-square-error ransac-algorithm noisy-data 3d-world 2d-image opencv computer-vision

camera-calibration's Introduction

Camera Calibration for Computer Vision

Program 1 performs feature extraction from an input picture based on 2D image points and corresponding 3D world points. Main purpose:

  1. Generate chessboard features automatically using OpenCV
  2. Manually select features through mouse click

Program 2 performs non-planar camera calibration using the feature points provided in the input file (3D world points and corresponding 2D image points). Main purpose:

  1. Non-planar Camera Calibration
  2. Mean Square Error between known points and computed points
  3. Random Sample Consensus (RANSAC) algorithm for projection matrix
  4. Testing with different noise percentages

Programs were implemented using Python and OpenCV. Refer the report for further implementation details, format of input files, and instructions to run the code: View Report

Results:

  1. Input File Example:


  1. Features Extracted:


  1. Non-planar Camara Calibration Example:


  1. Non-planar Camara Calibration with RANSAC using noisy data Example:


  1. For more noisy data, we get huge mean square error with RANSAC as it fails completely. This is because of 2 main reasons:
    • RANSAC does not work well with low inlier ratios as every point in the dataset gets a vote just for being in the model. This makes the model more robust towards outliers. So, we need more inliers and less outlier for RANSAC to work properly. It does not work well as especially when there are more than 50% outliers.
    • RANSAC is also not reliable when there are a lot of parameters to tune. Here, we have 12 parameters which makes it more complicated.

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.