Coder Social home page Coder Social logo

jgoodman8 / py-image-features-extractor Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 9.0 3.17 MB

Image feature selection performed by using white and black box algorithms

Python 14.36% Jupyter Notebook 85.64%
image-processing feature-extraction image-feature-detection lbp bag-of-visual-words cnn-keras

py-image-features-extractor's Introduction

Py Image Feature Extractor

Index

  1. Overview
  2. Requirements
  3. Installation
  4. Tests
  5. Run

This package provides implementations of different methods to perform image feature extraction. These methods are though a Python package and a command line interface. Available feature extraction methods are:

  • Convolutional Neural Networks
    • VGG-19
    • ResNet-50
    • DenseNet-50
    • Custom CNN through .h5 file
  • Linear Binary Patterns Histograms (LBPH)
  • Bag of Features (bag-of-visual-words)
    • SIFT
    • SURF
    • KAZE

At the notebooks folder, some proofs-of-concept related to feature extraction and image classification may be found.

System requirements:

  • python >= 3.7.3
  • pip >= 19.1.1

All the package requirements are listed on the install_requires property within the setup.py.

This project may be installed as a python package using:

pip install .

Or using the PyPI package.

All the test suite has been developed using the pytest framework.

# All tests
pytest

# Unit tests of extractors module
pytest image_feature_extractor/tests/extractors

# Unit tests of models module
pytest image_feature_extractor/tests/models

# Validation tests
pytest image_feature_extractor/tests/validation

Model

The package has a command-line entry point configured. This entry point is built using the library Click. To get all the possible commands, use image_feature_extractor --help.

# Example to perform feature extraction using a pre-trained VGG-19
image_feature_extractor extract --deep --src imgs/train --dst vgg19_train.csv --cnn vgg19 --size 200

# Example to perform feature extraction using LBPs
image_feature_extractor extract --lbp --src imgs/train --dst vgg19_train.csv --detector kaze vgg19 --k 100 --size 200 --export --vocabulary-route vocabulary.npy

# Example to perform feature extraction using bag-of-features with KAZE keypoint detector
image_feature_extractor extract --bow --src imgs/train --dst vgg19_train.csv --points 8 --radius 1 --grid 8 --size 200

py-image-features-extractor's People

Contributors

jgoodman8 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

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.