Facekit is a Python library for face detection, face landmark, face detph, face recognition, etc.
- Python 3.10+
pip install git+https://github.com/DocsaidLab/Facekit.git
You can see demo for more details.
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())
@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}}
}