Simple multi-model face detection library
Project description
FaceSwitch
FaceSwitch is an installable Python library for face detection backends.
Install
pip install -e .
Install the HOG backend dependency:
pip install -e '.[hog]'
Minimal Usage
import cv2
from faceswitch import HogDetector
image = cv2.imread("tests/Lenna_test_image.png")
detector = HogDetector()
faces = detector.detect(image)
print(f"Detected: {len(faces)}")
Example Script
pip install -e '.[hog,examples]'
python examples/demo_hog.py tests/Lenna_test_image.png
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
faceswitch-0.2.0.tar.gz
(7.1 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 faceswitch-0.2.0.tar.gz.
File metadata
- Download URL: faceswitch-0.2.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2f2bb9fb95f021d60edf3dd3e155b30b39ff42222376faf5ff4d5d788dc8140
|
|
| MD5 |
1ef499fe55319dbf99ba31e674bd292d
|
|
| BLAKE2b-256 |
4182cb9cbacdd382df4845fb1b17ad789060191c29feda6222ae92e87759dac1
|
File details
Details for the file faceswitch-0.2.0-py3-none-any.whl.
File metadata
- Download URL: faceswitch-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91f16d52ab257d91a343d4cc5ab4e0779fa7acf01521e61ce58f5a9a7cde47d1
|
|
| MD5 |
72856c16194c667b81b8da5cea0965a6
|
|
| BLAKE2b-256 |
5ff2587d016cbf69fe976232be403c0162547bd99e37f6efc2991880859c3553
|