Git Product home page Git Product logo

sfm's Introduction

Structure from Motion: Classical Approach

Python solution for project 3: CMSC733 Computer vision course.

Introduction

In this project, we reconstructed a 3D scene and simultaneously obtained the camera poses with respect to the scene, with a given set of 6 images from a monocular camera and their feature point correspondences. Following are the steps involved:

  • Feature detection and finding correspondences
  • Estimating Fundamental Matrix
  • Essential Matrix and solving for camera poses
  • Linear Triangulation and recovering correct pose
  • Non Linear Triangulation
  • Linear PnP, RANSAC and Non linear optimization
  • Bundle Adjustment

Please refer the report for detailed steps.

Pipeline

Pipeline

How to run the code

  • Change the directory to the folder where Wrapper.py is located. Eg.
cd ./Code 
  • Run the .py file using the following command:
python3 Wrapper.py --DataPath ./Data/

Parameters

  • --DataPath: the path where the data is stored
  • --savepath: the path to folder where the output will be saved
  • --BA: True-If we want to use bundle adjustment

Result

Result image

sfm's People

Stargazers

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

Watchers

 avatar

sfm's Issues

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.