Class SimpleHeadPoseEstimator
The head pose estimator which was trained by 300W-LP dataset. This class cannot be inherited.
Implements
System.IDisposable
Inherited Members
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 SourceSimpleHeadPoseEstimator(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 |
|
Methods
| Improve this Doc View SourceDisposeUnmanaged()
Releases all unmanaged resources.
Declaration
protected override void DisposeUnmanaged()
Overrides
| Improve this Doc View SourceRawPredict(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
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentException |
|
Implements
System.IDisposable