| FaceRecognizerTrain Method |
Trains a FaceRecognizer with given data and associated labels.
Namespace:
OpenCvSharp.Face
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public virtual void Train(
IEnumerable<Mat> src,
IEnumerable<int> labels
)
Public Overridable Sub Train (
src As IEnumerable(Of Mat),
labels As IEnumerable(Of Integer)
)
public:
virtual void Train(
IEnumerable<Mat^>^ src,
IEnumerable<int>^ labels
)
abstract Train :
src : IEnumerable<Mat> *
labels : IEnumerable<int> -> unit
override Train :
src : IEnumerable<Mat> *
labels : IEnumerable<int> -> unit
Parameters
- src
- Type: System.Collections.GenericIEnumerableMat
[Missing <param name="src"/> documentation for "M:OpenCvSharp.Face.FaceRecognizer.Train(System.Collections.Generic.IEnumerable{OpenCvSharp.Mat},System.Collections.Generic.IEnumerable{System.Int32})"]
- labels
- Type: System.Collections.GenericIEnumerableInt32
[Missing <param name="labels"/> documentation for "M:OpenCvSharp.Face.FaceRecognizer.Train(System.Collections.Generic.IEnumerable{OpenCvSharp.Mat},System.Collections.Generic.IEnumerable{System.Int32})"]
See Also