Coder Social home page Coder Social logo

xeonqq / multiple_view_geometry Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 3.0 285 KB

A demonstration of how multple view geometry works

Python 91.10% Jupyter Notebook 8.34% Shell 0.56%
computer-vision epipolar eight-point-algorithm bundle-adjustment

multiple_view_geometry's Introduction

Multi view geometry key concepts in Python

Build Status Total alerts

1. Demo on how to calculate epipolar line

Given:

  • The two camera positions in world frame,
  • The position of the cube in world frame,
  • The camera intrinsics

Then:

  • Calculate the projection of the keypoints from the cube onto the image frame
  • Calculate the epipolar line in each image using its coorespondence and essential matrix

Demo

Command to run the demo:

python ./epipolar_geometry.py

or interact with the notebook

jupyter notebook epipolar_geometry.ipynb

Given

  • The positions of 8 or more pairs of point correspondence in two frames
  • The camera intrinsics

Then:

  • Calculate the essential matrix, and derive the translation (with a scale) and rotation of the two camera poses.

Given

  • The positions of points correspondence in two frames
  • The camera intrinsics
  • The poses of the two cameras in world frame

Then:

  • Calculate the 3d position of the observed points in world frame, by solving a least square error problem

Given

  • Initial guess of the two camera poses in world frame
  • Noisy observation of points correspondence in image frame
  • Estimation of the 3d points in world frame
  • The camear intrinsics

Then:

  • Optimize the pose of the cameras' poses and 3d points positions using bundle adjustment from g2o library

Command to run the tests above:

pytest

multiple_view_geometry's People

Contributors

dependabot[bot] avatar xeonqq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.