Class ClassificationModel
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
NetDNN Network
ClassificationModel(string, string)
Create a new classification model
public ClassificationModel(string model, string config = null)
Parameters
model
stringBinary file contains trained weights.
config
stringText 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
IInputArrayThe input image.
classId
intThe top label.
conf
floatThe confident of the classification.
DisposeObject()
Release the memory associated with this detection model.
protected override void DisposeObject()