Skip to main content

An Integrated Python Package for Face Analysis.

Project description

PyFace

license python release pypi downloads

Introduction

PyFace is a Python library for face detection, face landmark, face depth, face recognition, etc.

PyFace Overview

Installation

Requirements

  • Python 3.10+

Install via pypi

pip install pyface-docsaid

Install via GitHub

pip install git+https://github.com/DocsaidLab/PyFace.git

For Python 3.12

Because onnxsim is not prebuilt in Python 3.12. We recommend prebuild it manually.

pip install pip wheel setuptools onnxsim
pip install pyface-docsaid

Usage

You can see demo for more details.

General usage

We recommend to use FaceService for integrating all face models.

import capybara as cb
import pyface as pf

face_service = pf.FaceService(
    batch_size=1,
    enable_recognition=True,
    enable_depth=True,
    enable_landmark=True,
    face_bank='path/to/face_bank',
    recog_level='High',
    detect_kwargs={"gpu_id": 0, "backend": "cuda"}, # if you want to use GPU on detection
    landmark_kwargs={"backend": "cpu"}, # if you want to use CPU on landmark
    ...
)
img = cb.imread('path/to/image')
faces_on_img = face_service([img])[0]
# Plotted faces on image
cb.imwrite('path/to/output', faces_on_img.gen_info_img())

Mac User

Citation

@misc{lin2025pyface,
  author       = {Kun-Hsiang Lin},
  title        = {PyFace: An Integrated Python Package for Face Analysis},
  year         = {2025},
  publisher    = {GitHub},
  howpublished = {\url{https://github.com/DocsaidLab/PyFace}}
}

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyface_docsaid-0.2.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (778.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

pyface_docsaid-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (285.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyface_docsaid-0.2.0-cp312-cp312-macosx_10_13_x86_64.whl (292.2 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

pyface_docsaid-0.2.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (747.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

pyface_docsaid-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (285.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyface_docsaid-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl (290.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file pyface_docsaid-0.2.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyface_docsaid-0.2.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1734797c759a8831f651591ff70afca5bdb7bf8ec58fa3508b650526f8e2c1ab
MD5 9ed5d044b5d73a3f809bcb983f88e36d
BLAKE2b-256 d229dc771f7f5d3211eeef0b5912b13faa1f4c0e6f80e218aa93706f0426217a

See more details on using hashes here.

File details

Details for the file pyface_docsaid-0.2.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyface_docsaid-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b437b9d6f345a29276c6b2a0647276665a2b2f6f7744fe6aa6b18f3806d8051e
MD5 39b6de6e49c758b7daca38f858ba01d1
BLAKE2b-256 8983c86fdd1740ed1f5ca95698d666d55ee1b5baedc48816ca70fc3f7fa2e841

See more details on using hashes here.

File details

Details for the file pyface_docsaid-0.2.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pyface_docsaid-0.2.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 fdd19bfd17dc45d74f67ca3aa788b1fed0452fc19c5f66a89c2764a65fb9ac0a
MD5 eae06c6257cbf5b5181f7301e3cc29e9
BLAKE2b-256 60052f8be9a14a2a79c3f9b8902059814e8df796ba8196939d0691605f695dc8

See more details on using hashes here.

File details

Details for the file pyface_docsaid-0.2.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyface_docsaid-0.2.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ece468031f43603528a5242e15e09b73e926c923819032e5474b32a062ec9b1d
MD5 3c740772c2a5d6f78b6c65132d14972d
BLAKE2b-256 ce1c97126519c123d8af0db6ebb42a5a9d575b365c0fcaa331fb2d807ee259f9

See more details on using hashes here.

File details

Details for the file pyface_docsaid-0.2.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyface_docsaid-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3822a36ce8f40d05a6d4f0fa31d6c12e9354c9212c08005bfb04b7e213f91ce1
MD5 e925e0f2ae6a21d64a84457f7e7b8319
BLAKE2b-256 4f0b688619107185b74bd7d1a663f9d68a1e2576ebaa1eb24a6caf1f64e06ebe

See more details on using hashes here.

File details

Details for the file pyface_docsaid-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyface_docsaid-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 273bbe046a0ca5a9afb0436bc85eb38067f5362b10c60abba46e1810960feec6
MD5 bb230d15b2a1bcdaf3b4ea67254ce339
BLAKE2b-256 e6ea9dca6d8e7e8378c1ec310d219f8be3ddf66012aa1f04a198582e8d2aed70

See more details on using hashes here.

Supported by

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