public class FisherFaceRecognizer extends BasicFaceRecognizer
| Modifier | Constructor and Description |
|---|---|
protected |
FisherFaceRecognizer(long addr) |
| Modifier and Type | Method and Description |
|---|---|
static FisherFaceRecognizer |
__fromPtr__(long addr) |
static FisherFaceRecognizer |
create()
Discriminant Analysis with the Fisherfaces criterion.
|
static FisherFaceRecognizer |
create(int num_components) |
static FisherFaceRecognizer |
create(int num_components,
double threshold) |
protected void |
finalize() |
getEigenValues, getEigenVectors, getLabels, getMean, getNumComponents, getProjections, getThreshold, setNumComponents, setThresholdgetLabelInfo, getLabelsByString, predict_collect, predict_label, predict, read, setLabelInfo, train, update, writeclear, empty, getDefaultName, getNativeObjAddr, savepublic static FisherFaceRecognizer __fromPtr__(long addr)
public static FisherFaceRecognizer create(int num_components, double threshold)
num_components - The number of components (read: Fisherfaces) kept for this Linear
Discriminant Analysis with the Fisherfaces criterion. It's useful to keep all components, that
means the number of your classes c (read: subjects, persons you want to recognize). If you leave
this at the default (0) or set it to a value less-equal 0 or greater (c-1), it will be set to the
correct number (c-1) automatically.threshold - The threshold applied in the prediction. If the distance to the nearest neighbor
is larger than the threshold, this method returns -1.
### Notes:
public static FisherFaceRecognizer create(int num_components)
num_components - The number of components (read: Fisherfaces) kept for this Linear
Discriminant Analysis with the Fisherfaces criterion. It's useful to keep all components, that
means the number of your classes c (read: subjects, persons you want to recognize). If you leave
this at the default (0) or set it to a value less-equal 0 or greater (c-1), it will be set to the
correct number (c-1) automatically.
is larger than the threshold, this method returns -1.
### Notes:
public static FisherFaceRecognizer create()
protected void finalize()
throws Throwable
finalize in class BasicFaceRecognizerThrowableCopyright © 2020. All rights reserved.