JeVoisBase
1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Human facial emotion recognition using OpenCV Deep Neural Networks (DNN) More...
Public Member Functions | |
def | __init__ (self) |
Constructor. More... | |
def | process (self, inframe, outframe) |
JeVois main processing function. More... | |
Public Attributes | |
inpWidth | |
inpHeight | |
scale | |
mean | |
rgb | |
timer | |
classes | |
model | |
net | |
Human facial emotion recognition using OpenCV Deep Neural Networks (DNN)
This module runs an emotion classification deep neural network using the OpenCV DNN library. The network is from the FER+ emotion recognition project, "Training Deep Networks for Facial Expression Recognition with Crowd-Sourced Label Distribution" arXiv:1608.01041
The module outputs a score from -1000 to 1000 for each of: neutral, happiness, surprise, sadness, anger, disgust, fear, contempt.
Note that this module does not include any face detection. Hence it always assumes that there is a face well centered in the image. You should enhance this module with first applying a face detector (see, e.g., PyDetectionDNN) and to only run the emotion recognition network on the detected faces.
Definition at line 33 of file PyEmotion.py.
def PyEmotion.PyEmotion.__init__ | ( | self | ) |
Constructor.
Definition at line 36 of file PyEmotion.py.
def PyEmotion.PyEmotion.process | ( | self, | |
inframe, | |||
outframe | |||
) |
PyEmotion.PyEmotion.classes |
Definition at line 57 of file PyEmotion.py.
PyEmotion.PyEmotion.inpHeight |
Definition at line 38 of file PyEmotion.py.
PyEmotion.PyEmotion.inpWidth |
Definition at line 37 of file PyEmotion.py.
PyEmotion.PyEmotion.mean |
Definition at line 40 of file PyEmotion.py.
PyEmotion.PyEmotion.model |
Definition at line 59 of file PyEmotion.py.
Referenced by PyLicensePlate.PyLicensePlate.processGUI().
PyEmotion.PyEmotion.net |
Definition at line 60 of file PyEmotion.py.
PyEmotion.PyEmotion.rgb |
Definition at line 41 of file PyEmotion.py.
PyEmotion.PyEmotion.scale |
Definition at line 39 of file PyEmotion.py.
PyEmotion.PyEmotion.timer |
Definition at line 46 of file PyEmotion.py.
Referenced by PythonOpenCV.PythonOpenCV.process(), PythonSandbox.PythonSandbox.process(), PythonParallel.PythonParallel.process(), PythonObject6D.PythonObject6D.process(), PyHandDetector.PyHandDetector.processGUI(), PyPoseDetector.PyPoseDetector.processGUI(), PyFaceMesh.PyFaceMesh.processGUI(), PySelfie.PySelfie.processGUI(), PyObjectron.PyObjectron.processGUI(), PyLicensePlate.PyLicensePlate.processGUI(), PySceneText.PySceneText.processGUI(), PythonTest.PythonTest.processGUI(), PythonSandbox.PythonSandbox.processGUI(), PythonSandbox.PythonSandbox.processNoUSB(), and PythonObject6D.PythonObject6D.processNoUSB().