Table of Contents

Constructor Model

Namespace
OpenCvSharp.Dnn
Assembly
OpenCvSharp.dll

Model()

For derived classes that construct the native object themselves.

protected Model()

Model(string, string?)

Create model from deep learning network represented in one of the supported formats. An order of @p model and @p config arguments does not matter.

public Model(string model, string? config = null)

Parameters

model string

Binary file contains trained weights.

config string

Text file contains network configuration.

Model(Net)

Create model from deep learning network.

public Model(Net network)

Parameters

network Net

Net object.