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.1.tar.gz
(4.0 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.1.tar.gz.
File metadata
- Download URL: blob_your_face-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a99f4dbe0629cc855ceb8a545c8c8e4a9a42f55f6cd24b58b2e74dd0b6832068
|
|
| MD5 |
ae5d390b4d81fce2a0173c6194d70e94
|
|
| BLAKE2b-256 |
42a5d016c78034be4c6ce323b9febed538d4bd67046e55e3dc3094115a0b3f98
|
File details
Details for the file blob_your_face-0.1.1-py3-none-any.whl.
File metadata
- Download URL: blob_your_face-0.1.1-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 |
1a1a23f3acf3c1109e9988a1076f0c3aee0896eaa7f1b74dcabaa52582375877
|
|
| MD5 |
861590fa63d40f0edd2cf3fe226706d3
|
|
| BLAKE2b-256 |
f99a3768a9464eecb37d32c2b2f6b892c1808975a2c2983b63dfbf55834cf95c
|