Show / Hide Table of Contents

Class SimpleGenderEstimator

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

Inheritance
System.Object
DisposableObject
GenderEstimator
SimpleGenderEstimator
Implements
System.IDisposable
Inherited Members
DisposableObject.IsDisposed
DisposableObject.ThrowIfDisposed()
DisposableObject.DisposeManaged()
DisposableObject.Dispose()
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 sealed class SimpleGenderEstimator : GenderEstimator, IDisposable

Constructors

| Improve this Doc View Source

SimpleGenderEstimator(String)

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

Declaration
public SimpleGenderEstimator(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 Source

Labels

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

Declaration
public override Gender[] Labels { get; }
Property Value
Type Description
Gender[]
Overrides
GenderEstimator.Labels

Methods

| Improve this Doc View Source

DisposeUnmanaged()

Releases all unmanaged resources.

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableObject.DisposeUnmanaged()
| Improve this Doc View Source

RawPredict(MatrixBase, Location)

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

Declaration
protected override Gender 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
Gender

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

Overrides
GenderEstimator.RawPredict(MatrixBase, Location)
| Improve this Doc View Source

RawPredictProbability(MatrixBase, Location)

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

Declaration
protected override IDictionary<Gender, 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<Gender, System.Single>

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

Overrides
GenderEstimator.RawPredictProbability(MatrixBase, Location)

Implements

System.IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX