#include <opencv2/gapi/infer/ov.hpp>
◆ Params() [1/2]
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
-
| 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. |
◆ Params() [2/2]
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
-
| 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. |
◆ backend()
◆ cfgInputLayers()
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.
- Parameters
-
| 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. |
- Returns
- reference to this parameter structure.
◆ cfgInputModelLayout() [1/2]
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]
◆ cfgInputTensorLayout() [1/2]
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]
◆ cfgMean() [1/2]
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]
◆ cfgNumRequests()
◆ cfgOutputLayers()
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.
- Parameters
-
| 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. |
- Returns
- reference to this parameter structure.
◆ cfgOutputModelLayout() [1/2]
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]
◆ cfgOutputTensorLayout() [1/2]
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]
◆ cfgOutputTensorPrecision() [1/2]
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]
◆ cfgPluginConfig()
◆ cfgReshape() [1/2]
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]
◆ cfgResize() [1/2]
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]
◆ cfgScale() [1/2]
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()
◆ tag()
◆ m_desc
◆ m_tag
The documentation for this class was generated from the following file: