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 = 1Crop after resize.
LETTERBOX = 2Resize image to the desired size while preserving the aspect ratio of original image.
NULL = 0Default. Resize to required input size without extra processing.