Click or drag to resize

StatModelTrain Method (TrainData, Int32)

Trains the statistical model

Namespace:  OpenCvSharp.ML
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
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

[Missing <returns> documentation for "M:OpenCvSharp.ML.StatModel.Train(OpenCvSharp.ML.TrainData,System.Int32)"]

See Also