Package org.opencv.face
Class LBPHFaceRecognizer
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.face.FaceRecognizer
- 
- org.opencv.face.LBPHFaceRecognizer
 
 
 
- 
 public class LBPHFaceRecognizer extends FaceRecognizer 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedLBPHFaceRecognizer(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LBPHFaceRecognizer__fromPtr__(long addr)static LBPHFaceRecognizercreate()radius, the smoother the image but more spatial information you can get.static LBPHFaceRecognizercreate(int radius)static LBPHFaceRecognizercreate(int radius, int neighbors)static LBPHFaceRecognizercreate(int radius, int neighbors, int grid_x)static LBPHFaceRecognizercreate(int radius, int neighbors, int grid_x, int grid_y)static LBPHFaceRecognizercreate(int radius, int neighbors, int grid_x, int grid_y, double threshold)protected voidfinalize()intgetGridX()SEE: setGridXintgetGridY()SEE: setGridYjava.util.List<Mat>getHistograms()MatgetLabels()intgetNeighbors()SEE: setNeighborsintgetRadius()SEE: setRadiusdoublegetThreshold()SEE: setThresholdvoidsetGridX(int val)getGridX SEE: getGridXvoidsetGridY(int val)getGridY SEE: getGridYvoidsetNeighbors(int val)getNeighbors SEE: getNeighborsvoidsetRadius(int val)getRadius SEE: getRadiusvoidsetThreshold(double val)getThreshold SEE: getThreshold- 
Methods inherited from class org.opencv.face.FaceRecognizergetLabelInfo, getLabelsByString, predict, predict_collect, predict_label, read, setLabelInfo, train, update, write
 - 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static LBPHFaceRecognizer __fromPtr__(long addr) 
 - 
getLabelspublic Mat getLabels() 
 - 
createpublic static LBPHFaceRecognizer create(int radius, int neighbors, int grid_x, int grid_y, double threshold) - Parameters:
- radius- The radius used for building the Circular Local Binary Pattern. The greater the radius, the smoother the image but more spatial information you can get.
- neighbors- The number of sample points to build a Circular Local Binary Pattern from. An appropriate value is to use- 8sample points. Keep in mind: the more sample points you include, the higher the computational cost.
- grid_x- 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.
- grid_y- 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.
- threshold- The threshold applied in the prediction. If the distance to the nearest neighbor is larger than the threshold, this method returns -1. ### Notes:- 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.
 - radius see LBPHFaceRecognizer::create.
- neighbors see LBPHFaceRecognizer::create.
- grid_x see LLBPHFaceRecognizer::create.
- grid_y see LBPHFaceRecognizer::create.
- threshold see LBPHFaceRecognizer::create.
- histograms Local Binary Patterns Histograms calculated from the given training data (empty if none was given).
- labels Labels corresponding to the calculated Local Binary Patterns Histograms.
 
- Returns:
- automatically generated
 
 - 
createpublic static LBPHFaceRecognizer create(int radius, int neighbors, int grid_x, int grid_y) - Parameters:
- radius- The radius used for building the Circular Local Binary Pattern. The greater the radius, the smoother the image but more spatial information you can get.
- neighbors- The number of sample points to build a Circular Local Binary Pattern from. An appropriate value is to use- 8sample points. Keep in mind: the more sample points you include, the higher the computational cost.
- grid_x- 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.
- grid_y- 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. is larger than the threshold, this method returns -1. ### Notes:- 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.
 - radius see LBPHFaceRecognizer::create.
- neighbors see LBPHFaceRecognizer::create.
- grid_x see LLBPHFaceRecognizer::create.
- grid_y see LBPHFaceRecognizer::create.
- threshold see LBPHFaceRecognizer::create.
- histograms Local Binary Patterns Histograms calculated from the given training data (empty if none was given).
- labels Labels corresponding to the calculated Local Binary Patterns Histograms.
 
- Returns:
- automatically generated
 
 - 
createpublic static LBPHFaceRecognizer create(int radius, int neighbors, int grid_x) - Parameters:
- radius- The radius used for building the Circular Local Binary Pattern. The greater the radius, the smoother the image but more spatial information you can get.
- neighbors- The number of sample points to build a Circular Local Binary Pattern from. An appropriate value is to use- 8sample points. Keep in mind: the more sample points you include, the higher the computational cost.
- grid_x- 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. publications. The more cells, the finer the grid, the higher the dimensionality of the resulting feature vector. is larger than the threshold, this method returns -1. ### Notes:- 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.
 - radius see LBPHFaceRecognizer::create.
- neighbors see LBPHFaceRecognizer::create.
- grid_x see LLBPHFaceRecognizer::create.
- grid_y see LBPHFaceRecognizer::create.
- threshold see LBPHFaceRecognizer::create.
- histograms Local Binary Patterns Histograms calculated from the given training data (empty if none was given).
- labels Labels corresponding to the calculated Local Binary Patterns Histograms.
 
- Returns:
- automatically generated
 
 - 
createpublic static LBPHFaceRecognizer create(int radius, int neighbors) - Parameters:
- radius- The radius used for building the Circular Local Binary Pattern. The greater the radius, the smoother the image but more spatial information you can get.
- neighbors- The number of sample points to build a Circular Local Binary Pattern from. An appropriate value is to use- 8sample points. Keep in mind: the more sample points you include, the higher the computational cost. publications. The more cells, the finer the grid, the higher the dimensionality of the resulting feature vector. publications. The more cells, the finer the grid, the higher the dimensionality of the resulting feature vector. is larger than the threshold, this method returns -1. ### Notes:- 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.
 - radius see LBPHFaceRecognizer::create.
- neighbors see LBPHFaceRecognizer::create.
- grid_x see LLBPHFaceRecognizer::create.
- grid_y see LBPHFaceRecognizer::create.
- threshold see LBPHFaceRecognizer::create.
- histograms Local Binary Patterns Histograms calculated from the given training data (empty if none was given).
- labels Labels corresponding to the calculated Local Binary Patterns Histograms.
 
- Returns:
- automatically generated
 
 - 
createpublic static LBPHFaceRecognizer create(int radius) - Parameters:
- radius- The radius used for building the Circular Local Binary Pattern. The greater the radius, the smoother the image but more spatial information you can get. appropriate value is to use- 8sample points. Keep in mind: the more sample points you include, the higher the computational cost. publications. The more cells, the finer the grid, the higher the dimensionality of the resulting feature vector. publications. The more cells, the finer the grid, the higher the dimensionality of the resulting feature vector. is larger than the threshold, this method returns -1. ### Notes:- 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.
 - radius see LBPHFaceRecognizer::create.
- neighbors see LBPHFaceRecognizer::create.
- grid_x see LLBPHFaceRecognizer::create.
- grid_y see LBPHFaceRecognizer::create.
- threshold see LBPHFaceRecognizer::create.
- histograms Local Binary Patterns Histograms calculated from the given training data (empty if none was given).
- labels Labels corresponding to the calculated Local Binary Patterns Histograms.
 
- Returns:
- automatically generated
 
 - 
createpublic static LBPHFaceRecognizer create() radius, the smoother the image but more spatial information you can get. appropriate value is to use8sample points. Keep in mind: the more sample points you include, the higher the computational cost. publications. The more cells, the finer the grid, the higher the dimensionality of the resulting feature vector. publications. The more cells, the finer the grid, the higher the dimensionality of the resulting feature vector. is larger than the threshold, this method returns -1. ### Notes:- 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.
 - radius see LBPHFaceRecognizer::create.
- neighbors see LBPHFaceRecognizer::create.
- grid_x see LLBPHFaceRecognizer::create.
- grid_y see LBPHFaceRecognizer::create.
- threshold see LBPHFaceRecognizer::create.
- histograms Local Binary Patterns Histograms calculated from the given training data (empty if none was given).
- labels Labels corresponding to the calculated Local Binary Patterns Histograms.
 - Returns:
- automatically generated
 
 - 
getThresholdpublic double getThreshold() SEE: setThreshold- Returns:
- automatically generated
 
 - 
getGridXpublic int getGridX() SEE: setGridX- Returns:
- automatically generated
 
 - 
getGridYpublic int getGridY() SEE: setGridY- Returns:
- automatically generated
 
 - 
getNeighborspublic int getNeighbors() SEE: setNeighbors- Returns:
- automatically generated
 
 - 
getRadiuspublic int getRadius() SEE: setRadius- Returns:
- automatically generated
 
 - 
getHistogramspublic java.util.List<Mat> getHistograms() 
 - 
setGridXpublic void setGridX(int val) getGridX SEE: getGridX- Parameters:
- val- automatically generated
 
 - 
setGridYpublic void setGridY(int val) getGridY SEE: getGridY- Parameters:
- val- automatically generated
 
 - 
setNeighborspublic void setNeighbors(int val) getNeighbors SEE: getNeighbors- Parameters:
- val- automatically generated
 
 - 
setRadiuspublic void setRadius(int val) getRadius SEE: getRadius- Parameters:
- val- automatically generated
 
 - 
setThresholdpublic void setThreshold(double val) getThreshold SEE: getThreshold- Parameters:
- val- automatically generated
 
 - 
finalizeprotected void finalize() throws java.lang.Throwable- Overrides:
- finalizein class- FaceRecognizer
- Throws:
- java.lang.Throwable
 
 
- 
 
-