Skip to main content

SCRFD

github ci

Efficient face detection using SCRFD.

pip install scrfd
from scrfd import SCRFD, Threshold
from PIL import Image

face_detector = SCRFD.from_path("./models/scrfd.onnx")
threshold = Threshold(probability=0.4)

image = Image.open("./images/solvay_conference_1927.jpg").convert("RGB")
faces = face_detector.detect(image, threshold=threshold)

for face in faces:
    bbox = face.bbox
    kps = face.keypoints
    score = face.probability
    print(f"{bbox=}, {kps=}, {score=}")
face detection

Metadata

Release files for scrfd 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrfd 0.3.0
File Size Uploaded
scrfd-0.3.0.tar.gz 8.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for scrfd 0.3.0
File Interpreter ABI Platform
scrfd-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 MB

Release files / scrfd-0.3.0.tar.gz

Download URL scrfd-0.3.0.tar.gz
Size 8.7 MB
Tags Source
SHA-256 checksum
How to use checksums
35855c664d565492aab0068f1c64b4957a15ca6cd106b9c8b1642d67cfeeb5fc
BLAKE2b-256 checksum
How to use checksums
42cc6a993a455aaeae086bdc66dd0884cb1269a6e5c971614340e91fab46edfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.8

Release files / scrfd-0.3.0-py3-none-any.whl

Download URL scrfd-0.3.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b515d38fabd65c77603f730e72601994875d129d287f5bea73d6871c2ca6f5f
BLAKE2b-256 checksum
How to use checksums
cbda49ea3ab1eec1d7ad7170b2f295022cb6cc1dfcda2024bba2f1b33c0bf683
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.8

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page