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.6.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

pimmi-0.0.6-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pimmi-0.0.6.tar.gz
  • Upload date:
  • Size: 21.0 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.6.tar.gz
Algorithm Hash digest
SHA256 bf1f5c0a5105a45a7ad6df9a6e24f5d94b9f1e2f0be3d73102f176859570c5b5
MD5 b2a7a4d4f3898ec772e396e6410ca820
BLAKE2b-256 e65f344722c4e99417c73629d9005dae531e9e7690aa55368e6a8bfbbb077368

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pimmi-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 21.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fccdc984a5371c0471b5725b4714fa2959cdf3a69f88a6ad31c242d62c56fd6e
MD5 b11262e43e5d4ebb83296a5b4fe93120
BLAKE2b-256 4db19dd6e9b6075d4df0d893150ca9216262b4f783fc5701db055bff0b8c98d4

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