mexopencv  3.4.1
MEX interface for OpenCV library
Files | Typedefs | Enumerations | Functions | Variables
dnn: Deep Neural Network

Files

file  Net_.cpp
 mex interface for cv::dnn::Net
 

Typedefs

typedef std::vector< int > MatShape
 

Enumerations

enum  Backend
 
enum  Target
 

Functions

Mat blobFromImage (InputArray image, double scalefactor=1.0, const Size &size=Size(), const Scalar &mean=Scalar(), bool swapRB=true, bool crop=true)
 
void blobFromImage (InputArray image, OutputArray blob, double scalefactor=1.0, const Size &size=Size(), const Scalar &mean=Scalar(), bool swapRB=true, bool crop=true)
 
Mat blobFromImages (InputArrayOfArrays images, double scalefactor=1.0, Size size=Size(), const Scalar &mean=Scalar(), bool swapRB=true, bool crop=true)
 
void blobFromImages (InputArrayOfArrays images, OutputArray blob, double scalefactor=1.0, Size size=Size(), const Scalar &mean=Scalar(), bool swapRB=true, bool crop=true)
 
void imagesFromBlob (const cv::Mat &blob_, OutputArrayOfArrays images_)
 
void NMSBoxes (const std::vector< Rect > &bboxes, const std::vector< float > &scores, const float score_threshold, const float nms_threshold, std::vector< int > &indices, const float eta=1.f, const int top_k=0)
 
Net readNetFromCaffe (const String &prototxt, const String &caffeModel=String())
 
Net readNetFromCaffe (const char *bufferProto, size_t lenProto, const char *bufferModel=NULL, size_t lenModel=0)
 
Net readNetFromDarknet (const String &cfgFile, const String &darknetModel=String())
 
Net readNetFromTensorflow (const String &model, const String &config=String())
 
Net readNetFromTensorflow (const char *bufferModel, size_t lenModel, const char *bufferConfig=NULL, size_t lenConfig=0)
 
Net readNetFromTorch (const String &model, bool isBinary=true)
 
Mat readTorchBlob (const String &filename, bool isBinary=true)
 
void shrinkCaffeModel (const String &src, const String &dst, const std::vector< String > &layersTypes=std::vector< String >())
 

Variables

 DNN_BACKEND_DEFAULT
 
 DNN_BACKEND_HALIDE
 
 DNN_BACKEND_INFERENCE_ENGINE
 
 DNN_TARGET_CPU
 
 DNN_TARGET_OPENCL
 

Detailed Description