Deep neural networks
All modules / dnn
Activation type enumeration for dispatched activation function retrieval.
dnn_ArgKindclassIndicate that an actual data is on CPU.
dnn_AutoPaddingclassGatherND layer
dnn_BackendclassEnum of computation backends supported by layers.
dnn_blobFromImagefunctionCreates 4-dimensional blob from image. Optionally resizes and crops `image` from center,
dnn_blobFromImagesfunctionCreates 4-dimensional blob from series of images. Optionally resizes and
dnn_blobFromImagesWithParamsfunctionCreates 4-dimensional blob from series of images with given params.
dnn_blobFromImagesWithParams1functionCreates 4-dimensional blob from series of images with given params.
dnn_blobFromImageWithParamsfunctionCreates 4-dimensional blob from image with given params.
dnn_blobFromImageWithParams1functionCreates 4-dimensional blob from image with given params.
dnn_ClassificationModelclassThis class represents high-level API for classification models.
dnn_DetectionModelclassThis class represents high-level API for object detection networks.
dnn_DictValueclassThis struct stores the scalar value (or array) of one of the following type: double, cv::String or int64.
dnn_EngineTypeclassNative enum entries for dnn engine type. Pass an entry to enum-typed arguments or its .value to numeric arguments.
dnn_getAvailableTargetsfunctionReturn an owned vector of execution targets available for a DNN backend in this build. CPU OpenCV inference is enabled.
dnn_getInferenceEngineBackendTypefunctionReturns Inference Engine internal backend API.
dnn_getInferenceEngineCPUTypefunctionReturns Inference Engine CPU type.
dnn_getInferenceEngineVPUTypefunctionReturns Inference Engine VPU type.
dnn_Image2BlobParamsclassProcessing params of image to blob.
dnn_ImagePaddingModeclassEnum of image processing mode.
dnn_imagesFromBlobfunctionParse a 4D blob and output the images it contains as 2D arrays through a simpler data structure
dnn_KeypointsModelclassThis class represents high-level API for keypoints models
dnn_LayerclassThis interface class allows to build new Layers - are building blocks of networks.
dnn_LayerParamsclassA DNN layer's instance name, type, learned blobs and named configuration values.
dnn_LossReductionclassShared reduction enum for DNN loss layers
dnn_ModelclassThis class is presented high-level API for neural networks.
dnn_ModelFormatclassNative enum entries for dnn model format. Pass an entry to enum-typed arguments or its .value to numeric arguments.
dnn_NaryEltwiseLayer_OPERATIONclassElement wise operation on inputs
dnn_NetclassThis class allows to create and manipulate comprehensive artificial neural networks.
dnn_Net_readFromModelOptimizerfunctionDestructor frees the net only if there aren't references to the net anymore.
dnn_NMSBoxesfunctionPerforms non maximum suppression given boxes and corresponding scores.
dnn_NMSBoxesBatchedfunctionPerforms batched non maximum suppression on given boxes and corresponding scores across different classes.
dnn_NMSBoxesRotatedfunctionPerforms non maximum suppression given boxes and corresponding scores.
dnn_ProfilingModeclassNative enum entries for dnn profiling mode. Pass an entry to enum-typed arguments or its .value to numeric arguments.
dnn_readNetfunctionRead deep learning network represented in one of the supported formats.
dnn_readNet1functionRead deep learning network represented in one of the supported formats.
dnn_readNetFromModelOptimizerfunctionLoad a network from Intel's Model Optimizer intermediate representation.
dnn_readNetFromModelOptimizer1functionLoad a network from Intel's Model Optimizer intermediate representation.
dnn_readNetFromONNXfunctionReads a network model <a href="https://onnx.ai/">ONNX</a>.
dnn_readNetFromONNX1functionReads a network model from <a href="https://onnx.ai/">ONNX</a>
dnn_readNetFromTensorflowfunctionReads a network model stored in <a href="https://www.tensorflow.org/">TensorFlow</a> framework's format.
dnn_readNetFromTensorflow1functionReads a network model stored in <a href="https://www.tensorflow.org/">TensorFlow</a> framework's format.
dnn_readNetFromTFLitefunctionReads a network model stored in <a href="https://www.tensorflow.org/lite">TFLite</a> framework's format.
dnn_readNetFromTFLite1functionReads a network model stored in <a href="https://www.tensorflow.org/lite">TFLite</a> framework's format.
dnn_readTensorFromONNXfunctionCreates blob from .pb file.
dnn_Reduce2Layer_ReduceTypeclassGatherElements layer
dnn_releaseHDDLPluginfunctionRelease a HDDL plugin.
dnn_resetMyriadDevicefunctionRelease a Myriad device (binded by OpenCV).
dnn_SegmentationModelclassThis class represents high-level API for segmentation models
dnn_setInferenceEngineBackendTypefunctionSpecify Inference Engine internal backend API.
dnn_softNMSBoxesfunctionPerforms soft non maximum suppression given boxes and corresponding scores.
dnn_SoftNMSMethodclassEnum of Soft NMS methods.
dnn_TargetclassEnum of target devices for computations.
dnn_TextDetectionModelclassBase class for text detection networks
dnn_TextDetectionModel_DBclassThis class represents high-level API for text detection DL networks compatible with DB model.
dnn_TextDetectionModel_EASTclassThis class represents high-level API for text detection DL networks compatible with EAST model.
dnn_TextRecognitionModelclassThis class represents high-level API for text recognition networks.
dnn_TokenizerclassHigh-level tokenizer wrapper for DNN usage.
dnn_Tokenizer_loadfunctionLoad a tokenizer from a model directory.
dnn_TracingModeclassNative enum entries for dnn tracing mode. Pass an entry to enum-typed arguments or its .value to numeric arguments.
dnn_writeTextGraphfunctionCreate a text representation for a binary network stored in protocol buffer format.
No matches. Try an algorithm name, a module, or a shorter phrase.
Constants
Use the named constant from cv. In particular, OpenCV 5 matrix type codes differ from OpenCV 4.
dnn_AUTO_PAD_NONEdnn auto pad none constant (0), defined by OpenCV for cv::dnn.
dnn_AUTO_PAD_SAME_UPPERdnn auto pad same upper constant (1), defined by OpenCV for cv::dnn.
dnn_AUTO_PAD_SAME_LOWERdnn auto pad same lower constant (2), defined by OpenCV for cv::dnn.
dnn_AUTO_PAD_VALIDdnn auto pad valid constant (3), defined by OpenCV for cv::dnn.
dnn_Reduce2Layer_ReduceType_MAXdnn reduce2 layer reduce type max constant (0), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_REDUCE2LAYER_REDUCE_TYPE_MAXdnn reduce2 layer reduce type max constant (0), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_Reduce2Layer_ReduceType_MINdnn reduce2 layer reduce type min constant (1), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_REDUCE2LAYER_REDUCE_TYPE_MINdnn reduce2 layer reduce type min constant (1), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_Reduce2Layer_ReduceType_MEANdnn reduce2 layer reduce type mean constant (2), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_REDUCE2LAYER_REDUCE_TYPE_MEANdnn reduce2 layer reduce type mean constant (2), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_Reduce2Layer_ReduceType_SUMdnn reduce2 layer reduce type sum constant (3), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_REDUCE2LAYER_REDUCE_TYPE_SUMdnn reduce2 layer reduce type sum constant (3), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_Reduce2Layer_ReduceType_L1dnn reduce2 layer reduce type l1 constant (4), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_REDUCE2LAYER_REDUCE_TYPE_L1dnn reduce2 layer reduce type l1 constant (4), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_Reduce2Layer_ReduceType_L2dnn reduce2 layer reduce type l2 constant (5), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_REDUCE2LAYER_REDUCE_TYPE_L2dnn reduce2 layer reduce type l2 constant (5), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_Reduce2Layer_ReduceType_PRODdnn reduce2 layer reduce type prod constant (6), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_REDUCE2LAYER_REDUCE_TYPE_PRODdnn reduce2 layer reduce type prod constant (6), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_Reduce2Layer_ReduceType_SUM_SQUAREdnn reduce2 layer reduce type sum square constant (7), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_REDUCE2LAYER_REDUCE_TYPE_SUM_SQUAREdnn reduce2 layer reduce type sum square constant (7), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_Reduce2Layer_ReduceType_LOG_SUMdnn reduce2 layer reduce type log sum constant (8), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_REDUCE2LAYER_REDUCE_TYPE_LOG_SUMdnn reduce2 layer reduce type log sum constant (8), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_Reduce2Layer_ReduceType_LOG_SUM_EXPdnn reduce2 layer reduce type log sum exp constant (9), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_REDUCE2LAYER_REDUCE_TYPE_LOG_SUM_EXPdnn reduce2 layer reduce type log sum exp constant (9), defined by OpenCV for cv::dnn::Reduce2Layer::ReduceType.
dnn_ACTIV_NONEdnn activ none constant (0), defined by OpenCV for cv::dnn.
dnn_ACTIV_MISHdnn activ mish constant (0+1), defined by OpenCV for cv::dnn.
dnn_ACTIV_SWISHdnn activ swish constant (0+2), defined by OpenCV for cv::dnn.
dnn_ACTIV_SIGMOIDdnn activ sigmoid constant (0+3), defined by OpenCV for cv::dnn.
dnn_ACTIV_TANHdnn activ tanh constant (0+4), defined by OpenCV for cv::dnn.
dnn_ACTIV_ELUdnn activ elu constant (0+5), defined by OpenCV for cv::dnn.
dnn_ACTIV_HARDSWISHdnn activ hardswish constant (0+6), defined by OpenCV for cv::dnn.
dnn_ACTIV_HARDSIGMOIDdnn activ hardsigmoid constant (0+7), defined by OpenCV for cv::dnn.
dnn_ACTIV_GELUdnn activ gelu constant (0+8), defined by OpenCV for cv::dnn.
dnn_ACTIV_GELU_APPROXdnn activ gelu approx constant (0+9), defined by OpenCV for cv::dnn.
dnn_ACTIV_RELUdnn activ relu constant (0+10), defined by OpenCV for cv::dnn.
dnn_ACTIV_CLIPdnn activ clip constant (0+11), defined by OpenCV for cv::dnn.
dnn_NaryEltwiseLayer_OPERATION_ANDdnn nary eltwise layer operation and constant (0), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_ANDdnn nary eltwise layer operation and constant (0), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_EQUALdnn nary eltwise layer operation equal constant (0+1), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_EQUALdnn nary eltwise layer operation equal constant (0+1), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_GREATERdnn nary eltwise layer operation greater constant (0+2), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_GREATERdnn nary eltwise layer operation greater constant (0+2), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_GREATER_EQUALdnn nary eltwise layer operation greater equal constant (0+3), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_GREATER_EQUALdnn nary eltwise layer operation greater equal constant (0+3), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_LESSdnn nary eltwise layer operation less constant (0+4), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_LESSdnn nary eltwise layer operation less constant (0+4), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_LESS_EQUALdnn nary eltwise layer operation less equal constant (0+5), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_LESS_EQUALdnn nary eltwise layer operation less equal constant (0+5), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_ORdnn nary eltwise layer operation or constant (0+6), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_ORdnn nary eltwise layer operation or constant (0+6), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_POWdnn nary eltwise layer operation pow constant (0+7), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_POWdnn nary eltwise layer operation pow constant (0+7), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_XORdnn nary eltwise layer operation xor constant (0+8), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_XORdnn nary eltwise layer operation xor constant (0+8), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_BITSHIFTdnn nary eltwise layer operation bitshift constant (0+9), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_BITSHIFTdnn nary eltwise layer operation bitshift constant (0+9), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_MAXdnn nary eltwise layer operation max constant (0+10), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_MAXdnn nary eltwise layer operation max constant (0+10), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_MEANdnn nary eltwise layer operation mean constant (0+11), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_MEANdnn nary eltwise layer operation mean constant (0+11), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_MINdnn nary eltwise layer operation min constant (0+12), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_MINdnn nary eltwise layer operation min constant (0+12), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_MODInteger Mod. Reminder's sign = Divisor's sign.
dnn_NARY_ELTWISE_LAYER_OPERATION_MODInteger Mod. Reminder's sign = Divisor's sign.
dnn_NaryEltwiseLayer_OPERATION_FMODFloating-point Mod. Reminder's sign = Dividend's sign.
dnn_NARY_ELTWISE_LAYER_OPERATION_FMODFloating-point Mod. Reminder's sign = Dividend's sign.
dnn_NaryEltwiseLayer_OPERATION_PRODFloating-point Mod. Reminder's sign = Dividend's sign.
dnn_NARY_ELTWISE_LAYER_OPERATION_PRODFloating-point Mod. Reminder's sign = Dividend's sign.
dnn_NaryEltwiseLayer_OPERATION_SUBdnn nary eltwise layer operation sub constant (0+16), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_SUBdnn nary eltwise layer operation sub constant (0+16), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_SUMdnn nary eltwise layer operation sum constant (0+17), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_SUMdnn nary eltwise layer operation sum constant (0+17), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_ADDdnn nary eltwise layer operation add constant (0+18), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_ADDdnn nary eltwise layer operation add constant (0+18), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_DIVdnn nary eltwise layer operation div constant (0+19), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_DIVdnn nary eltwise layer operation div constant (0+19), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_WHEREdnn nary eltwise layer operation where constant (0+20), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_WHEREdnn nary eltwise layer operation where constant (0+20), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_BITWISE_ANDdnn nary eltwise layer operation bitwise and constant (0+21), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_BITWISE_ANDdnn nary eltwise layer operation bitwise and constant (0+21), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_BITWISE_ORdnn nary eltwise layer operation bitwise or constant (0+22), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_BITWISE_ORdnn nary eltwise layer operation bitwise or constant (0+22), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NaryEltwiseLayer_OPERATION_BITWISE_XORdnn nary eltwise layer operation bitwise xor constant (0+23), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_NARY_ELTWISE_LAYER_OPERATION_BITWISE_XORdnn nary eltwise layer operation bitwise xor constant (0+23), defined by OpenCV for cv::dnn::NaryEltwiseLayer::OPERATION.
dnn_LOSS_REDUCTION_NONEdnn loss reduction none constant (0), defined by OpenCV for cv::dnn.
dnn_LOSS_REDUCTION_MEANdnn loss reduction mean constant (1), defined by OpenCV for cv::dnn.
dnn_LOSS_REDUCTION_SUMdnn loss reduction sum constant (2), defined by OpenCV for cv::dnn.
dnn_DNN_BACKEND_DEFAULTDNN_BACKEND_DEFAULT equals to OPENCV_DNN_BACKEND_DEFAULT, which can be defined using CMake or a configuration parameter
dnn_DNN_BACKEND_INFERENCE_ENGINEinternal - use DNN_BACKEND_INFERENCE_ENGINE + setInferenceEngineBackendType()
dnn_DNN_BACKEND_OPENCVIntel OpenVINO computational backend, supported targets: CPU, OPENCL, OPENCL_FP16, MYRIAD, HDDL, NPU
Note: Tutorial how to build OpenCV with OpenVINO:
tutorial_dnn_openvinodnn_DNN_BACKEND_VKCOMdnn dnn backend vkcom constant (2+2), defined by OpenCV for cv::dnn.
dnn_DNN_BACKEND_CUDAdnn dnn backend cuda constant (2+3), defined by OpenCV for cv::dnn.
dnn_DNN_BACKEND_WEBNNdnn dnn backend webnn constant (2+4), defined by OpenCV for cv::dnn.
dnn_DNN_BACKEND_TIMVXdnn dnn backend timvx constant (2+5), defined by OpenCV for cv::dnn.
dnn_DNN_BACKEND_CANNdnn dnn backend cann constant (2+6), defined by OpenCV for cv::dnn.
dnn_DNN_TARGET_CPUdnn dnn target cpu constant (0), defined by OpenCV for cv::dnn.
dnn_DNN_TARGET_OPENCLdnn dnn target opencl constant (0+1), defined by OpenCV for cv::dnn.
dnn_DNN_TARGET_OPENCL_FP16dnn dnn target opencl fp16 constant (0+2), defined by OpenCV for cv::dnn.
dnn_DNN_TARGET_MYRIADdnn dnn target myriad constant (0+3), defined by OpenCV for cv::dnn.
dnn_DNN_TARGET_VULKANdnn dnn target vulkan constant (0+4), defined by OpenCV for cv::dnn.
dnn_DNN_TARGET_FPGAFPGA device with CPU fallbacks using Inference Engine's Heterogeneous plugin.
dnn_DNN_TARGET_CUDAFPGA device with CPU fallbacks using Inference Engine's Heterogeneous plugin.
dnn_DNN_TARGET_CUDA_FP16dnn dnn target cuda fp16 constant (0+7), defined by OpenCV for cv::dnn.
dnn_DNN_TARGET_HDDLdnn dnn target hddl constant (0+8), defined by OpenCV for cv::dnn.
dnn_DNN_TARGET_NPUdnn dnn target npu constant (0+9), defined by OpenCV for cv::dnn.
dnn_DNN_TARGET_CPU_FP16Only the ARM platform is supported. Low precision computing, accelerate model inference.
dnn_DNN_TRACE_NONEDon't trace anything
dnn_DNN_TRACE_ALLPrint all executed operations along with the output tensors, more or less compatible with ONNX Runtime
dnn_DNN_TRACE_OPPrint all executed operations. Types and shapes of all inputs and outputs are printed, but the content is not.
dnn_DNN_PROFILE_NONEDon't do any profiling
dnn_DNN_PROFILE_SUMMARYCollect the summary statistics by layer type (e.g. all "Conv2D" or all "Add") and print it in the end, sorted by the execution time (most expensive layers first). Note that it may introduce some overhead and cause slowdown, especially in the case of non-CPU backends.
dnn_DNN_PROFILE_DETAILEDPrint execution time of each single layer. Note that it may introduce some overhead and cause slowdown, especially in the case of non-CPU backends.
dnn_DNN_MODEL_GENERICSome generic model format
dnn_DNN_MODEL_ONNXdnn_DNN_MODEL_ONNX: ONNX model
dnn_DNN_MODEL_TFdnn_DNN_MODEL_TF: TF model
dnn_DNN_MODEL_TFLITEdnn_DNN_MODEL_TFLITE: TFLite model
dnn_DNN_ARG_EMPTYvalid only for Arg.idx==0. It's "no-arg"
dnn_DNN_ARG_CONSTa constant argument.
dnn_DNN_ARG_INPUTinput of the whole model. Before Net::forward() or in Net::forward() all inputs must be set
dnn_DNN_ARG_OUTPUToutput of the model.
dnn_DNN_ARG_TEMPintermediate result, a result of some operation and input to some other operation(s).
dnn_DNN_ARG_PATTERNnot used for now
dnn_ENGINE_CLASSICForce use the old dnn engine similar to 4.x branch
dnn_ENGINE_NEWForce use the new dnn engine. The engine does not support non CPU back-ends for now.
dnn_ENGINE_AUTOTry to use the new engine and then fall back to the classic version.
dnn_ENGINE_ORTTry to use ONNX Runtime wrapper (ONNX only, requires build with WITH_ONNXRUNTIME=ON).
dnn_DNN_PMODE_NULL!< Default. Resize to required input size without extra processing.
dnn_DNN_PMODE_CROP_CENTER!< Image will be cropped after resize.
dnn_DNN_PMODE_LETTERBOX!< Resize image to the desired size while preserving the aspect ratio of original image.
dnn_SoftNMSMethod_SOFTNMS_LINEARdnn soft nmsmethod softnms linear constant (1), defined by OpenCV for cv::dnn::SoftNMSMethod.
dnn_SOFT_NMSMETHOD_SOFTNMS_LINEARdnn soft nmsmethod softnms linear constant (1), defined by OpenCV for cv::dnn::SoftNMSMethod.
dnn_SoftNMSMethod_SOFTNMS_GAUSSIANdnn soft nmsmethod softnms gaussian constant (2), defined by OpenCV for cv::dnn::SoftNMSMethod.
dnn_SOFT_NMSMETHOD_SOFTNMS_GAUSSIANdnn soft nmsmethod softnms gaussian constant (2), defined by OpenCV for cv::dnn::SoftNMSMethod.