| EigenFaceRecognizerCreate Method |
Training and prediction must be done on grayscale images, use cvtColor to convert between the
color spaces.
- **THE EIGENFACES METHOD MAKES THE ASSUMPTION, THAT THE TRAINING AND TEST IMAGES ARE OF EQUAL SIZE.
** (caps-lock, because I got so many mails asking for this). You have to make sure your
input data has the correct shape, else a meaningful exception is thrown.Use resize to resize the images.
- This model does not support updating.
Namespace:
OpenCvSharp.Face
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static EigenFaceRecognizer Create(
int numComponents = 0,
double threshold = 1.79769313486232E+308
)
Public Shared Function Create (
Optional numComponents As Integer = 0,
Optional threshold As Double = 1.79769313486232E+308
) As EigenFaceRecognizer
public:
static EigenFaceRecognizer^ Create(
int numComponents = 0,
double threshold = 1.79769313486232E+308
)
static member Create :
?numComponents : int *
?threshold : float
(* Defaults:
let _numComponents = defaultArg numComponents 0
let _threshold = defaultArg threshold 1.79769313486232E+308
*)
-> EigenFaceRecognizer
Parameters
- numComponents (Optional)
- Type: SystemInt32
The number of components (read: Eigenfaces) kept for this Principal Component Analysis.
As a hint: There's no rule how many components (read: Eigenfaces) should be kept for good reconstruction capabilities.
It is based on your input data, so experiment with the number. Keeping 80 components should almost always be sufficient. - threshold (Optional)
- Type: SystemDouble
The threshold applied in the prediction.
Return Value
Type:
EigenFaceRecognizer[Missing <returns> documentation for "M:OpenCvSharp.Face.EigenFaceRecognizer.Create(System.Int32,System.Double)"]
See Also