Skip to content

DocsaidLab/Facekit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facekit

Introduction

Facekit is a Python library for face detection, face landmark, face detph, face recognition, etc.

Facekit Overview

Installation

Requirements

  • Python 3.10+

Install from GitHub

pip install git+https://github.com/DocsaidLab/Facekit.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 facekit as fk

face_service = fk.FaceService(
    batch_size=1,
    enable_recognition=True,
    enable_depth=True,
    enable_landmark=True,
    face_bank='path/to/face_bank',
    recog_level='High',
)
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{lin2025facekit,
  author       = {Kun-Hsiang Lin},
  title        = {FaceKit: An Integrated Toolkit for Face Analysis},
  year         = {2025},
  publisher    = {GitHub},
  howpublished = {\url{https://github.com/DocsaidLab/Facekit}}
}