Show / Hide Table of Contents

Class EmotionEstimator

An abstract base class that provides functionality to estimate emotion from face image.

Inheritance
System.Object
DisposableObject
EmotionEstimator
SimpleEmotionEstimator
Implements
System.IDisposable
Inherited Members
DisposableObject.IsDisposed
DisposableObject.ThrowIfDisposed()
DisposableObject.DisposeManaged()
DisposableObject.DisposeUnmanaged()
DisposableObject.Dispose()
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FaceRecognitionDotNet.Extensions
Assembly: FaceRecognitionDotNet.dll
Syntax
public abstract class EmotionEstimator : DisposableObject, IDisposable

Properties

| Improve this Doc View Source

Labels

Gets the collection of emotion label this estimator returns in derived classes.

Declaration
public abstract ReadOnlyCollection<string> Labels { get; }
Property Value
Type Description
System.Collections.ObjectModel.ReadOnlyCollection<System.String>

Methods

| Improve this Doc View Source

RawPredict(MatrixBase, Location)

Returns an emotion of face image correspond to specified location in specified image.

Declaration
protected abstract 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.

| Improve this Doc View Source

RawPredictProbability(MatrixBase, Location)

Returns probabilities of emotion of face image correspond to specified location in specified image.

Declaration
protected abstract 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.

Implements

System.IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX