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.4.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (779.4 kB view details)

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

pyface_docsaid-0.4.0-cp312-cp312-macosx_11_0_arm64.whl (286.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyface_docsaid-0.4.0-cp312-cp312-macosx_10_13_x86_64.whl (292.9 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

pyface_docsaid-0.4.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (747.6 kB view details)

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

pyface_docsaid-0.4.0-cp310-cp310-macosx_11_0_arm64.whl (286.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyface_docsaid-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl (291.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.4.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9fc343f2113694efc8655295c79f815812e56716ff412c00511d1e53dd991455
MD5 580141089453d819312d39089f17fd0f
BLAKE2b-256 e21b272317f02e92abc453a0263f127563b44b54483ab294683974e585fe075a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6c913346f0d40cd1c2de05e40b9e176c56afb822d9875fabbc9ee6b9bb5fc77
MD5 ef46a51c98041a6a3cee7f18c06ef911
BLAKE2b-256 cee02d7bd7eb0d7947ceeea97a5b06047339ec4765b6e81a8ef7d2ab05b1f23c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.4.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 9f7b4b464cd4d22fe0d5fb98a5afb481f54d3f07e62e06e86507ec0088eac14c
MD5 1d4c7822c15f655dbc2b7f45a3412de4
BLAKE2b-256 ad4eb21d203be189526779752fe0c7856cdc1e6e1ecd6a108c89a38b9b8c9846

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.4.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4f2a76fe46c37186f73d382e2a867b5aaadb71ae331d64fa86191d5c0eee7ba4
MD5 95560a2b2d0a0073c0cc48f16269b06e
BLAKE2b-256 c0b33a5b227c225c35817438b2a3954e6820d36be56fa7b4525a21fe6215e94c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2aab0585b95a7f2ba3cd2c5dcfb36e3fc29051dcb09805fba46a9f67fe2bccb0
MD5 69356b0612cdb4c0e8a88443c8df3f3b
BLAKE2b-256 04a9e3679b04f452f7111b5db137efb4b56caae995a330745183753846ffd04e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyface_docsaid-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b0d4591ab7250db46a870039f82c17d587837a0e63f0fc478010d0e2ff238e11
MD5 db6d80de1b6c6d67213135c47abe1994
BLAKE2b-256 d560fcca58827424583a80400e6c4db2604fd165a960ffd08719fa723d3dc76a

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