C# Class OpenCvSharp.Face.FaceRecognizer

Inheritance: Algorithm
ファイルを表示 Open project: shimat/opencvsharp Class Usage Examples

Public Methods

Method Description
CreateEigenFaceRecognizer ( int numComponents, double threshold = Double.MaxValue ) : FaceRecognizer

CreateFisherFaceRecognizer ( int numComponents, double threshold = Double.MaxValue ) : FaceRecognizer

CreateLBPHFaceRecognizer ( int radius = 1, int neighbors = 8, int gridX = 8, int gridY = 8, double threshold = Double.MaxValue ) : FaceRecognizer

Load ( FileStorage fs ) : void

Deserializes this object from a given cv::FileStorage.

Load ( string fileName ) : void

Deserializes this object from a given filename.

Predict ( InputArray src ) : int

Gets a prediction from a FaceRecognizer.

Predict ( InputArray src, int &label, double &confidence ) : void

Predicts the label and confidence for a given sample.

Save ( FileStorage fs ) : void

Serializes this object to a given cv::FileStorage.

Save ( string fileName ) : void

Serializes this object to a given filename.

Train ( IEnumerable src, IEnumerable labels ) : void

Trains a FaceRecognizer.

Update ( IEnumerable src, IEnumerable labels ) : void

Updates a FaceRecognizer.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the resources

FaceRecognizer ( ) : System

Private Methods

Method Description
FromPtr ( IntPtr ptr ) : FaceRecognizer

Creates instance from cv::Ptr<T> . ptr is disposed when the wrapper disposes.

Method Details

CreateEigenFaceRecognizer() public static method

public static CreateEigenFaceRecognizer ( int numComponents, double threshold = Double.MaxValue ) : FaceRecognizer
numComponents int
threshold double
return FaceRecognizer

CreateFisherFaceRecognizer() public static method

public static CreateFisherFaceRecognizer ( int numComponents, double threshold = Double.MaxValue ) : FaceRecognizer
numComponents int
threshold double
return FaceRecognizer

CreateLBPHFaceRecognizer() public static method

public static CreateLBPHFaceRecognizer ( int radius = 1, int neighbors = 8, int gridX = 8, int gridY = 8, double threshold = Double.MaxValue ) : FaceRecognizer
radius int
neighbors int
gridX int
gridY int
threshold double
return FaceRecognizer

Dispose() protected method

Releases the resources
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
return void

FaceRecognizer() protected method

protected FaceRecognizer ( ) : System
return System

Load() public method

Deserializes this object from a given cv::FileStorage.
public Load ( FileStorage fs ) : void
fs FileStorage
return void

Load() public method

Deserializes this object from a given filename.
public Load ( string fileName ) : void
fileName string
return void

Predict() public method

Gets a prediction from a FaceRecognizer.
public Predict ( InputArray src ) : int
src InputArray
return int

Predict() public method

Predicts the label and confidence for a given sample.
public Predict ( InputArray src, int &label, double &confidence ) : void
src InputArray
label int
confidence double
return void

Save() public method

Serializes this object to a given cv::FileStorage.
public Save ( FileStorage fs ) : void
fs FileStorage
return void

Save() public method

Serializes this object to a given filename.
public Save ( string fileName ) : void
fileName string
return void

Train() public method

Trains a FaceRecognizer.
public Train ( IEnumerable src, IEnumerable labels ) : void
src IEnumerable
labels IEnumerable
return void

Update() public method

Updates a FaceRecognizer.
public Update ( IEnumerable src, IEnumerable labels ) : void
src IEnumerable
labels IEnumerable
return void