Table of Contents

Class SimpleHeadPoseEstimator

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

The head pose estimator which was trained by 300W-LP dataset. This class cannot be inherited.

public sealed class SimpleHeadPoseEstimator : HeadPoseEstimator, IDisposable

Inheritance

Implements

Inherited Members

Constructors

SimpleHeadPoseEstimator(string, string, string)

Initializes a new instance of the FaceRecognitionDotNet.Extensions.SimpleHeadPoseEstimator class with the model files to estimate head pose.

public SimpleHeadPoseEstimator(string rollModelFile, string pitchModelFile, string yawModelFile)

Parameters

rollModelFile string

The model file path to estimate roll angle.

pitchModelFile string

The model file path to estimate pitch angle.

yawModelFile string

The model file path to estimate yaw angle.

Exceptions

FileNotFoundException

rollModelFile, pitchModelFile or yawModelFile does not exist.

Methods

DisposeUnmanaged()

Releases all unmanaged resources.

protected override void DisposeUnmanaged()

RawPredict(IDictionary<FacePart, IEnumerable<FacePoint>>)

Returns a head pose estimated from face parts locations.

protected override HeadPose RawPredict(IDictionary<FacePart, IEnumerable<FacePoint>> landmark)

Parameters

landmark IDictionary<FacePart, IEnumerable<FacePoint>>

The dictionary of face parts locations (eyes, nose, etc).

Returns

HeadPose

A head pose estimated from face parts locations.

Exceptions

ArgumentNullException

landmark is null.

ArgumentException

landmark does not have 68 points.