FaceRecognizerTrainTColor, TDepth Method (ImageTColor, TDepth, Int32) |
http://www.emgu.com
Train the face recognizer with the specific images and labels
Namespace: Emgu.CV.FaceAssembly: Emgu.CV.Contrib (in Emgu.CV.Contrib.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic void Train<TColor, TDepth>(
Image<TColor, TDepth>[] images,
int[] labels
)
where TColor : struct, new(), IColor
where TDepth : new()
Public Sub Train(Of TColor As {Structure, New, IColor}, TDepth As New) (
images As Image(Of TColor, TDepth)(),
labels As Integer()
)
public:
generic<typename TColor, typename TDepth>
where TColor : value class, gcnew(), IColor
where TDepth : gcnew()
void Train(
array<Image<TColor, TDepth>^>^ images,
array<int>^ labels
)
member Train :
images : Image<'TColor, 'TDepth>[] *
labels : int[] -> unit when 'TColor : struct, new() and IColor when 'TDepth : new()
Parameters
- images
- Type: Emgu.CVImageTColor, TDepth
The images used in the training. - labels
- Type: SystemInt32
The labels of the images.
Type Parameters
- TColor
[Missing <typeparam name="TColor"/> documentation for "M:Emgu.CV.Face.FaceRecognizer.Train``2(Emgu.CV.Image{``0,``1}[],System.Int32[])"]
- TDepth
[Missing <typeparam name="TDepth"/> documentation for "M:Emgu.CV.Face.FaceRecognizer.Train``2(Emgu.CV.Image{``0,``1}[],System.Int32[])"]
See Also