GithubHelp home page GithubHelp logo

ibragim / contentbasedimageretrieval Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arajago6/contentbasedimageretrieval

0.0 1.0 0.0 55.94 MB

To improve the performance of content based image retrieval by using binary tree structures to describe high level image features in addition to the usage of color and texture features. Implemented using Python and OpenCV. Color histograms, multilevel 2D Discrete Wavelet Transform decomposition of image regions and safe color cube based segmentation are used to extract features. Chi-squared distance and Minkowski distance are used to rank database images with respect to query image.

Python 100.00%

contentbasedimageretrieval's Introduction

To run the program, from the current folder where the scripts are present, the following commands are to be issued in the terminal.

Apart from standard python libraries, this project needs PyWavelets library (pywt) to run. 
Please install it before running project. 

To install PyWavelets open shell prompt and type pip install PyWavelets or easy_install PyWavelets.

Alternately, to build and install PyWavelets from source, unzip the compressed source file present in sources directory, navigate to PyWavelets source code directory and type python setup.py install.
In order to build PyWavelets from source, a working C compiler (GCC or MSVC) and a recent version of Cython is required.
More information on PyWavelets installation can be found at http://www.pybytes.com/pywavelets/index.html

To run the index.py file which creates the index files hsv.csv, texture.csv and btree.csv
> python  index.py -c hsv.csv -t texture.csv -b btree.csv -d <full path of dataset>

To run the rank.py file which ranks images in the given dataset with respect to the query image
(rank.py file also copies the high ranking 15 images to the result directory)
> py rank.py -c hsv.csv -t texture.csv -b btree.csv -q <full path of query image> -d <full path of dataset>

Dataset and query images used for testing the program are available in data folder.

result folder needs to be present in the current directory (eg. code) for the program to write output files to result directory.


contentbasedimageretrieval's People

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.