Class SimpleEmotionEstimator
The age estimator which was trained by Corrective re-annotation of FER - CK+ - KDEF dataset. This class cannot be inherited.
Implements
Inherited Members
Namespace: FaceRecognitionDotNet.Extensions
Assembly: FaceRecognitionDotNet.dll
Syntax
public sealed class SimpleEmotionEstimator : EmotionEstimator, IDisposable
Constructors
| Improve this Doc View SourceSimpleEmotionEstimator(String)
Initializes a new instance of the SimpleEmotionEstimator class with the model file path that this estimator uses.
Declaration
public SimpleEmotionEstimator(string modelPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | modelPath | The model file path that this estimator uses. |
Exceptions
Type | Condition |
---|---|
System.IO.FileNotFoundException | The |
Properties
| Improve this Doc View SourceLabels
Gets the collection of emotion label this estimator returns in derived classes.
Declaration
public override ReadOnlyCollection<string> Labels { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<System.String> |
Overrides
Methods
| Improve this Doc View SourceDisposeUnmanaged()
Releases all unmanaged resources.
Declaration
protected override void DisposeUnmanaged()
Overrides
| Improve this Doc View SourceRawPredict(MatrixBase, Location)
Returns an emotion of face image correspond to specified location in specified image.
Declaration
protected override string RawPredict(MatrixBase matrix, Location location)
Parameters
Type | Name | Description |
---|---|---|
MatrixBase | matrix | The matrix contains a face. |
Location | location | The location rectangle for a face. |
Returns
Type | Description |
---|---|
System.String | An emotion of face image correspond to specified location in specified image. |
Overrides
| Improve this Doc View SourceRawPredictProbability(MatrixBase, Location)
Returns probabilities of emotion of face image correspond to specified location in specified image.
Declaration
protected override IDictionary<string, float> RawPredictProbability(MatrixBase matrix, Location location)
Parameters
Type | Name | Description |
---|---|---|
MatrixBase | matrix | The matrix contains a face. |
Location | location | The location rectangle for a face. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Single> | Probabilities of emotion of face image correspond to specified location in specified image. |