Quickstart Guide
Here you will find instructions regarding how to install the library and run your first demo!
Instalation
To install the FaceChannel library, you will need python >= 3.6. The environment has a list of requirements that will be installed automatically if you run:
pip install facechannel
Facial Expression Recognition in Your Hand
FaceChannel is a python library that holds several facial expression recognition models. The main idea behind the FaceChannel is to facilitate the use of this technology by reducing the deployment effort. This is the current list of available models:
Model |
Input Type |
Output Type |
---|---|---|
FaceChannelV1 - Cat |
(64x64x1) |
[“Neutral”, “Happiness”, “Surprise”, “Sadness”, “Anger”, “Disgust”, “Fear”, “Contempt”] |
FaceChannelV1 - Dim |
(64x64x1) |
[“Arousal”, “Valence”] |
Self Affective Memory |
(64x64x1) |
[“Arousal”, “Valence”] |
Recognizing Facial Expression
To start the facial expression recognition is simple and painless:
"""Facial Expression Recognition"""
import cv2
from FaceChannel.FaceChannelV1.FaceChannelV1 import FaceChannelV1
faceChannelCat = FaceChannelV1("Cat", loadModel=True)
categoricalRecognition = faceChannelCat.predict(cv2.imread("image.png"))
print categoricalRecognition
For more examples on how to use, and to see our pre-made demos, check the examples folder.