![]() |
OpenCV 4.14.0
Open Source Computer Vision
|
#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 |
| Params & | cfgClampOutputs (bool flag=true) |
| Params & | cfgEnsureNamedTensors (bool flag=true) |
| Params< cv::gapi::Generic > & | cfgInputLayers (const std::vector< std::string > &layer_names) |
| Specifies sequence of network input layers names for inference. | |
| Params & | cfgInputModelLayout (detail::AttrMap< std::string > layout_map) |
| Params & | cfgInputModelLayout (std::string layout) |
| Params & | cfgInputTensorLayout (detail::AttrMap< std::string > layout_map) |
| Params & | cfgInputTensorLayout (std::string layout) |
| Params & | cfgMean (detail::AttrMap< std::vector< float > > mean_map) |
| Params & | cfgMean (std::vector< float > mean_values) |
| Params & | cfgNumRequests (const size_t nireq) |
| Params< cv::gapi::Generic > & | cfgOutputLayers (const std::vector< std::string > &layer_names) |
| Specifies sequence of network output layers names for inference. | |
| Params & | cfgOutputModelLayout (detail::AttrMap< std::string > layout_map) |
| Params & | cfgOutputModelLayout (std::string layout) |
| Params & | cfgOutputTensorLayout (detail::AttrMap< std::string > layout_map) |
| Params & | cfgOutputTensorLayout (std::string layout) |
| Params & | cfgOutputTensorPrecision (detail::AttrMap< int > precision_map) |
| Params & | cfgOutputTensorPrecision (int precision) |
| Params & | cfgPluginConfig (const detail::ParamDesc::PluginConfigT &config) |
| Params & | cfgReshape (detail::AttrMap< std::vector< size_t > > new_shape_map) |
| Params & | cfgReshape (std::vector< size_t > new_shape) |
| Params & | cfgResize (detail::AttrMap< int > interpolation) |
| Params & | cfgResize (int interpolation) |
| Params & | cfgScale (detail::AttrMap< std::vector< float > > scale_map) |
| Params & | cfgScale (std::vector< float > scale_values) |
| cv::util::any | params () const |
| std::string | tag () const |
Protected Attributes | |
| detail::ParamDesc | m_desc |
| std::string | m_tag |
|
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".
| tag | string tag of the network for which these parameters are intended. |
| model_path | Path to a model. |
| bin_path | Path 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. |
| 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. |
| blob_path | path to the compiled model (*.blob). |
| device | target device to use. |
|
inline |
|
inline |
|
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 |
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 |
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 |
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 |
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 |
|
protected |
|
protected |