Loading...
Searching...
No Matches
cv::gapi::ov::Params< cv::gapi::Generic > Class Reference

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

Public Member Functions

 Params (const std::string &tag, const std::string &blob_path, const std::string &device)
 
 Params (const std::string &tag, const std::string &model_path, const std::string &bin_path, const std::string &device)
 Class constructor.
 
GBackend backend () const
 
ParamscfgInputModelLayout (detail::AttrMap< std::string > layout_map)
 
ParamscfgInputModelLayout (std::string layout)
 
ParamscfgInputTensorLayout (detail::AttrMap< std::string > layout_map)
 
ParamscfgInputTensorLayout (std::string layout)
 
ParamscfgMean (detail::AttrMap< std::vector< float > > mean_map)
 
ParamscfgMean (std::vector< float > mean_values)
 
ParamscfgNumRequests (const size_t nireq)
 
ParamscfgOutputModelLayout (detail::AttrMap< std::string > layout_map)
 
ParamscfgOutputModelLayout (std::string layout)
 
ParamscfgOutputTensorLayout (detail::AttrMap< std::string > layout_map)
 
ParamscfgOutputTensorLayout (std::string layout)
 
ParamscfgOutputTensorPrecision (detail::AttrMap< int > precision_map)
 
ParamscfgOutputTensorPrecision (int precision)
 
ParamscfgPluginConfig (const detail::ParamDesc::PluginConfigT &config)
 
ParamscfgReshape (detail::AttrMap< std::vector< size_t > > new_shape_map)
 
ParamscfgReshape (std::vector< size_t > new_shape)
 
ParamscfgResize (detail::AttrMap< int > interpolation)
 
ParamscfgResize (int interpolation)
 
ParamscfgScale (detail::AttrMap< std::vector< float > > scale_map)
 
ParamscfgScale (std::vector< float > scale_values)
 
cv::util::any params () const
 
std::string tag () const
 

Protected Attributes

detail::ParamDesc m_desc
 
std::string m_tag
 

Constructor & Destructor Documentation

◆ Params() [1/2]

cv::gapi::ov::Params< cv::gapi::Generic >::Params ( const std::string &  tag,
const std::string &  model_path,
const std::string &  bin_path,
const std::string &  device 
)
inline

Class constructor.

Constructs Params based on model information and specifies 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.
model_pathPath to a model.
bin_pathPath to a data file. For IR format (*.bin): If path is empty, will try to read a bin file with the same name as xml. If the bin file with the same name is not found, will load IR without weights. For PDPD (*.pdmodel) and ONNX (*.onnx) formats bin_path isn't used.
devicetarget device to use.

◆ Params() [2/2]

cv::gapi::ov::Params< cv::gapi::Generic >::Params ( const std::string &  tag,
const std::string &  blob_path,
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.
blob_pathpath to the compiled model (*.blob).
devicetarget device to use.

Member Function Documentation

◆ backend()

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

◆ cfgInputModelLayout() [1/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgInputModelLayout ( detail::AttrMap< std::string >  layout_map)
inline

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

◆ cfgInputModelLayout() [2/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgInputModelLayout ( std::string  layout)
inline

◆ cfgInputTensorLayout() [1/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgInputTensorLayout ( detail::AttrMap< std::string >  layout_map)
inline

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

◆ cfgInputTensorLayout() [2/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgInputTensorLayout ( std::string  layout)
inline

◆ cfgMean() [1/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgMean ( detail::AttrMap< std::vector< float > >  mean_map)
inline

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

◆ cfgMean() [2/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgMean ( std::vector< float >  mean_values)
inline

◆ cfgNumRequests()

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

◆ cfgOutputModelLayout() [1/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgOutputModelLayout ( detail::AttrMap< std::string >  layout_map)
inline

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

◆ cfgOutputModelLayout() [2/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgOutputModelLayout ( std::string  layout)
inline

◆ cfgOutputTensorLayout() [1/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgOutputTensorLayout ( detail::AttrMap< std::string >  layout_map)
inline

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

◆ cfgOutputTensorLayout() [2/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgOutputTensorLayout ( std::string  layout)
inline

◆ cfgOutputTensorPrecision() [1/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgOutputTensorPrecision ( detail::AttrMap< int >  precision_map)
inline

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

◆ cfgOutputTensorPrecision() [2/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgOutputTensorPrecision ( int  precision)
inline

◆ cfgPluginConfig()

◆ cfgReshape() [1/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgReshape ( detail::AttrMap< std::vector< size_t > >  new_shape_map)
inline

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

◆ cfgReshape() [2/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgReshape ( std::vector< size_t >  new_shape)
inline

◆ cfgResize() [1/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgResize ( detail::AttrMap< int >  interpolation)
inline

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

◆ cfgResize() [2/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgResize ( int  interpolation)
inline

◆ cfgScale() [1/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgScale ( detail::AttrMap< std::vector< float > >  scale_map)
inline

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

◆ cfgScale() [2/2]

Params & cv::gapi::ov::Params< cv::gapi::Generic >::cfgScale ( std::vector< float >  scale_values)
inline

◆ params()

◆ tag()

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

Member Data Documentation

◆ m_desc

◆ m_tag

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

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