Skip to main content

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, -1 or cpu for CPU
  • target_size - min size of the target_image
  • min_face - minimum face size in pixels. All faces that have side smaller than min_face will 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)

Source distribution for yolo5face 0.0.4
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

Release history Release notifications | RSS feed

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

1 release file

This release

0.0.4 This release

1 release file

0.0.3

1 release file

0.0.2

2 release files

0.0.1

3 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