Table of Contents

Enum Backend

Namespace
OpenCvSharp.Dnn
Assembly
OpenCvSharp.dll

Enum of computation backends supported by layers.

public enum Backend

Fields

CANN = 8
CUDA = 5
DEFAULT = 0
[Obsolete("The Halide backend was removed in OpenCV 5.")] HALIDE = 1

Removed in OpenCV 5. The numeric value is kept so the remaining members keep their original values.

INFERENCE_ENGINE = 2

Intel OpenVINO computational backend.

OPENCV = 3
TIMVX = 7
VKCOM = 4
WEBNN = 6

Remarks

DNN_BACKEND_DEFAULT equals to DNN_BACKEND_INFERENCE_ENGINE if OpenCV is built with Intel's Inference Engine library or DNN_BACKEND_OPENCV otherwise.