#[repr(C)]pub enum Backend {
    DNN_BACKEND_DEFAULT,
    DNN_BACKEND_HALIDE,
    DNN_BACKEND_INFERENCE_ENGINE,
    DNN_BACKEND_OPENCV,
    DNN_BACKEND_VKCOM,
    DNN_BACKEND_CUDA,
    DNN_BACKEND_WEBNN,
    DNN_BACKEND_TIMVX,
    DNN_BACKEND_CANN,
}Expand description
Variants§
DNN_BACKEND_DEFAULT
DNN_BACKEND_DEFAULT equals to DNN_BACKEND_INFERENCE_ENGINE if OpenCV is built with Intel OpenVINO or DNN_BACKEND_OPENCV otherwise.
DNN_BACKEND_HALIDE
DNN_BACKEND_DEFAULT equals to DNN_BACKEND_INFERENCE_ENGINE if OpenCV is built with Intel OpenVINO or DNN_BACKEND_OPENCV otherwise.
DNN_BACKEND_INFERENCE_ENGINE
Intel OpenVINO computational backend
Note: Tutorial how to build OpenCV with OpenVINO: [tutorial_dnn_openvino]
DNN_BACKEND_OPENCV
DNN_BACKEND_VKCOM
DNN_BACKEND_CUDA
DNN_BACKEND_WEBNN
DNN_BACKEND_TIMVX
DNN_BACKEND_CANN
Trait Implementations§
source§impl PartialEq<Backend> for Backend
 
impl PartialEq<Backend> for Backend
impl Copy for Backend
impl Eq for Backend
impl StructuralEq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more