JeVoisBase  1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
PyEmotion.PyEmotion Class Reference

Human facial emotion recognition using OpenCV Deep Neural Networks (DNN) More...

Public Member Functions

 __init__ (self)
 Constructor.
 
 process (self, inframe, outframe)
 JeVois main processing function.
 

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__()

PyEmotion.PyEmotion.__init__ (   self)

Constructor.

Definition at line 36 of file PyEmotion.py.

Member Function Documentation

◆ process()

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

JeVois main processing function.

Definition at line 50 of file PyEmotion.py.

Member Data Documentation

◆ classes

◆ inpHeight

PyEmotion.PyEmotion.inpHeight

◆ inpWidth

PyEmotion.PyEmotion.inpWidth

◆ mean

◆ model

◆ net

◆ rgb

◆ scale

◆ timer


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