Show / Hide Table of Contents

Class SimpleFaceDetector

The face detector which was trained by custom dataset. This class cannot be inherited.

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

Constructors

| Improve this Doc View Source

SimpleFaceDetector(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 Source

DisposeUnmanaged()

Releases all unmanaged resources.

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableObject.DisposeUnmanaged()
| Improve this Doc View Source

RawDetect(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
FaceDetector.RawDetect(MatrixBase, Int32)

Implements

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