Class HelenFaceLandmarkDetector
- Namespace
- FaceRecognitionDotNet.Extensions
- Assembly
- VisioForge.Core.FaceAI.dll
The face landmark detector which was trained by helen dataset. This class cannot be inherited.
public sealed class HelenFaceLandmarkDetector : FaceLandmarkDetector, IDisposableInheritance
Implements
Inherited Members
Constructors
HelenFaceLandmarkDetector(string)
Initializes a new instance of the FaceRecognitionDotNet.Extensions.HelenFaceLandmarkDetector class with the model file path that this detector uses.
public HelenFaceLandmarkDetector(string modelPath)Parameters
modelPathstring-
The model file path that this detector uses.
Exceptions
- FileNotFoundException
-
The model file is not found.
Methods
DisposeUnmanaged()
Releases all unmanaged resources.
protected override void DisposeUnmanaged()RawDetect(MatrixBase, Location)
Returns an object contains information of face parts corresponds to specified location in specified image.
protected override FullObjectDetection RawDetect(MatrixBase matrix, Location location)Parameters
matrixMatrixBase-
The matrix contains a face.
locationLocation-
The location rectangle for a face.
Returns
- FullObjectDetection
-
An object contains information of face parts.
RawGetLandmarks(IEnumerable<FacePoint[]>)
Returns an enumerable collection of dictionary of face parts locations (eyes, nose, etc).
protected override IEnumerable<Dictionary<FacePart, IEnumerable<FacePoint>>> RawGetLandmarks(IEnumerable<FacePoint[]> landmarkTuples)Parameters
landmarkTuplesIEnumerable<FacePoint[]>-
The enumerable collection of face parts location.
Returns
- IEnumerable<Dictionary<FacePart, IEnumerable<FacePoint>>>
-
An enumerable collection of dictionary of face parts locations (eyes, nose, etc).