Coder Social home page Coder Social logo

visual_odom_clique's Introduction

Visual Odometry Using Clique based Inlier Detection

This project mainly focuses on obtaining inlier points for estimating camera pose using maximal cliques technique involving bron-kerbrosch algorithm.

Dependencies

The following librarires have been used and are quintessential in running the graphical node frameworks.

  pip3 install networkx
  pip3 install Collections
  pip install -U scikit-learn

Make sure you have the latest version of OpenCV (supported 3.4+) and Numpy installed prior to running the code.

KITTI DATASET CAN BE DOWNLOADED FROM : https://www.cvlibs.net/datasets/kitti/eval_odometry.php

Instructons to run the code:

  • git clone the files from the repository.
  • Run "python3 CliqueDetection(1).py" to run the code.
  • Default methods : FAST feature detction and Seq6.
  • For running method2 - run python3 AdjacencyMat.py on the terminal
  • Default methods : FAST feature detction and Seq6.

Clique Identifier

The proposed method will receive n feature points from the FAST feature detection technique, and subsequently, it will perform the following steps to build cliques for consistent feature correspondences in subsequent frames:

  1. Dimensionality Reduction using PCA: To handle a large number of feature points efficiently, the method employs Principal Component Analysis (PCA) to reduce the dimensionality of the feature vectors. This step helps in retaining the most informative dimensions of the features while reducing computational complexity. The number of components is set to a value n_components (usually a small value like 3) or the number of features points, whichever is smaller.

sample graph

  1. Graph Creation for Current and Next Frames: The reduced feature points are used to create graphs for both the current frame (graph_T) and the next frame (graph_T_plus_1). Each node in the graph corresponds to a feature point, and edges between nodes are added if the distance between the corresponding feature vectors is below a certain threshold.

  2. Finding Consistent Cliques: For each node in the graph_T, the algorithm identifies its neighbors in both graph_T and graph_T_plus_1. The common neighbors between these two frames are determined. Subsequently, cliques (complete subgraphs) are extracted from the subgraph formed by these common neighbors. The cliques are filtered to ensure their size does not exceed a predefined max_clique_size.

Results

Instantaneous Clique Detection

clideo_editor_11e6bc3cbdb440ceaa9035836634c817.gif

Estimated Trajectory

ezgif-3-41123691e8.gif

visual_odom_clique's People

Contributors

achuthankrishna 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.