face-cropper 0.1.0

Face Cropper is a simple Rust command-line application that detects and crops faces from images.
face-cropper-0.1.0 is not a library.

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, and avif.

Installation

cargo install face-cropper

Usage

File

face-cropper ./my-face.jpg

Directory

face-cropper ./my-pictures/

...Done! check output directory in your path.