1 unstable release
0.1.0 | Feb 4, 2025 |
---|
#2083 in Command line utilities
118 downloads per month
20KB
120 lines
Face Cropper
This document generated by LLM.
Face Cropper is a simple Rust command-line application that detects and crops faces from images. It uses the rust_faces library for face detection, along with other popular crates such as clap for argument parsing, image for image processing, and indicatif for progress indication.
Features
- Face Detection: Detects faces in images using the MTCNN algorithm.
- Image Cropping: Automatically crops each detected face from the image.
- Directory & File Support: Works with a single image file or an entire directory containing images.
- Cross-Platform: Automatically selects the appropriate provider based on the operating system (using Core ML on macOS and CPU inference on other systems).
Requirements
- Supported Image Formats: The application supports common image formats including
jpg
,jpeg
,png
,gif
,bmp
,tiff
,webp
, andavif
.
Installation
cargo install face-cropper
Usage
File
face-cropper ./my-face.jpg
Directory
face-cropper ./my-pictures/
...Done! check output
directory in your path.
Dependencies
~18–31MB
~446K SLoC