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, IDisposableInheritance
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
rollModelFilestring-
The model file path to estimate roll angle.
pitchModelFilestring-
The model file path to estimate pitch angle.
yawModelFilestring-
The model file path to estimate yaw angle.
Exceptions
- FileNotFoundException
-
rollModelFile,pitchModelFileoryawModelFiledoes 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
landmarkIDictionary<FacePart, IEnumerable<FacePoint>>-
The dictionary of face parts locations (eyes, nose, etc).
Returns
- HeadPose
-
A head pose estimated from face parts locations.
Exceptions
- ArgumentNullException
-
landmarkis null. - ArgumentException
-
landmarkdoes not have 68 points.