Show / Hide Table of Contents

Class SimpleHeadPoseEstimator

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

Inheritance
System.Object
DisposableObject
HeadPoseEstimator
SimpleHeadPoseEstimator
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 SimpleHeadPoseEstimator : HeadPoseEstimator, IDisposable

Constructors

| Improve this Doc View Source

SimpleHeadPoseEstimator(String, String, String)

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

Declaration
public SimpleHeadPoseEstimator(string rollModelFile, string pitchModelFile, string yawModelFile)
Parameters
Type Name Description
System.String rollModelFile

The model file path to estimate roll angle.

System.String pitchModelFile

The model file path to estimate pitch angle.

System.String yawModelFile

The model file path to estimate yaw angle.

Exceptions
Type Condition
System.IO.FileNotFoundException

rollModelFile, pitchModelFile or yawModelFile does not exist.

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(IDictionary<FacePart, IEnumerable<FacePoint>>)

Returns a head pose estimated from face parts locations.

Declaration
protected override HeadPose RawPredict(IDictionary<FacePart, IEnumerable<FacePoint>> landmark)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<FacePart, System.Collections.Generic.IEnumerable<FacePoint>> landmark

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

Returns
Type Description
HeadPose

A head pose estimated from face parts locations.

Overrides
HeadPoseEstimator.RawPredict(IDictionary<FacePart, IEnumerable<FacePoint>>)
Exceptions
Type Condition
System.ArgumentNullException

landmark is null.

System.ArgumentException

landmark does not have 68 points.

Implements

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