Wrapper over YoloV5Face
Installation
pip install -U yolo5face
Inference
from yolo5face.get_model import get_model
model = get_model("yolov5n", gpu=-1, target_size=512, min_face=24)
image = cv2.imread(<IMAGE_PATH>)
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
boxes, key_points = model(image)
gpu- GPU number,-1orcpufor CPUtarget_size- min size of the target_imagemin_face- minimum face size in pixels. All faces that have side smaller thanmin_facewill be ignored.
Release files for yolo5face 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yolo5face-0.0.4.tar.gz | 17.0 kB | Details |
Release files / yolo5face-0.0.4.tar.gz
| Download URL | yolo5face-0.0.4.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44571948267ea3fbf1aa19477fd17a8eb2748bb6b807fe6c71a431bdad5db826
|
|
BLAKE2b-256 checksum How to use checksums |
072a01a9e402e45ea888a57385d4a90942f243e5ad27d23255f1a0217863bece
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|