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
Release history Release notifications | RSS feed
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.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blob_your_face-0.1.0.tar.gz.
File metadata
- Download URL: blob_your_face-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65a35c120a3ddb345803a1ef8480a88d92a416f70786dc9c56b1140cf9168e81
|
|
| MD5 |
d048b6e6c11a5bc901ca4238a7c8f05a
|
|
| BLAKE2b-256 |
1c0930c63cb62f09d4eca175c91a592ac49aa6e6fd71e878aad183b84733c100
|
File details
Details for the file blob_your_face-0.1.0-py3-none-any.whl.
File metadata
- Download URL: blob_your_face-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb11eca02357c9cc854225cf16efffb49d240ae2ce7c1bbfe2c387dbb4f1b7b5
|
|
| MD5 |
a84d7a84c11f92a1c6635f26e0e6a3a2
|
|
| BLAKE2b-256 |
f89eeaa877b44e438642f1edaf68ad7f012ca3fbec9ea66517999980a662fb47
|