Class AgeEstimator
An abstract base class that provides functionality to estimate human age from face image.
Implements
System.IDisposable
Inherited Members
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 AgeEstimator : DisposableObject, IDisposable
Properties
| Improve this Doc View SourceGroups
Gets the collection of age group this estimator returns in derived classes.
Declaration
public abstract AgeRange[] Groups { get; }
Property Value
| Type | Description |
|---|---|
| AgeRange[] |
Methods
| Improve this Doc View SourceRawPredict(MatrixBase, Location)
Returns an index of age group of face image correspond to specified location in specified image.
Declaration
protected abstract uint 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.UInt32 | An index of age group of face image correspond to specified location in specified image. |
RawPredictProbability(MatrixBase, Location)
Returns probabilities of age group of face image correspond to specified location in specified image.
Declaration
protected abstract IDictionary<uint, 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.UInt32, System.Single> | Probabilities of age group of face image correspond to specified location in specified image. |
Implements
System.IDisposable