• Stars
    star
    104
  • Rank 319,096 (Top 7 %)
  • Language
    Python
  • Created over 7 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Image Feature Extraction and Classification Using Python

Sentimagi Python Image Analysis Library

Requirements

sudo apt-get install python-skimage sudo pip install svgwrite sudo apt-get install python-pywt

General

This library can be used for general image classification and feature extraction.

Feature extraction:

Extract and plot features from a single file

python featureExtraction.py -featuresFile sampledata/spectrograms/music/m_5_r_139.png

Extract features from two files and compare

python featureExtraction.py -featuresFilesCompare sampledata/spectrograms/music/m_5_r_139.png sampledata/spectrograms/speech/kill_bill_2_speech_17.png

Extract features from a set of images stored in a folder

python featureExtraction.py -featuresDir sampledata/spectrograms2/music/

Extract features from a set of directories, each one defining an image class

python featureExtraction.py -featuresDirs spectrograms sampledata/spectrograms/music sampledata/spectrograms/speech

(Features are stored in file "sectrograms_features")

Training and testing classification - regression models:

Train an image classification model

Models are trained from samples stored in folders (one folder per class).

Examples:

  • kNN model training
python train.py -train knn knnSpeechMusicSpecs  sampledata/spectrograms/music sampledata/spectrograms/speech

The above example trains a kNN classification model, does cross validation to estimate the best parameter (k value) and stores the model in a file (named knn3Classes).

  • SVM model training
python train.py -train svm svmSpeechMusicSpecs  sampledata/spectrograms/music sampledata/spectrograms/speech

The above example trains an SVM classification model, does cross validation to estimate the best parameter (C value) and stores the model in a file (named svmSentimentAds).

Classify an unknown image examples

python train.py -classifyFile knn knnSpeechMusicSpecs sampledata/music.melodies_snatch_0081.png
python train.py -classifyFile knn knnSpeechMusicSpecs sampledata/s_30_r_335.png

More Repositories

1

pyAudioAnalysis

Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
Python
5,590
star
2

paura

Python AUdio Recording and Analysis (paura)
Python
212
star
3

multimodalAnalysis

Python examples for the course "Multimodal Information Processing & Analysis" of the MSc in Data Science in NCSR Demokritos
Jupyter Notebook
91
star
4

deep_audio_features

Pytorch implementation of deep audio embedding calculation
Python
85
star
5

color_your_music_mood

A realtime demo for generating colors based on musical moods
Python
37
star
6

basic_audio_analysis

Jupyter Notebook
34
star
7

multimodal_movie_analysis

A Python Library for Multimodal Analysis of Movies and Content-based Movie Recommendation
Python
22
star
8

amvoc

A Python Tool for Analysis of Mouse Vocal Communication
Python
13
star
9

AUROS

A ROS framework for Audio Analysis
C++
12
star
10

basic_audio_handling

A set of examples for basic audio data handling
Jupyter Notebook
12
star
11

pyTextClassification

Training and using classifiers for textual documents
Python
12
star
12

readys

A Speech Analytics Python Tool for Speaking Assessment
Python
11
star
13

ml-python

Python examples for the Machine Learning Course at MSc of AI at NCSR Demokritos
Jupyter Notebook
10
star
14

python-data-science

Introduction to Python for Data Science
Jupyter Notebook
9
star
15

recognizeFitExercise

Classification of fitness exercises based on accelerometer and camera information
Python
9
star
16

pyVisualizeMp3Tags

Generate visualisations and reports on collections of mp3 files using python
Python
8
star
17

soundscape_quality

Data handling and baseline approach for soundscape quality estimation
Python
6
star
18

pyScholar

Python Library to Analyse and Visualise Google Scholar Metadata
Python
6
star
19

pySLRF

Python algorithms for scanning laser range finder data
Python
5
star
20

pyOpenAireTextClassifier

An open source set of supervised learning procedures for scientific text classification
Python
3
star
21

segment_sound

A Python script to break an audio signal into audio segments using silence removal
Python
3
star
22

inf_teiste_data_structures_lab

C
2
star
23

covid19_predict

A simple Python predictor for covid19 data
Python
2
star
24

ml-stocks

Python
2
star
25

cv_track_face

Simple face tracking using opencv and python
Python
1
star
26

dl-python

Python material for deep learning
Python
1
star
27

Multimodal-User-Monitoring

Python
1
star
28

music-metadata-analysis

A python lib for analysing data from the Spotify API
Python
1
star
29

tyiannak.github.io

HTML
1
star
30

inf_teiste_info_theory_lab

Information Theory Library and Examples
Python
1
star