#include <opencv2/gapi/infer/onnx.hpp>
◆ Params()
◆ backend()
◆ cfgInputLayers()
◆ cfgMeanStd()
◆ cfgNormalize()
◆ cfgOutputLayers()
◆ cfgPostProc() [1/4]
Configures graph output and sets the post processing function from user.
The function is used for the case of infer of networks with dynamic outputs. Since these networks haven't known output parameters needs provide them for construction of output of graph. The function provides meta information of outputs and post processing function. Post processing function is used for copy information from ONNX infer's result to output of graph which is allocated by out meta information.
- Parameters
-
out_metas | out meta information. |
pp | post processing function, which has two parameters. First is onnx result, second is graph output. Both parameters is std::map that contain pair of layer's name and cv::Mat. |
- Returns
- reference to object of class Params.
◆ cfgPostProc() [2/4]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. The function has rvalue parameters.
◆ cfgPostProc() [3/4]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. The function has additional parameter names_to_remap. This parameter provides information about output layers which will be used for infer and in post processing function.
- Parameters
-
out_metas | out meta information. |
pp | post processing function. |
names_to_remap | contains names of output layers. CNN's infer will be done on these layers. Infer's result will be processed in post processing function using these names. |
- Returns
- reference to object of class Params.
◆ cfgPostProc() [4/4]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. The function has rvalue parameters.
◆ constInput()
◆ params()
◆ tag()
◆ desc
The documentation for this class was generated from the following file: