Skip to main content

Python IMage MIning

Project description

PIMMI : Python IMage MIning

Library allowing visual search in a corpus of images, from Twitter... or elsewhere.

SIFT interest points, clustering, based on OpenCV and Faiss, multithreaded.

Very preliminary stuff for now.

Demo

# Install dependencies
pip install -r requirements.txt

# --- Play with a very small dataset
# Create a default index structure and fill it with the demo dataset  
python3 index_dataset.py --action fill --thread 16 --index "IVF1024,Flat" --save_faiss index/small_dataset.ivf1024 --images_dir demo_dataset/small_dataset

# Query the same dataset on this index
python3 query_dataset.py --simple --thread 16 --load_faiss index/small_dataset.ivf1024 --save_mining index/small_dataset.ivf1024.mining --images_mining --images_root demo_dataset/dataset1


# --- Play with the demo dataset 1
python3 index_dataset.py --action fill --thread 16 --index "IVF1024,Flat" --save_faiss index/dataset1.ivf1024 --images_dir demo_dataset/dataset1
python3 query_dataset.py --thread 16 --load_faiss index/dataset1.ivf1024 --save_mining index/dataset1.ivf1024.mining --images_mining --images_root demo_dataset/dataset1

# Post process the mining results in order to visualize them
python3 fuse_query_results.py
python3 generate_cluster_viz.py

Happy hacking !

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pimmi-0.0.7.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

pimmi-0.0.7-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file pimmi-0.0.7.tar.gz.

File metadata

  • Download URL: pimmi-0.0.7.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.0

File hashes

Hashes for pimmi-0.0.7.tar.gz
Algorithm Hash digest
SHA256 0514b34b782f56a27ae0c648e28d30ab5a07bc25e059bde87dc000fc427104b9
MD5 7e31fcab9e394c5ef170375a780220e0
BLAKE2b-256 e499de670d3bbbcac3297a7a472f5c5f5c6966ce80fdadef231a45ed108a573d

See more details on using hashes here.

File details

Details for the file pimmi-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: pimmi-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.0

File hashes

Hashes for pimmi-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 60538b818101cd287f57134b985abf98b09d83b4cd451a62a8ad5daeafc448c6
MD5 7a157b0532f4accbd17f6d0f5c12cf3c
BLAKE2b-256 eae46394e8390a1e408bd37c9a74806c72b08e6c0c065bd2753a7122de663c06

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page