dnn_LossReduction
import { dnn_LossReduction } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSConstructor or factory
CLASSdnn_LossReduction
RETURN TYPEOwned native handle
Native object: release it with using or delete(). Factories can return null; check before calling methods.
Shared reduction enum for DNN loss layers
Constructors and members
static LOSS_REDUCTION_NONE
loss reduction none constant (0), defined by OpenCV for cv::dnn.
LOSS_REDUCTION_NONE: dnn_LossReductionValue<0>,static LOSS_REDUCTION_MEAN
loss reduction mean constant (1), defined by OpenCV for cv::dnn.
LOSS_REDUCTION_MEAN: dnn_LossReductionValue<1>,static LOSS_REDUCTION_SUM
loss reduction sum constant (2), defined by OpenCV for cv::dnn.
LOSS_REDUCTION_SUM: dnn_LossReductionValue<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.