Class SimpleAgeEstimator
The age estimator which was trained by Adience dataset. This class cannot be inherited.
Implements
Inherited Members
Namespace: FaceRecognitionDotNet.Extensions
Assembly: FaceRecognitionDotNet.dll
Syntax
public sealed class SimpleAgeEstimator : AgeEstimator, IDisposable
Constructors
| Improve this Doc View SourceSimpleAgeEstimator(String)
Initializes a new instance of the SimpleAgeEstimator class with the model file path that this estimator uses.
Declaration
public SimpleAgeEstimator(string modelPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | modelPath | The model file path that this estimator uses. |
Exceptions
Type | Condition |
---|---|
System.IO.FileNotFoundException | The model file is not found. |
Properties
| Improve this Doc View SourceGroups
Gets the collection of age group this estimator returns in derived classes.
Declaration
public override AgeRange[] Groups { get; }
Property Value
Type | Description |
---|---|
AgeRange[] |
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 index of age group of face image correspond to specified location in specified image.
Declaration
protected override 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. |
Overrides
| Improve this Doc View SourceRawPredictProbability(MatrixBase, Location)
Returns probabilities of age group of face image correspond to specified location in specified image.
Declaration
protected override 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. |