Class LBPHFaceRecognizer
LBPH face recognizer
public class LBPHFaceRecognizer : FaceRecognizer, IDisposable
- Inheritance
-
LBPHFaceRecognizer
- Implements
- Inherited Members
Constructors
LBPHFaceRecognizer(int, int, int, int, double)
Create a LBPH face recognizer
public LBPHFaceRecognizer(int radius = 1, int neighbors = 8, int gridX = 8, int gridY = 8, double threshold = 1.7976931348623157E+308)
Parameters
radius
intRadius
neighbors
intNeighbors
gridX
intGrid X
gridY
intGrid Y
threshold
doubleThe distance threshold
Properties
Histograms
Get the histograms
public VectorOfMat Histograms { get; }
Property Value
Methods
DisposeObject()
Release the unmanaged memory associated with this FisherFaceRecognizer
protected override void DisposeObject()
Update(IInputArray, IInputArray)
Updates a FaceRecognizer with given data and associated labels.
public void Update(IInputArray images, IInputArray labels)
Parameters
images
IInputArrayThe training images, that means the faces you want to learn. The data has to be given as a VectorOfMat.
labels
IInputArrayThe labels corresponding to the images
Update(Mat[], int[])
Update the face recognizer with the specific images and labels
public void Update(Mat[] images, int[] labels)