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 -U pip wheel
pip install setuptools # for python 3.12
pip install pyface-docsaid

Install via GitHub

pip install -U pip wheel
pip install setuptools # for python 3.12
pip install git+https://github.com/DocsaidLab/PyFace.git

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())

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.3.1-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.3.1-cp312-cp312-macosx_11_0_arm64.whl (285.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.13+ x86-64

pyface_docsaid-0.3.1-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.3.1-cp310-cp310-macosx_11_0_arm64.whl (285.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyface_docsaid-0.3.1-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.3.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyface_docsaid-0.3.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2aa168231eb2da4873e0eba621dc051dcace6b6a743f53b5032d06a7e2d04f6c
MD5 c2cd1eab58b2d8cc8099409bfc869591
BLAKE2b-256 2545179457da553fce429d6e149ef0d6175356cedad962a61d1688272604c8e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d19e9c2ec8466b8c89400dab28efe5742c6e5f0090e03fe3870092370d33cf4
MD5 2e7435d738f99bc69bb2092bead54999
BLAKE2b-256 b5169499aee0e5a58633e7687d901c6d9b4c8c78f536298b86a00d4922350351

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.3.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 6574dcbac3ed8576590b3a4f5e60f5e2ea144d21a6d88c40f3ef5e134dbcdce5
MD5 cefd988a1803ea7befbac07e3a5be402
BLAKE2b-256 00a212cc97a0405acd8b76f6fb3546fbec428e5ff5ee2186b1a8ea484d24852d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.3.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 60ed44a00f6fceffdd2add4daccd9cb4bb26b02ab09cf839d2f65f99ab9e546e
MD5 286310709f734c6151b14e255cc2352a
BLAKE2b-256 ab5bbb53532e356bc50e626893758df57d9535362bbcbc0fe27d7fb47bed07c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81ba546551b12cec5d92466477b0023ccf61de5d9c999224b51c2cb1470a7a1b
MD5 c930820511dcfd901f257faa152ef505
BLAKE2b-256 7bcb9c3ead6ff1d023f2f254a6a0ab77e8158bbe25b68582548611e6c15b7eaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.3.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7f5ab877878931a030142171b36c8255bf1a4d9e1977cd6fbeaf4c7295ac2866
MD5 e26ad86cde76f309bdba3b7b21551070
BLAKE2b-256 e5a588183c441da804e3a0fcfbf7a89ce6c07415ec5d004be931ecc8697a9bdb

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