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
samplesInputArrayThe 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.
resultsOutputArrayPredicted labels as a column matrix of type CV_32S.
flagsintNot used.