Skip to main content

A package for face detection and preprocessing in images

Project description

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

face_preprocessor-0.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

face_preprocessor-0.0.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file face_preprocessor-0.0.1.tar.gz.

File metadata

  • Download URL: face_preprocessor-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for face_preprocessor-0.0.1.tar.gz
Algorithm Hash digest
SHA256 27d86ac6b4682293f805563aad9fe818a2ce91790a01c703622bc3531d0b6bee
MD5 cd50aa0fb1f4395412e10378559cf49e
BLAKE2b-256 258db092ad8fb5d010625f2f3176452257ffefa7e3860c425d14d360b17cf1ee

See more details on using hashes here.

File details

Details for the file face_preprocessor-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for face_preprocessor-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03fbb161909691046cd9f2700300f5f656be4657e7da873a1ab2272db3d9cbab
MD5 037834bf787d91377560795ca0361674
BLAKE2b-256 ab041aba3a81e4d18c6c26569f5f3af927237a68c73222b34ce7771b8163b782

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page