Table of Contents

Method SetInputParams

Namespace
OpenCvSharp.Dnn
Assembly
OpenCvSharp.dll

SetInputParams(double, Size?, Scalar?, bool, bool)

Set preprocessing parameters for frame.

public void SetInputParams(double scale = 1, Size? size = null, Scalar? mean = null, bool swapRB = false, bool crop = false)

Parameters

scale double

Multiplier for frame values.

size Size?

New input size.

mean Scalar?

Scalar with mean values which are subtracted from channels.

swapRB bool

Flag which indicates that swap first and last channels.

crop bool

Flag which indicates whether image will be cropped after resize or not.