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.2.0.tar.gz (7.1 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.2.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

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

Hashes for faceswitch-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e2f2bb9fb95f021d60edf3dd3e155b30b39ff42222376faf5ff4d5d788dc8140
MD5 1ef499fe55319dbf99ba31e674bd292d
BLAKE2b-256 4182cb9cbacdd382df4845fb1b17ad789060191c29feda6222ae92e87759dac1

See more details on using hashes here.

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

Hashes for faceswitch-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91f16d52ab257d91a343d4cc5ab4e0779fa7acf01521e61ce58f5a9a7cde47d1
MD5 72856c16194c667b81b8da5cea0965a6
BLAKE2b-256 5ff2587d016cbf69fe976232be403c0162547bd99e37f6efc2991880859c3553

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