GithubHelp home page GithubHelp logo

medpaf / cbir Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 241.3 MB

Content-based image retrieval system (Intelligent Systems Design course).

Python 97.18% PowerShell 0.07% Shell 0.03% C 2.61% Fortran 0.06% Cython 0.06%
python computer-vision opencv image-processing

cbir's Introduction

CBIR system

Dependecies used in this project are:

  • OpenCV
  • NumPy
  • Imutils

Contents

Introduction

Content-based image retrieval system developed with Python and OpenCV. An image retrieval system is a computer system for browsing, searching and retrieving images from a large database. The purpose of the database is to store and retrieve an image or image sequences that are relevant to a query. This systems uses the images histogram as descriptor.

Installation

You'll need to install the necessary packages so that the script can run withouth any problems.

Linux

Before installing the dependencies, please make sure you have python3 installed on your machine. But since almost all Linux distros come with Python pre-installed you probably won't need to perform this step. After that, on the Linux terminal, type the following commands as root:

sudo pip3 install opencv-contrib-python
sudo pip3 install numpy
sudo pip3 install imutils

Windows

Since Windows doesn't come with Python pre-installed, you'll need to install Python if you haven't already. It is recommended to install the stable release.

After that, install the following dependecies by typing the following commands on the Command Prompt (CMD):

python -m pip install opencv-contrib-python
python -m pip install numpy
python -m pip install imutils

macOS

macOS comes with Python, but is a deprecated version that is no longer supported. So, you should install a newer version of Python. It is recommended to install the stable release.

Then, type the following command on the terminal to install the necessary packages:

pip install opencv-contrib-python
pip install numpy
pip install imutils

How to use

To use the system to make a search, it's needed to open up the terminal inside the root folder where the code lives. After that, issue one of the following commands depending on the system you're using. For example, on a Linux machines, type:

python3 search.py --index index.csv --query queries/108100.png --result-path dataset

If you're using Windows or macOS, type:

python search.py --index index.csv --query queries/108100.png --result-path dataset

Where index.csv is the index that contains all the features of the images inside the dataset, queries/108100.png is the path of the query image and dataset is the path that contains the photos from the dataset.

cbir's People

Contributors

medpaf avatar

Stargazers

 avatar  avatar tiff 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.