Table of Contents

Method Forward

Namespace
OpenCvSharp.Dnn
Assembly
OpenCvSharp.dll

Forward(string?)

Runs forward pass to compute output of layer with name @p outputName. By default runs forward pass for the whole network.

public Mat Forward(string? outputName = null)

Parameters

outputName string

name for layer which output is needed to get

Returns

Mat

blob for first output of specified layer.

Remarks

The returned matrix preserves FP16 and BF16 output depths declared by the model.

Forward(IEnumerable<Mat>, string?)

Runs forward pass to compute output of layer with name @p outputName.

public void Forward(IEnumerable<Mat> outputBlobs, string? outputName = null)

Parameters

outputBlobs IEnumerable<Mat>

contains all output blobs for specified layer.

outputName string

name for layer which output is needed to get. If outputName is empty, runs forward pass for the whole network.

Forward(IEnumerable<Mat>, IEnumerable<string>)

Runs forward pass to compute outputs of layers listed in @p outBlobNames.

public void Forward(IEnumerable<Mat> outputBlobs, IEnumerable<string> outBlobNames)

Parameters

outputBlobs IEnumerable<Mat>

contains blobs for first outputs of specified layers.

outBlobNames IEnumerable<string>

names for layers which outputs are needed to get