Coder Social home page Coder Social logo

cv-project's Introduction

CV-Project

Objective

We present an algorithm to recover 3D trajectory of a camera using feature based sparse slam using a single camera (also called MonoSLAM).

Method of Approach

1. Feature extraction We used the feature trackers present in the opencv library (goodFeaturestotrack and ORB feature tracker).

2. Feature Matching We calculate the distance between all the two points using brute force approach. We estimate the 2 nearest neighbour of every point using knn clustering and eliminate the points/pairs using ratio test. In the next step, we estimate the essential matrix using 8 point algorithm. For that we convert the image coordinates to camera cordinates and check for a minimum of 8 feature points. We eliminate the outliers using thresholding and ransac.

3. Pose estimation We estimate the pose of the current frame using the Essential matrix. See references[2].

4 World coordinates Provides the world coordinate by using 2 projection matrices as input using triangulation.

5.1 Display2D We used pygame and openGL to display the feature points and their mappings across frames.

5.2 Display3D We use pangolin to display a 3D map of the camera poses and world coordinates of the feature points.

Dataset

Driving stock video

list of code dependencies

The code is in Python3

Detailed instructions

Installations

See the respective links in code dependencies

Run

python3 main.py

Results

Feature point tracking

2D

3D map construction

3D

Pose tracking

pose

References

  • A nice gitgub repository that has the implementation of monocular slam and a youtube video explaining the code by the same guy.

  • A paper describing the computation of rotation matrix and translation vector from Essential matrix.

  • Nice paper by David G. Lowe on Lowe's ratio test

cv-project's People

Contributors

maitreygram avatar swadha8 avatar neeleshverma avatar

Forkers

swadha8

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.