Class SimpleEmotionEstimator
- Namespace
- FaceRecognitionDotNet.Extensions
- Assembly
- VisioForge.Core.FaceAI.dll
The age estimator which was trained by Corrective re-annotation of FER - CK+ - KDEF dataset. This class cannot be inherited.
public sealed class SimpleEmotionEstimator : EmotionEstimator, IDisposableInheritance
Implements
Inherited Members
Constructors
SimpleEmotionEstimator(string)
Initializes a new instance of the FaceRecognitionDotNet.Extensions.SimpleEmotionEstimator class with the model file path that this estimator uses.
public SimpleEmotionEstimator(string modelPath)Parameters
modelPathstring-
The model file path that this estimator uses.
Exceptions
- FileNotFoundException
-
The
modelPathfile is not found.
Properties
Labels
Gets the collection of emotion label this estimator returns in derived classes.
public override ReadOnlyCollection<string> Labels { get; }Property Value
Methods
DisposeUnmanaged()
Releases all unmanaged resources.
protected override void DisposeUnmanaged()RawPredict(MatrixBase, Location)
Returns an emotion of face image correspond to specified location in specified image.
protected override 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 override 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.