OpenCV  4.5.3
Open Source Computer Vision
Public Member Functions | Protected Attributes | List of all members
cv::gapi::ie::Params< cv::gapi::Generic > Class Template Reference

#include <opencv2/gapi/infer/ie.hpp>

Public Member Functions

 Params (const std::string &tag, const std::string &model, const std::string &weights, const std::string &device)
 Class constructor. More...
 
 Params (const std::string &tag, const std::string &model, const std::string &device)
 
GBackend backend () const
 
ParamscfgInputReshape (const std::map< std::string, std::vector< std::size_t >> &reshape_table)
 
ParamscfgInputReshape (std::map< std::string, std::vector< std::size_t >> &&reshape_table)
 
ParamscfgInputReshape (std::string &&layer_name, std::vector< size_t > &&layer_dims)
 
ParamscfgInputReshape (const std::string &layer_name, const std::vector< size_t > &layer_dims)
 
ParamscfgInputReshape (std::unordered_set< std::string > &&layer_names)
 
ParamscfgInputReshape (const std::unordered_set< std::string > &layer_names)
 
ParamscfgNumRequests (size_t nireq)
 
ParamsconstInput (const std::string &layer_name, const cv::Mat &data, TraitAs hint=TraitAs::TENSOR)
 
cv::util::any params () const
 
ParamspluginConfig (const IEConfig &cfg)
 
ParamspluginConfig (IEConfig &&cfg)
 
std::string tag () const
 

Protected Attributes

detail::ParamDesc desc
 
std::string m_tag
 

Constructor & Destructor Documentation

◆ Params() [1/2]

cv::gapi::ie::Params< cv::gapi::Generic >::Params ( const std::string &  tag,
const std::string &  model,
const std::string &  weights,
const std::string &  device 
)
inline

Class constructor.

Constructs Params based on model information and sets default values for other inference description parameters. Model is loaded and compiled using OpenVINO Toolkit.

Parameters
tagstring tag of the network for which these parameters are intended.
modelpath to topology IR (.xml file).
weightspath to weights (.bin file).
devicetarget device to use.

◆ Params() [2/2]

cv::gapi::ie::Params< cv::gapi::Generic >::Params ( const std::string &  tag,
const std::string &  model,
const std::string &  device 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

This constructor for pre-compiled networks. Model is imported from pre-compiled blob.

Parameters
tagstring tag of the network for which these parameters are intended.
modelpath to model.
devicetarget device to use.

Member Function Documentation

◆ backend()

GBackend cv::gapi::ie::Params< cv::gapi::Generic >::backend ( ) const
inline

◆ cfgInputReshape() [1/6]

Params& cv::gapi::ie::Params< cv::gapi::Generic >::cfgInputReshape ( const std::map< std::string, std::vector< std::size_t >> &  reshape_table)
inline

◆ cfgInputReshape() [2/6]

Params& cv::gapi::ie::Params< cv::gapi::Generic >::cfgInputReshape ( std::map< std::string, std::vector< std::size_t >> &&  reshape_table)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ cfgInputReshape() [3/6]

Params& cv::gapi::ie::Params< cv::gapi::Generic >::cfgInputReshape ( std::string &&  layer_name,
std::vector< size_t > &&  layer_dims 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ cfgInputReshape() [4/6]

Params& cv::gapi::ie::Params< cv::gapi::Generic >::cfgInputReshape ( const std::string &  layer_name,
const std::vector< size_t > &  layer_dims 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ cfgInputReshape() [5/6]

Params& cv::gapi::ie::Params< cv::gapi::Generic >::cfgInputReshape ( std::unordered_set< std::string > &&  layer_names)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ cfgInputReshape() [6/6]

Params& cv::gapi::ie::Params< cv::gapi::Generic >::cfgInputReshape ( const std::unordered_set< std::string > &  layer_names)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ cfgNumRequests()

Params& cv::gapi::ie::Params< cv::gapi::Generic >::cfgNumRequests ( size_t  nireq)
inline

◆ constInput()

Params& cv::gapi::ie::Params< cv::gapi::Generic >::constInput ( const std::string &  layer_name,
const cv::Mat data,
TraitAs  hint = TraitAs::TENSOR 
)
inline

◆ params()

◆ pluginConfig() [1/2]

Params& cv::gapi::ie::Params< cv::gapi::Generic >::pluginConfig ( const IEConfig cfg)
inline

◆ pluginConfig() [2/2]

Params& cv::gapi::ie::Params< cv::gapi::Generic >::pluginConfig ( IEConfig &&  cfg)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ tag()

std::string cv::gapi::ie::Params< cv::gapi::Generic >::tag ( ) const
inline

Member Data Documentation

◆ desc

◆ m_tag

std::string cv::gapi::ie::Params< cv::gapi::Generic >::m_tag
protected

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