OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Facelib

FaceLib is a Python library built around PyTorch for face detection, facial landmark alignment, age and gender estimation, facial-expression recognition, and face recognition.

Independent OpenViST project profile, based on linked sources.

Facelib — Trying recognition against a facebank organized into person-specific folders
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use FaceLib when a Python workflow needs one or more of its documented face-analysis functions, with webcam examples for live input and lower-level methods for processing images.

Who it is for

  • Python developers adding face-analysis functions to image-processing applications.
  • Users exploring face detection and recognition workflows through the repository's example notebook.
  • Developers who need webcam wrappers or lower-level access to detection and recognition results.

Documented uses

  • Detect faces and retrieve bounding boxes, confidence scores, and landmarks.
  • Align detected faces for downstream analysis.
  • Estimate age and gender or return facial-expression probabilities.
  • Compare detected faces against a locally organized facebank.
Before you choose

Requirements & limits

The repository is public and MIT licensed. Its README documents installation from Git with pip.

  • The documented detector is RetinaFace, with ResNet50 and MobileNet backbone options; MobileNet is the default.
  • The README identifies ShufflenetFull as the default age-and-gender model and DenseNet121 as the default expression model.
  • Expression recognition expects face inputs sized 224 by 224.
  • Recognition requires preparing or updating a facebank; the README shows adding identities from a folder or webcam.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Prepare a facebank for recognition

Organize person images in the folder structure used by FaceLib's recognition documentation.

Before you start

  • Face images for each person to be represented in the facebank.

Steps

  1. Create the Insightface/models/data/facebank/ directory.

  2. Create a subfolder for each person.

  3. Place that person's images in their corresponding subfolder.

  4. Use the documented add_from_folder or add_from_webcam method to add a person, then follow the recognition example to load or update the facebank.

Expected outcome

Person images are organized in the facebank structure used by the documented recognition workflow.

Guide limitations

  • The README does not specify image-quality requirements or explain how recognition thresholds should be chosen.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
19 November 2026
Original website title
sajjjadayobi/FaceLib · Official homepage title · retained in its source language