Coder Social home page Coder Social logo

cbir's Introduction

Open Source Love

Intro

This repository contains a CBIR (content-based image retrieval) system

Extract query image's feature, and retrieve similar ones from image database

Part1: feature extraction

In this system, I implement several popular image features:

all features are modulized

Feature Fusion

Some features are not robust enough, and turn to feature fusion

Dimension Reduction

The curse of dimensionality told that vectors in high dimension will sometimes lose distance property

Part2: evaluation

CBIR system retrieves images based on feature similarity

Robustness of system is evaluated by MMAP (mean MAP), the evaluation formulas is refer to here

  • image AP : average of precision at each hit
    • depth=K means the system will return top-K images
    • a correct image in top-K is called a hit
    • AP = (hit1.precision + hit2.precision + ... + hitH.precision) / H
  • class1 MAP = (class1.img1.AP + class1.img2.AP + ... + class1.imgM.AP) / M
  • MMAP = (class1.MAP + class2.MAP + ... + classN.MAP) / N

Implementation of evaluation can found at evaluate.py

My database contains 25 classes, each class with 20 images, 500 images in total, depth=K will return top-K images from database

Method color daisy edge gabor HOG vgg19 resnet152
Mean MAP (depth=10) 0.614 0.468 0.301 0.346 0.450 0.914 0.944

Part3: image retrieval (return top 5 of each method)

Let me show some results of the system

query1 - women dress

query

color

daisy

edge

gabor

HOG

VGG19

Resnet152

query2 - orange

query

color

daisy

edge

gabor

HOG

VGG19

Resnet152

query3 - NBA jersey

query

color

daisy

edge

gabor

HOG

VGG19

Resnet152

query4 - snack

query

color

daisy

edge

gabor

HOG

VGG19

Resnet152

Part4: usage of repository

If you are interesting with the results, and want to try your own images,

Please refer to USAGE.md

The details are written inside.

Author

Po-Chih Huang / @pochih

cbir's People

Contributors

pochih 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.