Skip to main content

Face Preprocessor

A Python package for face detection and preprocessing in images. This package provides tools for detecting faces, cropping them with margins, and preparing them for further processing or machine learning tasks.

Features

  • Face detection using RetinaFace
  • Face cropping with customizable margins
  • Batch processing capabilities
  • Support for various input formats
  • Configurable preprocessing parameters
  • Azure Blob Storage support (optional)

Installation

pip install face-preprocessor

Quick Start

from face_preprocessor import FaceDetector, ImageProcessor
from face_preprocessor.config import FaceDetectionConfig

# Initialize configuration
config = FaceDetectionConfig(
    model_name="resnet50",
    max_size=1024,
    min_confidence=0.9
)

# Create detector and processor
detector = FaceDetector(config)
processor = ImageProcessor(detector)

# Process a single image
result = processor.process_image("path/to/image.jpg")
if result.success:
    result.processed_image.save("output.jpg")

Metadata

Release files for face-preprocessor 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for face-preprocessor 0.0.1
File Size Uploaded
face_preprocessor-0.0.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for face-preprocessor 0.0.1
File Interpreter ABI Platform
face_preprocessor-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / face_preprocessor-0.0.1.tar.gz

Download URL face_preprocessor-0.0.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
27d86ac6b4682293f805563aad9fe818a2ce91790a01c703622bc3531d0b6bee
BLAKE2b-256 checksum
How to use checksums
258db092ad8fb5d010625f2f3176452257ffefa7e3860c425d14d360b17cf1ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release files / face_preprocessor-0.0.1-py3-none-any.whl

Download URL face_preprocessor-0.0.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03fbb161909691046cd9f2700300f5f656be4657e7da873a1ab2272db3d9cbab
BLAKE2b-256 checksum
How to use checksums
ab041aba3a81e4d18c6c26569f5f3af927237a68c73222b34ce7771b8163b782
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page