Class SimpleFaceDetector
The face detector which was trained by custom 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 SimpleFaceDetector : FaceDetector, IDisposable
Constructors
| Improve this Doc View SourceSimpleFaceDetector(String)
Initializes a new instance of the SimpleFaceDetector class with the model file path that this detector uses.
Declaration
public SimpleFaceDetector(string modelPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | modelPath | The model file path that this detector uses. |
Exceptions
Type | Condition |
---|---|
System.IO.FileNotFoundException | The model file is not found. |
Methods
| Improve this Doc View SourceDisposeUnmanaged()
Releases all unmanaged resources.
Declaration
protected override void DisposeUnmanaged()
Overrides
| Improve this Doc View SourceRawDetect(MatrixBase, Int32)
Returns an enumerable collection of face location correspond to all faces in specified image.
Declaration
protected override IEnumerable<Location> RawDetect(MatrixBase matrix, int numberOfTimesToUpsample)
Parameters
Type | Name | Description |
---|---|---|
MatrixBase | matrix | The matrix contains a face. |
System.Int32 | numberOfTimesToUpsample | The number of times to up-sample the image when finding faces. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Location> | An enumerable collection of face location correspond to all faces. |
Overrides
Implements
System.IDisposable