| OpenCV 3.4.1 Open Source Computer Vision

Public Member Functions | Static Public Member Functions | List of all members
cv::dnn2::CaffeConverter Class Referenceabstract
Deep Learning Modern Module

Class implementing the CaffeConverter. More...

`#include "dnn_modern.hpp"`

Inheritance diagram for cv::dnn2::CaffeConverter:

## 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< CaffeConverter > | create (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_file | path to the prototxt file.
  trained_file | path to the caffemodel file.
  mean_file | path 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

  image | input image.
  results | output form model.

Implements cv::dnn2::BaseConverter.

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

- /build/master-contrib_docs-lin64/opencv_contrib/modules/dnn_modern/include/opencv2/dnn_modern.hpp