SCRFD
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=}")
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)
| File | Size | Uploaded | |
|---|---|---|---|
| scrfd-0.3.0.tar.gz | 8.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|