Table of Contents

Class SimpleGenderEstimator

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

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

public sealed class SimpleGenderEstimator : GenderEstimator, IDisposable

Inheritance

Implements

Inherited Members

Constructors

SimpleGenderEstimator(string)

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

public SimpleGenderEstimator(string modelPath)

Parameters

modelPath string

The model file path that this estimator uses.

Exceptions

FileNotFoundException

The model file is not found.

Properties

Labels

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

public override Gender[] Labels { get; }

Property Value

Gender[]

Methods

DisposeUnmanaged()

Releases all unmanaged resources.

protected override void DisposeUnmanaged()

RawPredict(MatrixBase, Location)

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

protected override Gender RawPredict(MatrixBase matrix, Location location)

Parameters

matrix MatrixBase

The matrix contains a face.

location Location

The location rectangle for a face.

Returns

Gender

An gender of face image correspond to specified location in specified image.

RawPredictProbability(MatrixBase, Location)

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

protected override IDictionary<Gender, float> RawPredictProbability(MatrixBase matrix, Location location)

Parameters

matrix MatrixBase

The matrix contains a face.

location Location

The location rectangle for a face.

Returns

IDictionary<Gender, float>

Probabilities of gender of face image correspond to specified location in specified image.