Skip to main content

Wrapper over Yolo5Face for a more convenient inference.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yolo5face-0.0.5.tar.gz (17.5 kB view details)

Uploaded Source

File details

Details for the file yolo5face-0.0.5.tar.gz.

File metadata

  • Download URL: yolo5face-0.0.5.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for yolo5face-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7f198b8835c2c9e3939a2bdf50e57cbfe0046eb466dfd175fbb78a2afc3dcca5
MD5 0c4e551b1cf4107327a4ef21853d578a
BLAKE2b-256 e63c343f17ea0d92b56df13c5011a49247f61400f987a14fa450c645c50814c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page