face-cropper

Crates.ioface-cropper
lib.rsface-cropper
version0.1.0
created_at2025-02-04 14:35:45.835852+00
updated_at2025-02-04 14:35:45.835852+00
descriptionFace Cropper is a simple Rust command-line application that detects and crops faces from images.
homepage
repositoryhttps://github.com/YeongCheon/face-cropper
max_upload_size
id1542009
size68,881
YeongCheon (YeongCheon)

documentation

README

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.

Commit count: 8

cargo fmt