![]() |
OpenCV
4.10.0
Open Source Computer Vision
|
#include <opencv2/gapi/infer/ie.hpp>
Public Member Functions | |
| Params (const std::string &tag, const std::string &model, const std::string &device) | |
| Params (const std::string &tag, const std::string &model, const std::string &weights, const std::string &device) | |
| Class constructor. | |
| GBackend | backend () const |
| Params & | cfgBatchSize (const size_t size) |
| Params & | cfgContextParams (const cv::util::any &ctx_cfg) |
| Specifies configuration for RemoteContext in InferenceEngine. | |
| Params & | cfgInferMode (InferMode mode) |
| Params< cv::gapi::Generic > & | cfgInputLayers (const typename PortCfg< cv::gapi::Generic >::In &layer_names) |
| Specifies sequence of network input layers names for inference. | |
| Params & | cfgInputLayout (detail::AttrMap< std::string > layout_map) |
| Params & | cfgInputLayout (std::string layout) |
| Params & | cfgInputReshape (const std::map< std::string, std::vector< std::size_t > > &reshape_table) |
| Params & | cfgInputReshape (const std::string &layer_name, const std::vector< size_t > &layer_dims) |
| Params & | cfgInputReshape (const std::unordered_set< std::string > &layer_names) |
| Params & | cfgInputReshape (std::map< std::string, std::vector< std::size_t > > &&reshape_table) |
| Params & | cfgInputReshape (std::string &&layer_name, std::vector< size_t > &&layer_dims) |
| Params & | cfgInputReshape (std::unordered_set< std::string > &&layer_names) |
| Params & | cfgNumRequests (size_t nireq) |
| Params< cv::gapi::Generic > & | cfgOutputLayers (const typename PortCfg< cv::gapi::Generic >::Out &layer_names) |
| Specifies sequence of network output layers names for inference. | |
| Params & | cfgOutputLayout (detail::AttrMap< std::string > layout_map) |
| Params & | cfgOutputLayout (std::string layout) |
| Params & | cfgOutputPrecision (detail::ParamDesc::PrecisionMapT precision_map) |
| Params & | cfgOutputPrecision (detail::ParamDesc::PrecisionT precision) |
| Params< cv::gapi::Generic > & | cfgPreprocessingParams (const cv::gapi::wip::onevpl::Device &device, const cv::gapi::wip::onevpl::Context &ctx) |
| Params & | cfgResize (detail::AttrMap< int > interpolation) |
| Params & | cfgResize (int interpolation) |
| Params & | constInput (const std::string &layer_name, const cv::Mat &data, TraitAs hint=TraitAs::TENSOR) |
| cv::util::any | params () const |
| Params & | pluginConfig (const IEConfig &cfg) |
| Params & | pluginConfig (IEConfig &&cfg) |
| std::string | tag () const |
Protected Attributes | |
| detail::ParamDesc | desc |
| std::string | m_tag |
|
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.
| tag | string tag of the network for which these parameters are intended. |
| model | path to topology IR (.xml file). |
| weights | path to weights (.bin file). |
| device | target device to use. |
|
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.
| tag | string tag of the network for which these parameters are intended. |
| model | path to model. |
| device | target device to use. |
|
inline |
|
inline |
|
inline |
Specifies configuration for RemoteContext in InferenceEngine.
When RemoteContext is configured the backend imports the networks using the context. It also expects cv::MediaFrames to be actually remote, to operate with blobs via the context.
| ctx_cfg | cv::util::any value which holds InferenceEngine::ParamMap. |
|
inline |
|
inline |
Specifies sequence of network input layers names for inference.
The function is used to associate cv::gapi::infer<> inputs with the model inputs. Number of names has to match the number of network inputs as defined in G_API_NET(). In case a network has only single input layer, there is no need to specify name manually.
| layer_names | std::array<std::string, N> where N is the number of inputs as defined in the G_API_NET. Contains names of input layers. |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
|
inline |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
|
inline |
Specifies sequence of network output layers names for inference.
The function is used to associate cv::gapi::infer<> outputs with the model outputs. Number of names has to match the number of network outputs as defined in G_API_NET(). In case a network has only single output layer, there is no need to specify name manually.
| layer_names | std::array<std::string, N> where N is the number of outputs as defined in the G_API_NET. Contains names of output layers. |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
|
inline |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
|
protected |
|
protected |
1.15.0