Skip to main content

A CLI tool built in python to segregate people in the group photos .

Project description

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

MIT

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

snapsort-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snapsort-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file snapsort-0.1.1.tar.gz.

File metadata

  • Download URL: snapsort-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for snapsort-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aef3ca0172b163bc09c99fad41f39fee89ef87aa2af95500268b678c34ab8830
MD5 f1d8148d095f818e5b19fa7fe79ff9e5
BLAKE2b-256 5df30077deb16c7267dd52847fb0f6f2ad27cc3bd65c07330e378e65b007c907

See more details on using hashes here.

File details

Details for the file snapsort-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: snapsort-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for snapsort-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b50b36c1c0f1e398a88e6428d7fdfc73c7083053aed33a4d9708cf14e879c473
MD5 847b5ad51b1961f6838c12cf817faec9
BLAKE2b-256 dd2c51098b5e345856182a45024282607bd648a0f9aae4b7441dccd677772b90

See more details on using hashes here.

Supported by

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