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.1.0.tar.gz
(5.5 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.1.0.tar.gz.
File metadata
- Download URL: faceswitch-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
748979f824a89194afd1360d75c0e8b9e6ae3b906135981f59c9da66caaab6dd
|
|
| MD5 |
881b7470432a3fb92ee4a17fa03374ff
|
|
| BLAKE2b-256 |
9c06f4f872009ad39fe57cc3e1ec4189688db8cc9db2f694564a4b66085cf037
|
File details
Details for the file faceswitch-0.1.0-py3-none-any.whl.
File metadata
- Download URL: faceswitch-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 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 |
ef74166ee925cdb730a99c64519955904fc37a9c227ec1b36f7ec7c8215baca8
|
|
| MD5 |
7625d4ed446676bfcf7c718ea344b704
|
|
| BLAKE2b-256 |
14ddb205d22ad23f0a976776aebad378960380b771f6a5510820152481ae8ee6
|