Code Monkey home page Code Monkey logo

image-matching's Introduction

Image-Matching

A demo using SuperGlue and SuperPoint to do the image matching task.

image matching

Overview

  • Deeplearning Framework: PyTorch
  • use SuperPoint to extract feature points and descriptors from the image
  • use SuperGlue to do image matching
  • Matching is a class that combine the above two classes
  • use Arg class to make configurations

Usage

  • use args=Arg() to initialize configurations
  • Since the model has two modes to make more concise predicitions, if the scene is indoor, set scene_mode in Arg ‘indoor’. Similarly set the scene_mode ‘outdoor’ if the scene is outdoor
  • in class Arg, use set_ method to set parameters
  • To be clear, the anchor image should be set first in Arg by using Arg.set_anchor(anchor_name), the image to test (if it can match the anchor image) should be set using the method Arg.set_match(match_name)
  • After setting the anchor image, you need not set it again unless you want to make another matching with a different anchor
  • use get_similarity(args,img_name) to get the final score
  • If the matching score is larger than 0.2, it is likely can be matched
  • libtorch-superpoint is a test file, it can successfully use SuperPoint within cpp projects. However, it takes some time to config makefiles. If all goes well, you can cd build -> cmake.. -> make -> ./a and you can get the result. a is an executable file generated by cmake.
  • test_transfer is a try to change some parameters so that I can transfer it to ONNX or Libtorch. I changed the dictionary to list and deleted some unuseful code. It may run a little faster than the main file.

To-dos

  • Improve the matching speed, now it takes 3s to do a matching

image-matching's People

Contributors

longqianh avatar

Watchers

James Cloos 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.