Table of Contents

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, IDisposable

Inheritance

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

modelPath string

The model file path that this estimator uses.

Exceptions

FileNotFoundException

The modelPath file 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

ReadOnlyCollection<string>

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

matrix MatrixBase

The matrix contains a face.

location Location

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

matrix MatrixBase

The matrix contains a face.

location Location

The location rectangle for a face.

Returns

IDictionary<string, float>

Probabilities of emotion of face image correspond to specified location in specified image.