Class LBPHFaceRecognizer
The Circular Local Binary Patterns (used in training and prediction) expect the data given as
grayscale images, use cvtColor to convert between the color spaces.
This model supports updating.
Inheritance
System.Object
LBPHFaceRecognizer
Assembly: OpenCvSharp.dll
Syntax
public class LBPHFaceRecognizer : FaceRecognizer, ICvPtrHolder
Constructors
|
Improve this Doc
View Source
LBPHFaceRecognizer()
Declaration
protected LBPHFaceRecognizer()
Methods
|
Improve this Doc
View Source
Create(Int32, Int32, Int32, Int32, Double)
The Circular Local Binary Patterns (used in training and prediction) expect the data given as
grayscale images, use cvtColor to convert between the color spaces.
This model supports updating.
Declaration
public static LBPHFaceRecognizer Create(int radius = 1, int neighbors = 8, int gridX = 8, int gridY = 8, double threshold = 1.7976931348623157E+308)
Parameters
Type |
Name |
Description |
System.Int32 |
radius |
The radius used for building the Circular Local Binary Pattern. The greater the radius, the
|
System.Int32 |
neighbors |
The number of sample points to build a Circular Local Binary Pattern from.
An appropriate value is to use 8 sample points.Keep in mind: the more sample points you include, the higher the computational cost.
|
System.Int32 |
gridX |
The number of cells in the horizontal direction, 8 is a common value used in publications.
The more cells, the finer the grid, the higher the dimensionality of the resulting feature vector.
|
System.Int32 |
gridY |
The number of cells in the vertical direction, 8 is a common value used in publications.
The more cells, the finer the grid, the higher the dimensionality of the resulting feature vector.
|
System.Double |
threshold |
The threshold applied in the prediction. If the distance to the nearest neighbor
is larger than the threshold, this method returns -1.
|
Returns
|
Improve this Doc
View Source
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
|
Improve this Doc
View Source
GetGridX()
Declaration
public virtual int GetGridX()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetGridY()
Declaration
public virtual int GetGridY()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetHistograms()
Declaration
public virtual Mat[] GetHistograms()
Returns
|
Improve this Doc
View Source
GetLabels()
Declaration
public virtual Mat GetLabels()
Returns
|
Improve this Doc
View Source
GetNeighbors()
Declaration
public virtual int GetNeighbors()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetRadius()
Declaration
public virtual int GetRadius()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetThreshold()
Declaration
public virtual double GetThreshold()
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
SetGridX(Int32)
Declaration
public virtual void SetGridX(int val)
Parameters
Type |
Name |
Description |
System.Int32 |
val |
|
|
Improve this Doc
View Source
SetGridY(Int32)
Declaration
public virtual void SetGridY(int val)
Parameters
Type |
Name |
Description |
System.Int32 |
val |
|
|
Improve this Doc
View Source
SetNeighbors(Int32)
Declaration
public virtual void SetNeighbors(int val)
Parameters
Type |
Name |
Description |
System.Int32 |
val |
|
|
Improve this Doc
View Source
SetRadius(Int32)
Declaration
public virtual void SetRadius(int val)
Parameters
Type |
Name |
Description |
System.Int32 |
val |
|
|
Improve this Doc
View Source
SetThreshold(Double)
Declaration
public virtual void SetThreshold(double val)
Parameters
Type |
Name |
Description |
System.Double |
val |
|
Implements