dnn_ImagePaddingMode
import { dnn_ImagePaddingMode } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods.
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.
See: Image2BlobParams
Constructors and members
static DNN_PMODE_NULL
!< Default. Resize to required input size without extra processing.
DNN_PMODE_NULL: dnn_ImagePaddingModeValue<0>,static DNN_PMODE_CROP_CENTER
!< Image will be cropped after resize.
DNN_PMODE_CROP_CENTER: dnn_ImagePaddingModeValue<1>,static DNN_PMODE_LETTERBOX
!< Resize image to the desired size while preserving the aspect ratio of original image.
DNN_PMODE_LETTERBOX: dnn_ImagePaddingModeValue<2>These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.