Class AgeEstimator
- Namespace
- FaceRecognitionDotNet.Extensions
- Assembly
- VisioForge.Core.FaceAI.dll
An abstract base class that provides functionality to estimate human age from face image.
public abstract class AgeEstimator : DisposableObject, IDisposableInheritance
Derived
Implements
Inherited Members
Properties
Groups
Gets the collection of age group this estimator returns in derived classes.
public abstract AgeRange[] Groups { get; }Property Value
- AgeRange[]
Methods
RawPredict(MatrixBase, Location)
Returns an index of age group of face image correspond to specified location in specified image.
protected abstract uint RawPredict(MatrixBase matrix, Location location)Parameters
matrixMatrixBase-
The matrix contains a face.
locationLocation-
The location rectangle for a face.
Returns
- uint
-
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.
protected abstract IDictionary<uint, float> RawPredictProbability(MatrixBase matrix, Location location)Parameters
matrixMatrixBase-
The matrix contains a face.
locationLocation-
The location rectangle for a face.
Returns
- IDictionary<uint, float>
-
Probabilities of age group of face image correspond to specified location in specified image.