JeVoisBase  1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
PyEmotion.PyEmotion Class Reference

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
 

Detailed Description

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.

Author
Laurent Itti
Videomapping:
YUYV 320 336 15.0 YUYV 320 336 15.0 JeVois PyEmotion
Email:
itti@.nosp@m.usc..nosp@m.edu
Address:
880 W 1st St Suite 807, Los Angeles CA 90012, USA
Main URL:
http://jevois.org
Support URL:
http://jevois.org
Other URL:
http://jevois.org
License:
GPL v3
Distribution:
Unrestricted
Restrictions:
None

Definition at line 33 of file PyEmotion.py.

Constructor & Destructor Documentation

◆ __init__()

def PyEmotion.PyEmotion.__init__ (   self)

Constructor.

Definition at line 36 of file PyEmotion.py.

Member Function Documentation

◆ process()

def PyEmotion.PyEmotion.process (   self,
  inframe,
  outframe 
)

JeVois main processing function.

Definition at line 50 of file PyEmotion.py.

References hasattr().

Member Data Documentation

◆ classes

PyEmotion.PyEmotion.classes

Definition at line 57 of file PyEmotion.py.

◆ inpHeight

PyEmotion.PyEmotion.inpHeight

Definition at line 38 of file PyEmotion.py.

◆ inpWidth

PyEmotion.PyEmotion.inpWidth

Definition at line 37 of file PyEmotion.py.

◆ mean

PyEmotion.PyEmotion.mean

Definition at line 40 of file PyEmotion.py.

◆ model

PyEmotion.PyEmotion.model

Definition at line 59 of file PyEmotion.py.

Referenced by PyLicensePlate.PyLicensePlate.processGUI().

◆ net

PyEmotion.PyEmotion.net

Definition at line 60 of file PyEmotion.py.

◆ rgb

PyEmotion.PyEmotion.rgb

Definition at line 41 of file PyEmotion.py.

◆ scale

PyEmotion.PyEmotion.scale

Definition at line 39 of file PyEmotion.py.

◆ timer


The documentation for this class was generated from the following file: