Skip to main content

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)

Uploaded Source

Built Distribution

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

faceswitch-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for faceswitch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 748979f824a89194afd1360d75c0e8b9e6ae3b906135981f59c9da66caaab6dd
MD5 881b7470432a3fb92ee4a17fa03374ff
BLAKE2b-256 9c06f4f872009ad39fe57cc3e1ec4189688db8cc9db2f694564a4b66085cf037

See more details on using hashes here.

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

Hashes for faceswitch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef74166ee925cdb730a99c64519955904fc37a9c227ec1b36f7ec7c8215baca8
MD5 7625d4ed446676bfcf7c718ea344b704
BLAKE2b-256 14ddb205d22ad23f0a976776aebad378960380b771f6a5510820152481ae8ee6

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