facial-analysis is a Viam modular vision service that uses the DeepFace library to perform facial analysis.
DeepFace is a lightweight facial attribute analysis and recognition framework for Python, and this Viam module allows you to deploy the Deepface module directly onto your robots and smart machines with Viam's Computer Vision service.
Python3 >= 3.11.7
The facial-analysis resource provides the following methods from Viam's built-in rdk:service:vision API
DeepFace returns a full list of facial analysis output and you can define which demography you would like to see on your detection bounding boxes. The Viam vision service module returns the dominant value specified. The default is 'emotion', but you may configure additioinal attributes according to the DeepFace Facial Attributes Analysis documentation. See more here.
Different demographies may be configured as facial-analysis config attributes, as according to the DeepFace doumentation.
{
"demography": "emotion"
}