OpenCV  3.3.0
Open Source Computer Vision
Public Member Functions | Static Public Member Functions | List of all members
cv::dnn2::CaffeConverter Class Referenceabstract

Class implementing the CaffeConverter. More...

#include "dnn_modern.hpp"

Inheritance diagram for cv::dnn2::CaffeConverter:
cv::dnn2::BaseConverter

Public Member Functions

virtual void eval (InputArray image, std::vector< float > &results)=0
 Evaluates single model output on single model input. More...
 
- Public Member Functions inherited from cv::dnn2::BaseConverter
virtual ~BaseConverter ()
 

Static Public Member Functions

static Ptr< CaffeConvertercreate (const String &model_file, const String &trained_file, const String &mean_file=String())
 Creates a CaffeConverter object. More...
 

Detailed Description

Class implementing the CaffeConverter.

Implementation of tiny-dnn Caffe converter. Loads a pretrained Caffe model. Only support simple sequential models.

Member Function Documentation

§ create()

static Ptr<CaffeConverter> cv::dnn2::CaffeConverter::create ( const String model_file,
const String trained_file,
const String mean_file = String() 
)
static

Creates a CaffeConverter object.

Parameters
model_filepath to the prototxt file.
trained_filepath to the caffemodel file.
mean_filepath to binaryproto file.

§ eval()

virtual void cv::dnn2::CaffeConverter::eval ( InputArray  image,
std::vector< float > &  results 
)
pure virtual

Evaluates single model output on single model input.

Parameters
imageinput image.
resultsoutput form model.

Implements cv::dnn2::BaseConverter.


The documentation for this class was generated from the following file: