snapsort
snapsort is a Python tool used to segregate individuals in group photos and compare their faces to a collection of images for matches using YOLO for detection and DeepFace for face verification.
Installation
Use the package manager pip to install snapsort.
pip install snapsort
Usage
snapsort <image_path> <group_dir> <output_dir>
Arguments:
image_path: Path to the input image containing people to be detected.
group_dir: Directory containing group images for face comparison.
output_dir: Directory where cropped images and matched group images will be saved.
Example
snapsort /path/to/input.jpg /path/to/group_images /path/to/output_dir
Description
Detects individuals in the input image using the YOLO model. Crops each person and saves the cropped images in the specified output directory. Compares each cropped person image with group images in the specified directory using DeepFace (Facenet model). Copies matched group images to a subdirectory in the output directory.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for snapsort 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snapsort-0.1.1.tar.gz | 3.1 kB | Without provenance | Details for snapsort-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snapsort-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for snapsort-0.1.1-py3-none-any.whl |
Total release size: 6.7 kB
Release files / snapsort-0.1.1.tar.gz
| Download URL | snapsort-0.1.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aef3ca0172b163bc09c99fad41f39fee89ef87aa2af95500268b678c34ab8830
|
|
BLAKE2b-256 checksum How to use checksums |
5df30077deb16c7267dd52847fb0f6f2ad27cc3bd65c07330e378e65b007c907
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / snapsort-0.1.1-py3-none-any.whl
| Download URL | snapsort-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b50b36c1c0f1e398a88e6428d7fdfc73c7083053aed33a4d9708cf14e879c473
|
|
BLAKE2b-256 checksum How to use checksums |
dd2c51098b5e345856182a45024282607bd648a0f9aae4b7441dccd677772b90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for snapsort 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.