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.0.tar.gz
(13.9 kB
view details)
Built Distributions
pimmi-0.0.0-py3.7.egg
(1.6 kB
view details)
pimmi-0.0.0-py3-none-any.whl
(14.1 kB
view details)
File details
Details for the file pimmi-0.0.0.tar.gz
.
File metadata
- Download URL: pimmi-0.0.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2854ad470404b5ff5bd11b1a62447fb1dfd6ac7f08f6085a0f4cf2af89735b6c |
|
MD5 | f1139b4c0caabbaa2446fe5ec21c0670 |
|
BLAKE2b-256 | e87fdd62cfe9cc53044367a3f358ae37c8591267a1ce118a2b646a0c597426fe |
File details
Details for the file pimmi-0.0.0-py3.7.egg
.
File metadata
- Download URL: pimmi-0.0.0-py3.7.egg
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a4edb32d479c27b2f4becf778b5caf5b81371cdaeaa8f267579d79a41d624ce |
|
MD5 | e198198d84e9a45ebe3ab34af0618eed |
|
BLAKE2b-256 | 7cddb805f202eaa8ea8c0f1d29a54960ffb37aad1c0fae13a933510426d70cc0 |
File details
Details for the file pimmi-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: pimmi-0.0.0-py3-none-any.whl
- Upload date:
- Size: 14.1 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 | 791d85ab03422b38d9f3df6bfe1f34f48cfd0d1976e7af87fb3d7ead5572feef |
|
MD5 | 554b3230a45d16a08d9fe7f8c8eba016 |
|
BLAKE2b-256 | 22ac8e775726337dddef2a250ee329df97a58ef89178d40a024b253b7616e8d7 |