Table of Contents

Method Classify

Namespace
OpenCvSharp.Dnn
Assembly
OpenCvSharp.dll

Classify(InputArray, out int, out float)

Given the @p input frame, create input blob, run net and return top-1 prediction.

public void Classify(InputArray frame, out int classId, out float conf)

Parameters

frame InputArray

The input image.

classId int

Top-1 predicted class id.

conf float

Top-1 prediction confidence.