Table of Contents

Class SimpleAgeEstimator

Namespace
FaceRecognitionDotNet.Extensions
Assembly
VisioForge.Core.FaceAI.dll

The age estimator which was trained by Adience dataset. This class cannot be inherited.

public sealed class SimpleAgeEstimator : AgeEstimator, IDisposable

Inheritance

Implements

Inherited Members

Constructors

SimpleAgeEstimator(string)

Initializes a new instance of the FaceRecognitionDotNet.Extensions.SimpleAgeEstimator class with the model file path that this estimator uses.

public SimpleAgeEstimator(string modelPath)

Parameters

modelPath string

The model file path that this estimator uses.

Exceptions

FileNotFoundException

The model file is not found.

Properties

Groups

Gets the collection of age group this estimator returns in derived classes.

public override AgeRange[] Groups { get; }

Property Value

AgeRange[]

Methods

DisposeUnmanaged()

Releases all unmanaged resources.

protected override void DisposeUnmanaged()

RawPredict(MatrixBase, Location)

Returns an index of age group of face image correspond to specified location in specified image.

protected override uint RawPredict(MatrixBase matrix, Location location)

Parameters

matrix MatrixBase

The matrix contains a face.

location Location

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 override IDictionary<uint, float> RawPredictProbability(MatrixBase matrix, Location location)

Parameters

matrix MatrixBase

The matrix contains a face.

location Location

The location rectangle for a face.

Returns

IDictionary<uint, float>

Probabilities of age group of face image correspond to specified location in specified image.