A simple Python application (Only Mac) with a graphical user interface (GUI) to help you organize and declutter your digital image library by identifying duplicates and sorting photos based on detected faces.
Features
-
Duplicate Identification: Scans a source directory and finds duplicate or near-duplicate images using multiple criteria:
- Filename: Simple comparison of file names.
- Checksum (SHA-256): Identifies exact byte-for-byte copies.
- Perceptual Hash (pHash): Detects visually similar images, even if they have different file names or minor edits.
-
Automated Organization: Automatically moves identified unique images to a designated folder and groups duplicate images into separate subfolders based on their detected group.
-
Face Detection & Sorting: Processes images ( ideally, the unique set from the organization step) and sorts them based on detected faces:
- Groups images containing the same recognized face into individual folders (e.g.,
face_001/, face_002/).
- Moves images with multiple detected faces into a dedicated folder (
multiple_faces_detected/).
- Moves images with no detected faces or a single face that does not match any known face into another folder (
no_face_detection_found/).
- User-Friendly GUI: Provides a simple interface using CustomTkinter to select input/output directories and initiate tasks.
- Progress Monitoring: Displays real-time progress bars for both the organization and face sorting processes.
- Activity Logging: Shows detailed logs of the application's actions directly within the GUI.
Dependencies
- Python: The core programming language.
- CustomTkinter: For creating the modern-looking GUI.
imagehash: For calculating perceptual hashes.
face_recognition (based on dlib): For performing face detection and encoding.
opencv-python: A dependency for face_recognition.
- Standard Python Libraries:
os, shutil, pathlib, hashlib, logging, queue, threading, sys, collections.
Purpose
This tool is designed to assist users in cleaning up large, unorganized photo collections, making it easier to find specific images and free up disk space by handling duplicates.
⚠️ Warning: This application MOVES your files. It is strongly recommended to BACK UP your image collection before using this tool.