Scene recognition by GIST features in Python

Python with libraries like numpy, scipy, scikit-learn, scikit-image It is a favorite language for machine learning shops and CV shops, To recognize the scene using these I made a Python wrapper for the GIST feature extraction library written in C.

GIST features

A. It is said that the features developed by Torralba are suitable for scene recognition. Now that Deep Learning is in full swing, I'm feeling a little bit better now, but I used it this time because it's easy to try. http://people.csail.mit.edu/torralba/code/spatialenvelope/

Lear's GIST implementation C implementation of GIST features. This time I made a Python wrapper for this. http://lear.inrialpes.fr/software

lear-gist-python This is the rapper I wrote this time. Here: https://github.com/tuttieee/lear-gist-python

You can use it like this.

import gist
import numpy as np

img = ... # numpy array containing an image
descriptor = gist.extract(img)

There is also a recognition sample using the 8 scene data set (also now ... lol) published on the above A. Torralba site (http://people.csail.mit.edu/torralba/code/spatialenvelope/). ..

Other

I wrote a C extension for Python for the first time. If you have any suggestions, please comment.

Recommended Posts

Scene recognition by GIST features in Python
Speech recognition in Python
Speech recognition by Python MFCC
Sort by date in python
Number recognition in images with Python
Handwriting recognition using KNN in Python
Read the file line by line in Python
Read the file line by line in Python
New features in Python 3.4.0 (3)-Single-dispatch generic functions
Traffic Safety-kun: Recognition of traffic signs in Python
Common mock by moto in Python Unittest
Alignment algorithm by insertion method in Python
Quadtree in Python --2
Python in optimization
CURL in python
Metaprogramming in Python
Python 3.3 in Anaconda
Geocoding in python
SendKeys in Python
Meta-analysis in Python
Unittest in python
Epoch in Python
Sudoku in Python
DCI in Python
quicksort in python
nCr in python
N-Gram in Python
Programming in python
Plink in Python
Constant in python
Use various rabbimq features with pika in python
Lifegame in Python.
FizzBuzz in Python
Sqlite in python
StepAIC in Python
N-gram in python
LINE-Bot [0] in Python
Csv in python
Disassemble in Python
Reflection in Python
Constant in python
nCr in Python.
format in python
PPAP in Python
Quad-tree in Python
Reflection in Python
Chemistry in Python
Hashable in python
DirectLiNGAM in Python
Split camel case string word by word in Python
LiNGAM in Python
Flatten in python
flatten in python
Implemented in Python PRML Chapter 4 Classification by Perceptron Algorithm
[Maya Python] Display .ui created by Qt Designer in Maya
[Python] Get element by specifying name attribute in BeautifulSoup
Shift the alphabet string by N characters in Python
Store the stock price scraped by Python in the DB
gitwatch> python> Top 30 Python Projects In GitHub> OCT 19, 2014 BY DSK
Group by consecutive elements of a list in Python
Speech file recognition by Google Speech API v2 using Python