Table of Contents

Class SimpleFaceDetector

Namespace
FaceRecognitionDotNet.Extensions
Assembly
VisioForge.Core.FaceAI.dll

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

public sealed class SimpleFaceDetector : FaceDetector, IDisposable

Inheritance

Implements

Inherited Members

Constructors

SimpleFaceDetector(string)

Initializes a new instance of the FaceRecognitionDotNet.Extensions.SimpleFaceDetector class with the model file path that this detector uses.

public SimpleFaceDetector(string modelPath)

Parameters

modelPath string

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, int)

Returns an enumerable collection of face location correspond to all faces in specified image.

protected override IEnumerable<Location> RawDetect(MatrixBase matrix, int numberOfTimesToUpsample)

Parameters

matrix MatrixBase

The matrix contains a face.

numberOfTimesToUpsample int

The number of times to up-sample the image when finding faces.

Returns

IEnumerable<Location>

An enumerable collection of face location correspond to all faces.