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
outputNamestringname for layer which output is needed to get
Returns
- Mat
blob for first output of specified layer.
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
outputBlobsIEnumerable<Mat>contains all output blobs for specified layer.
outputNamestringname 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
outputBlobsIEnumerable<Mat>contains blobs for first outputs of specified layers.
outBlobNamesIEnumerable<string>names for layers which outputs are needed to get