Table of Contents

Enum ImagePaddingMode

Namespace
OpenCvSharp.Dnn
Assembly
OpenCvSharp.dll

Enum of image processing mode. To facilitate the specialization pre-processing requirements of the dnn model. For example, the letter box often used in the Yolo series of models.

public enum ImagePaddingMode

Fields

CROP_CENTER = 1

Crop after resize.

LETTERBOX = 2

Resize image to the desired size while preserving the aspect ratio of original image.

NULL = 0

Default. Resize to required input size without extra processing.