Git Product home page Git Product logo

drawings-matching's Introduction

Drawings matching

Drawings matching has been developed leveragning two naive approaches:

  • template matching with CCOEFF
  • keypoint detection and matching with SIFT

How to run

  1. Place all the objects you want to match to the corresponding folder in data/object
  2. Specify the path to the target image in the `config.yml'
  3. Prepare and activate dedicated virtual environment via venv or conda
  4. Install requirements via python3 install -r requirements.txt
  5. Run matching_ccoeff.py to obtain matching results leveraging CCOEFF
  6. Run matching_sift.py to obtain matching results leveraging SIFT
  7. Check output/ folder for the csv file with detections and png image with drawings
  8. Play with parameters in the config.yml and choose the best parameters for your task

Implementation details and some notes

The implementation is fairly straightforward.

After some trial and error, it was possible to get some meaningful matches via SIFT.

The one thing that boosted it the most was the angle_tolerance parameter. I introduced it in order to remove shapes that do not look like a rectangle (since our objects are very close to a rectangular shape). This helped to remove all false positives. The rest was pretty trivial for matching tasks.

The rest of the stuff was pretty trivial for matching tasks and probably doesn't need to be mentioned.

drawings-matching's People

Contributors

fearless-lark 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.