OpenCV  3.3.0
Open Source Computer Vision
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
dnn.hpp File Reference
#include <vector>
#include <opencv2/core.hpp>
#include <opencv2/dnn/dict.hpp>
#include <opencv2/dnn/layer.hpp>
#include <opencv2/dnn/dnn.inl.hpp>

Classes

class  cv::dnn::BackendNode
 Derivatives of this class encapsulates functions of certain backends. More...
 
class  cv::dnn::BackendWrapper
 Derivatives of this class wraps cv::Mat for different backends and targets. More...
 
class  cv::dnn::Importer
 Small interface class for loading trained serialized models of different dnn-frameworks. More...
 
class  cv::dnn::Layer
 This interface class allows to build new Layers - are building blocks of networks. More...
 
class  cv::dnn::LayerParams
 This class provides all data needed to initialize layer. More...
 
class  cv::dnn::Net
 This class allows to create and manipulate comprehensive artificial neural networks. More...
 

Namespaces

 cv
 
 cv::dnn
 

Macros

#define CV__DNN_EXPERIMENTAL_NS_BEGIN
 
#define CV__DNN_EXPERIMENTAL_NS_END
 

Typedefs

typedef std::vector< int > cv::dnn::MatShape
 

Enumerations

enum  cv::dnn::Backend {
  cv::dnn::DNN_BACKEND_DEFAULT,
  cv::dnn::DNN_BACKEND_HALIDE
}
 Enum of computation backends supported by layers. More...
 
enum  cv::dnn::Target {
  cv::dnn::DNN_TARGET_CPU,
  cv::dnn::DNN_TARGET_OPENCL
}
 Enum of target devices for computations. More...
 

Functions

Mat cv::dnn::blobFromImage (const Mat &image, double scalefactor=1.0, const Size &size=Size(), const Scalar &mean=Scalar(), bool swapRB=true)
 Creates 4-dimensional blob from image. Optionally resizes and crops image from center, subtract mean values, scales values by scalefactor, swap Blue and Red channels. More...
 
Mat cv::dnn::blobFromImages (const std::vector< Mat > &images, double scalefactor=1.0, Size size=Size(), const Scalar &mean=Scalar(), bool swapRB=true)
 Creates 4-dimensional blob from series of images. Optionally resizes and crops images from center, subtract mean values, scales values by scalefactor, swap Blue and Red channels. More...
 
Ptr< Importer > cv::dnn::createCaffeImporter (const String &prototxt, const String &caffeModel=String())
 Creates the importer of Caffe framework network. More...
 
Ptr< Importer > cv::dnn::createTensorflowImporter (const String &model)
 Creates the importer of TensorFlow framework network. More...
 
Ptr< Importer > cv::dnn::createTorchImporter (const String &filename, bool isBinary=true)
 Creates the importer of Torch7 framework network. More...
 
Net cv::dnn::readNetFromCaffe (const String &prototxt, const String &caffeModel=String())
 Reads a network model stored in Caffe model files. More...
 
Net cv::dnn::readNetFromTensorflow (const String &model)
 Reads a network model stored in Tensorflow model file. More...
 
Net cv::dnn::readNetFromTorch (const String &model, bool isBinary=true)
 Reads a network model stored in Torch model file. More...
 
Mat cv::dnn::readTorchBlob (const String &filename, bool isBinary=true)
 Loads blob which was serialized as torch.Tensor object of Torch7 framework. More...
 

Macro Definition Documentation

§ CV__DNN_EXPERIMENTAL_NS_BEGIN

#define CV__DNN_EXPERIMENTAL_NS_BEGIN

§ CV__DNN_EXPERIMENTAL_NS_END

#define CV__DNN_EXPERIMENTAL_NS_END