Skip to main content

A tool to detect faces in images and apply a blob effect

Project description

Blob Your Face

A command-line tool to detect faces in images and apply a blob effect to them.

Installation

pip install blob-your-face

Usage

blob_your_face /path/to/input/folder [--color COLOR] [--shape SHAPE] [--pad PAD]

Options:

  • --color: Blob color in BGR format (e.g., '255,0,0' for blue). Default is white.
  • --shape: Shape of the blob (circle, ellipse, rectangle, square). Default is circle.
  • --pad: Padding size for the blob. Default is 0.

Example:

blob_your_face ./inputs --color 255,0,0 --shape ellipse --pad 10

Features

  • Detects faces in images using YOLO v8.
  • Applies a customizable blob effect to detected faces.
  • Supports various blob shapes: circle, ellipse, rectangle, and square.
  • Processes all supported image formats in the input directory.
  • Creates a new output directory with a random suffix at the same level as the input directory.
  • Preserves original filenames for processed images.

Supported Image Formats

  • JPEG (.jpg, .jpeg)
  • PNG (.png)
  • BMP (.bmp)

Requirements

  • Python 3.6+
  • OpenCV
  • NumPy
  • Ultralytics YOLO
  • Pillow

Note

This tool requires the yolov8n-face.pt model file to be present in the working directory or specified path.

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

blob_your_face-0.1.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

blob_your_face-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file blob_your_face-0.1.2.tar.gz.

File metadata

  • Download URL: blob_your_face-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for blob_your_face-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5ac0c2eef6d8865d154c2b50046d088606592ccc085c4460b1f3fc53ec1bb1e6
MD5 87da0c52b45ee148b4fc64c4cd7da874
BLAKE2b-256 b4aedaad67ead689012db67f01eb775c37a73e3f59d68a9bde63b03f96f997bc

See more details on using hashes here.

File details

Details for the file blob_your_face-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: blob_your_face-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for blob_your_face-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 59506d7ab58974cb1f50f4342838c4ff867d88db18030a1b10114333c55e2d69
MD5 956c74242217b1fce1075562d2e05509
BLAKE2b-256 4636e2f1d796847f8f1a0af7c3ce370d6dc5bd41c7c41277c27018476f32eec1

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