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 pimmi/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 pimmi/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 pimmi/index_dataset.py --action fill --thread 16 --index "IVF1024,Flat" --save_faiss index/dataset1.ivf1024 --images_dir demo_dataset/dataset1
python3 pimmi/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 pimmi/fuse_query_results.py
python3 pimmi/generate_cluster_viz.py
Happy hacking !
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(25.1 kB
view details)
Built Distribution
pimmi-0.0.3-py3-none-any.whl
(29.8 kB
view details)
File details
Details for the file pimmi-0.0.3.tar.gz
.
File metadata
- Download URL: pimmi-0.0.3.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfda77a623a832b5ed9ab9b039a0457f7b9d89652f99daa3d3489d8455124ac8 |
|
MD5 | 0daa798dfa3ff1b5d1bacc704641a2a9 |
|
BLAKE2b-256 | 7685052d60a7229b5c288d4e6b4372e7fff01704f1916d107f33270f459e0afa |
File details
Details for the file pimmi-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pimmi-0.0.3-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87dafe52fb72c6dfff57c20fdd76728ca4cb526713521e7f0ddd9830b3b9fb43 |
|
MD5 | cdb80f650eddb0587ca243ad3e358562 |
|
BLAKE2b-256 | a18b9ef7e3e919ded517913d3a419b47ade810132c695d44bb97ad98d174be7d |