Table of Contents

Method Predict

Namespace
OpenCvSharp.ML
Assembly
OpenCvSharp.dll

Predict(InputArray, OutputArray, int)

Predicts responses for input samples and returns a float type.

public float Predict(InputArray samples, OutputArray results = default, int flags = 0)

Parameters

samples InputArray

The input data for the prediction algorithm. Matrix [m x n], where each row contains variables (features) of one object being classified. Should have data type CV_32F.

results OutputArray

Predicted labels as a column matrix of type CV_32S.

flags int

Not used.

Returns

float