Table of Contents

Class ClassificationModel

Namespace
Emgu.CV.Dnn
Assembly
Emgu.CV.dll

This class represents high-level API for classification models.

public class ClassificationModel : Model, IDisposable
Inheritance
ClassificationModel
Implements
Inherited Members

Constructors

ClassificationModel(Net)

Create model from deep learning network.

public ClassificationModel(Net net)

Parameters

net Net

DNN Network

ClassificationModel(string, string)

Create a new classification model

public ClassificationModel(string model, string config = null)

Parameters

model string

Binary file contains trained weights.

config string

Text file contains network configuration.

Methods

Classify(IInputArray, out int, out float)

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

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

Parameters

frame IInputArray

The input image.

classId int

The top label.

conf float

The confident of the classification.

DisposeObject()

Release the memory associated with this detection model.

protected override void DisposeObject()