Slimeface
Introduction
A super fast face detector packaged by the libfacedetection repository using pybind11.
Change Log
[2023-5-8] Project init. [2024-9-27] Drop numpy dependency
Quick start
pip install slimeface
Usage
- Load image
# opencv
import cv2
img = cv2.imread('xxx.jpg')
# PIL
import PIL
import numpy as np
img = PIL.Image.open('xxx.jpg').convert('RGB')
img = np.array(img) # convert to numpy array
img = img[:, :, ::-1] # convert to BGR
# imageio
import imageio as io
img = io.imread('xxx.jpg')
img = img[:, :, ::-1] # convert to BGR
- Detect
# img: numpy.ndarray, shape=(H, W, 3), dtype=uint8, BGR
# conf_thresh: float, confidence threshold, default=0.5, range=[0.0, 0.1]
from slimeface import detect
confs, bboxes, landmarks = detect(img, conf_thresh=0.5)
- Deal result
# confs: numpy.ndarray, shape=(N,), dtype=uint16, confidence
# bboxes: numpy.ndarray, shape=(N, 4), dtype=uint16, bounding box (XYWH)
# landmarks: numpy.ndarray, shape=(N, 10), dtype=uint16, landmarks (XYXYXYXYXY)
import cv2
for conf, bbox, landmark in zip(confs, bboxes, landmarks):
cv2.rectangle(img, (bbox[0], bbox[1]), (bbox[0] + bbox[2], bbox[1] + bbox[3]), (0, 255, 0), 1)
cv2.putText(img, str(conf), (bbox[0], bbox[1]), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 255), 1)
for i in range(5):
cv2.circle(img, (landmark[2*i], landmark[2*i+1]), 2, (0, 255, 0), 1)
cv2.imwrite('result.jpg', img)
Metadata
Release files for slimeface 2024.9.27
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slimeface-2024.9.27.tar.gz | 7.0 kB | Without provenance | Details for slimeface-2024.9.27.tar.gz |
Built distributions (wheels)
Total release size: 9.8 MB
Release files / slimeface-2024.9.27.tar.gz
| Download URL | slimeface-2024.9.27.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e237283e2059f0fbe5cbe5412d4bcb4e986237221758c3259daf097be04b9c70
|
|
BLAKE2b-256 checksum How to use checksums |
df64b9ba9d17f272eab6ff0a3e45d4168c42fd6a5b6933727f7029cbf6752252
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp313-cp313-win_amd64.whl
| Download URL | slimeface-2024.9.27-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 230.4 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6b93c0c7c2a48abe777dcf4845130ff82e8730afea28b1d2942d2ef3bdc20e2b
|
|
BLAKE2b-256 checksum How to use checksums |
ba90aa74244d14d68e804d8b4e9bb74e6b4fa2082bb5fe18a06696445fc7c52e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | slimeface-2024.9.27-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 475.0 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
631169294505b08a52406f3b266fe57d45074dbd8d1c5c3a24ebc7cb707c2f42
|
|
BLAKE2b-256 checksum How to use checksums |
a025f8ad7bfece1722ee3e2f9b6781b68b4b01da6c0645d1f5ce530a8f971eb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp313-cp313-macosx_10_13_x86_64.whl
| Download URL | slimeface-2024.9.27-cp313-cp313-macosx_10_13_x86_64.whl |
|---|---|
| Size | 518.4 kB |
| Tags | CPython 3.13 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
e0ab7f85c9b036e54a9fe1fe923e23d028a1d152a6f92fc16b7f6e0db58a14a3
|
|
BLAKE2b-256 checksum How to use checksums |
f80cc3ec8404dbe23cf6c0c048ed4e5240b024d75a6a006efb54acc5e63595be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp312-cp312-win_amd64.whl
| Download URL | slimeface-2024.9.27-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 230.4 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3f1d09feaa2ac2e0613b5bd559603b61b5d3034c0ba372bd2085a069ee2d3c78
|
|
BLAKE2b-256 checksum How to use checksums |
d4f43885762a151c67ec9335ce0c7efc75c0dd3c95ea13e3b1ec5390507ac1b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | slimeface-2024.9.27-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 475.1 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
ed8855e14300a0893b14ac6efdc6663b27e4422fdf9a9e8b56725b9ca3a455ed
|
|
BLAKE2b-256 checksum How to use checksums |
cfd9a21b665614c0742101f4681d0f17b96549443733c71922ec7249bc88f6e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp312-cp312-macosx_10_13_x86_64.whl
| Download URL | slimeface-2024.9.27-cp312-cp312-macosx_10_13_x86_64.whl |
|---|---|
| Size | 518.3 kB |
| Tags | CPython 3.12 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
9ee38343b0ef95e2653e3fba6cf3137d60735566e6cd39cd5a6a8ffb87999323
|
|
BLAKE2b-256 checksum How to use checksums |
6affc59eb41a6bd799df0667cbd7af6a0a9d7e421eb51468cc2ea4c5dbec1f0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp311-cp311-win_amd64.whl
| Download URL | slimeface-2024.9.27-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 230.1 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
40b85c407966a5cff3d48ca62b6f0584d48ca1ff815b0a532f428d627b70dc2a
|
|
BLAKE2b-256 checksum How to use checksums |
30915a45970b51059811842d31bb12be804941db47df76b0e4904ecd57d7bcf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | slimeface-2024.9.27-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 475.5 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
add4c258da8be39d9c9ec97b44c9cb487dca94c0876084cf81d8700641635929
|
|
BLAKE2b-256 checksum How to use checksums |
68065922f918f51f5729eb556532852313222cc37be1ea8ac3230a7e6645e4d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp311-cp311-macosx_10_9_x86_64.whl
| Download URL | slimeface-2024.9.27-cp311-cp311-macosx_10_9_x86_64.whl |
|---|---|
| Size | 522.1 kB |
| Tags | CPython 3.11 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
0a8c1157b44bcc7b6d13147560aed00c2046f0ba07de198e7882a816168e3f61
|
|
BLAKE2b-256 checksum How to use checksums |
1648a861b06f9a2ac0ea64e5427f625dd4b0253654d473e2eaef69535b5199f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp310-cp310-win_amd64.whl
| Download URL | slimeface-2024.9.27-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 228.9 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e8a7d75bfb308c15342e8471c26fa3bcb36b26670079590fd3c53c4386b1d052
|
|
BLAKE2b-256 checksum How to use checksums |
f1beedef7fd2b17e17ad6317af5969eeeb26dc3ca1027b8b52f3f0ff71f9eafe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | slimeface-2024.9.27-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 473.6 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
bbd603962459d3d8bee82e6bbafc97c5a16bb6c85c7081c3c0272ff04775b8e2
|
|
BLAKE2b-256 checksum How to use checksums |
fd9e54fe57d049545135e0bbc2f0f522c2769cddb80554d09f268a167f51e4a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp310-cp310-macosx_10_9_x86_64.whl
| Download URL | slimeface-2024.9.27-cp310-cp310-macosx_10_9_x86_64.whl |
|---|---|
| Size | 520.7 kB |
| Tags | CPython 3.10 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
65b94d86df4efe5b1b2340c460fa565e034ec206f7047b8a9638655994a046f6
|
|
BLAKE2b-256 checksum How to use checksums |
7d7ef76e668dcda2922ab27b4f3e5c96a568f00289058c289479c3b9159ae7f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp39-cp39-win_amd64.whl
| Download URL | slimeface-2024.9.27-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 228.9 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9f8f38391bcaabd24336c1c13107ff078e1a1a1d3ea4421d9320eaaecad13bb9
|
|
BLAKE2b-256 checksum How to use checksums |
38782b5ce07f92db425f4a9f806126ab3926a684d363d9c578176920efccedad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | slimeface-2024.9.27-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 473.7 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
681d603dfff1a58841194394059e299688202e582ca089599983d5be1703f286
|
|
BLAKE2b-256 checksum How to use checksums |
46046d006edc5fd1d96a4870a38c21956d8f01c32c4afb1c525eb9c7c48560d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp39-cp39-macosx_10_9_x86_64.whl
| Download URL | slimeface-2024.9.27-cp39-cp39-macosx_10_9_x86_64.whl |
|---|---|
| Size | 520.8 kB |
| Tags | CPython 3.9 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
3d11d154aabefd1be63953e14152f3da7e4bc125e9ba3b65be0900a737a7df9b
|
|
BLAKE2b-256 checksum How to use checksums |
e0b7dfceb515819155d13fb47c0eac9289cc39bf2ffc1e1bcdf17d8594e89c85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp38-cp38-win_amd64.whl
| Download URL | slimeface-2024.9.27-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 228.8 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6b693a1fe6cb11161ca61ddad585fd45f1b903f92e282807d16df87f98471dd9
|
|
BLAKE2b-256 checksum How to use checksums |
b44169bf57d18290e255fd4fb88f5ec30563fc3c864dbbd4f15763e10ec428df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | slimeface-2024.9.27-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 473.5 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
f271b4b676120861ccf68e33423aaa45c02211f9b4921083dbc66003de832c89
|
|
BLAKE2b-256 checksum How to use checksums |
fd179d144fb812eff7a5cc02a5f0d8d36393d96249d6570ebd3ecb626e5ffa10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp38-cp38-macosx_10_9_x86_64.whl
| Download URL | slimeface-2024.9.27-cp38-cp38-macosx_10_9_x86_64.whl |
|---|---|
| Size | 520.5 kB |
| Tags | CPython 3.8 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
09610b653165b7252c81ab984fe2ad9e1fe61d0b1d58cea41c7c1cdf638e1769
|
|
BLAKE2b-256 checksum How to use checksums |
bd0ddf4244f07799ba8834a68bebeb368dd7639fb23d015dc8f615b6cd1993c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp37-cp37m-win_amd64.whl
| Download URL | slimeface-2024.9.27-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 229.2 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6f6ed8194d954b576849c50bc67ad9bfcacc8dd85bee8aab907e8e33fe6d6a85
|
|
BLAKE2b-256 checksum How to use checksums |
9dfa6e819ae1a339e908ff35af1069bf7b1fa863a6a00ebfa38ebc214146d16d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | slimeface-2024.9.27-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 474.4 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
973126c054d2d3d56848375105c15571b5f15f7d87a391d9f7c0060b1c54941b
|
|
BLAKE2b-256 checksum How to use checksums |
2df0d4f649c982cea387e8adf7151bda755d99590335bad8235ba824d475a3cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp37-cp37m-macosx_10_9_x86_64.whl
| Download URL | slimeface-2024.9.27-cp37-cp37m-macosx_10_9_x86_64.whl |
|---|---|
| Size | 520.6 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
b27b9f0daf9bdddc249e87ef03296245c78f862565b5955ee898c5622b974df6
|
|
BLAKE2b-256 checksum How to use checksums |
c63c2e0c5d589c492157313070e0274ff5785b45e9c896c64c72c77c7c463262
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp36-cp36m-win_amd64.whl
| Download URL | slimeface-2024.9.27-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 229.2 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
54d0f910c67d8bf655fbc1d819ad05ff186a41f882bcc5aa35f4ccbe84add7cd
|
|
BLAKE2b-256 checksum How to use checksums |
53bf1c7f48f4d3cacd530485e0d2cd34be2ce657e7d0eb95ab697007d17701f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | slimeface-2024.9.27-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 474.2 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
f1f006d3eb536667aa9947bd6b95ddfc8fc6e11707106459275d10e3e3a57e41
|
|
BLAKE2b-256 checksum How to use checksums |
8ba18c5119f6ee08b0b69ed8f9eff96607eb6a6067d95e98681b80c11b11528f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / slimeface-2024.9.27-cp36-cp36m-macosx_10_9_x86_64.whl
| Download URL | slimeface-2024.9.27-cp36-cp36m-macosx_10_9_x86_64.whl |
|---|---|
| Size | 520.0 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
318d5ef4e44c30f04ceecf37d66d54f825dead035b92e5cb768c822a0843bd5e
|
|
BLAKE2b-256 checksum How to use checksums |
9369e9873de8187b0769746c994bd2abd3cb665ed2bd0e12aeeb29da78d12159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for slimeface 2024.9.27
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.