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 Provenance Actions
scrfd-0.3.0.tar.gz 8.7 MB Without provenance Details for scrfd-0.3.0.tar.gz

Built distribution (wheel)

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

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

Security for scrfd 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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