Class EmotionEstimator
- Namespace
- FaceRecognitionDotNet.Extensions
- Assembly
- VisioForge.Core.FaceAI.dll
An abstract base class that provides functionality to estimate emotion from face image.
public abstract class EmotionEstimator : DisposableObject, IDisposableInheritance
Derived
Implements
Inherited Members
Properties
Labels
Gets the collection of emotion label this estimator returns in derived classes.
public abstract ReadOnlyCollection<string> Labels { get; }Property Value
Methods
RawPredict(MatrixBase, Location)
Returns an emotion of face image correspond to specified location in specified image.
protected abstract string RawPredict(MatrixBase matrix, Location location)Parameters
matrixMatrixBase-
The matrix contains a face.
locationLocation-
The location rectangle for a face.
Returns
- string
-
An emotion of face image correspond to specified location in specified image.
RawPredictProbability(MatrixBase, Location)
Returns probabilities of emotion of face image correspond to specified location in specified image.
protected abstract IDictionary<string, float> RawPredictProbability(MatrixBase matrix, Location location)Parameters
matrixMatrixBase-
The matrix contains a face.
locationLocation-
The location rectangle for a face.
Returns
- IDictionary<string, float>
-
Probabilities of emotion of face image correspond to specified location in specified image.