Click or drag to resize

StatModelTrain Method (TrainData, Int32)

Trains the statistical model

Namespace:  OpenCvSharp.ML
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public virtual bool Train(
	TrainData trainData,
	int flags = 0
)

Parameters

trainData
Type: OpenCvSharp.MLTrainData
training data that can be loaded from file using TrainData::loadFromCSV or created with TrainData::create.
flags (Optional)
Type: SystemInt32
optional flags, depending on the model. Some of the models can be updated with the new training samples, not completely overwritten (such as NormalBayesClassifier or ANN_MLP).

Return Value

Type: Boolean
See Also