Code Monkey home page Code Monkey logo

sketchretrieval's Introduction

Sketch-based 3D model retrieval

About

This project is based on Mathias Eitz's paper "Sketch-Based Shape Retrieval".

Idea

The idea is quite simple, 3D models are complex and can not be given directly to any machine learning mecanisms. So, instead of using the whole model, we use different views of the model. Then we summarize the view with words using K-Means and run a nearest neighbor classifier on these bag-of-features.

There are two parts in the project, the online query is coded in the src directory, whereas the offline preparation is in the utils folder. Some of the codes are similar. The offline part consists of multiple modules governed by shell script.

Interesting components

This repository contains some modules that can be used in other jobs.

  1. K-Means with CUDA (CuBLAS, CuSPARSE, etc.)
  2. TF-IDF database for document searching
  3. Gabor filter
  4. Contour extractor
  5. PLY 3D model to 2D image with different angles
  6. OFF to PLY converter

How to use

To run this code, you will need:

  1. Data: images and 3D models
  2. VTK library
  3. OpenCV
  4. CUDA and Nvidia GPU
  5. C++ 11 compiler

Then create your own pipeline as follow:

  1. Create a folder named 'pipeline' as the same level of 'src'
  2. Put the model folder inside it
  3. Generate PLY models and views pictures with script inside the 'utils' (You will need to compile first the program inside 'utils')

sketchretrieval's People

Contributors

lyx-x avatar nsfxc avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

sketchretrieval's Issues

How to make the entire system work?

Hi,

I am a student studying for a master's degree.

I am quite interested in this project, but after downloading all files, I don't know how each module corporates to generate datas that system needed.

Could you please explain the sequence of work for each module?

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.