Show / Hide Table of Contents

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
DisposableObject
DisposableCvObject
Algorithm
FaceRecognizer
LBPHFaceRecognizer
Implements
ICvPtrHolder
Inherited Members
FaceRecognizer.Train(IEnumerable<Mat>, IEnumerable<Int32>)
FaceRecognizer.Update(IEnumerable<Mat>, IEnumerable<Int32>)
FaceRecognizer.Predict(InputArray)
FaceRecognizer.Predict(InputArray, Int32, Double)
FaceRecognizer.Write(String)
FaceRecognizer.Read(String)
FaceRecognizer.Write(FileStorage)
FaceRecognizer.Read(FileNode)
FaceRecognizer.SetLabelInfo(Int32, String)
FaceRecognizer.GetLabelInfo(Int32)
FaceRecognizer.GetLabelsByString(String)
Algorithm.Empty
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp.Face
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
Type Description
LBPHFaceRecognizer
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

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

DisposeUnmanaged()

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

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr
| 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
Type Description
Mat[]
| Improve this Doc View Source

GetLabels()

Declaration
public virtual Mat GetLabels()
Returns
Type Description
Mat
| 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

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX