Skip to content

dnn_ActivationType

Deep neural networksclassOpenCV 5.0.0
import { dnn_ActivationType } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSdnn_ActivationType
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

Activation type enumeration for dispatched activation function retrieval.

Constructors and members

static ACTIV_NONE

activ none constant (0), defined by OpenCV for cv::dnn.

ACTIV_NONE: dnn_ActivationTypeValue<0>,

static ACTIV_MISH

activ mish constant (0+1), defined by OpenCV for cv::dnn.

ACTIV_MISH: dnn_ActivationTypeValue<1>,

static ACTIV_SWISH

activ swish constant (0+2), defined by OpenCV for cv::dnn.

ACTIV_SWISH: dnn_ActivationTypeValue<2>,

static ACTIV_SIGMOID

activ sigmoid constant (0+3), defined by OpenCV for cv::dnn.

ACTIV_SIGMOID: dnn_ActivationTypeValue<3>,

static ACTIV_TANH

activ tanh constant (0+4), defined by OpenCV for cv::dnn.

ACTIV_TANH: dnn_ActivationTypeValue<4>,

static ACTIV_ELU

activ elu constant (0+5), defined by OpenCV for cv::dnn.

ACTIV_ELU: dnn_ActivationTypeValue<5>,

static ACTIV_HARDSWISH

activ hardswish constant (0+6), defined by OpenCV for cv::dnn.

ACTIV_HARDSWISH: dnn_ActivationTypeValue<6>,

static ACTIV_HARDSIGMOID

activ hardsigmoid constant (0+7), defined by OpenCV for cv::dnn.

ACTIV_HARDSIGMOID: dnn_ActivationTypeValue<7>,

static ACTIV_GELU

activ gelu constant (0+8), defined by OpenCV for cv::dnn.

ACTIV_GELU: dnn_ActivationTypeValue<8>,

static ACTIV_GELU_APPROX

activ gelu approx constant (0+9), defined by OpenCV for cv::dnn.

ACTIV_GELU_APPROX: dnn_ActivationTypeValue<9>,

static ACTIV_RELU

activ relu constant (0+10), defined by OpenCV for cv::dnn.

ACTIV_RELU: dnn_ActivationTypeValue<10>,

static ACTIV_CLIP

activ clip constant (0+11), defined by OpenCV for cv::dnn.

ACTIV_CLIP: dnn_ActivationTypeValue<11>

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.