OpenCV
4.7.0-dev
Open Source Computer Vision
|
This structure contains description of inference parameters which is specific to ONNX models. More...
#include <opencv2/gapi/infer/onnx.hpp>
Public Types | |
using | ConstInput = std::pair< cv::Mat, TraitAs > |
Public Attributes | |
std::unordered_map< std::string, ConstInput > | const_inputs |
Map with pair of name of network layer and ConstInput which will be associated with this. More... | |
PostProc | custom_post_proc |
Post processing function. More... | |
std::vector< std::string > | input_names |
Names of input network layers. More... | |
bool | is_generic |
std::vector< cv::Scalar > | mean |
Mean values for preprocessing. More... | |
std::string | model_path |
Path to model. More... | |
std::vector< std::string > | names_to_remap |
Names of output layers that will be processed in PostProc function. More... | |
std::vector< bool > | normalize |
Vector of bool values that enabled or disabled normalize of input data. More... | |
std::size_t | num_in |
How many inputs are defined in the operation. More... | |
std::size_t | num_out |
How many outputs are defined in the operation. More... | |
std::vector< cv::GMatDesc > | out_metas |
Out meta information about your output (type, dimension). More... | |
std::vector< std::string > | output_names |
Names of output network layers. More... | |
std::vector< cv::Scalar > | stdev |
Standard deviation values for preprocessing. More... | |
This structure contains description of inference parameters which is specific to ONNX models.
using cv::gapi::onnx::detail::ParamDesc::ConstInput = std::pair<cv::Mat, TraitAs> |
std::unordered_map<std::string, ConstInput> cv::gapi::onnx::detail::ParamDesc::const_inputs |
Map with pair of name of network layer and ConstInput which will be associated with this.
PostProc cv::gapi::onnx::detail::ParamDesc::custom_post_proc |
Post processing function.
std::vector<std::string> cv::gapi::onnx::detail::ParamDesc::input_names |
Names of input network layers.
bool cv::gapi::onnx::detail::ParamDesc::is_generic |
std::vector<cv::Scalar> cv::gapi::onnx::detail::ParamDesc::mean |
Mean values for preprocessing.
std::string cv::gapi::onnx::detail::ParamDesc::model_path |
Path to model.
std::vector<std::string> cv::gapi::onnx::detail::ParamDesc::names_to_remap |
Names of output layers that will be processed in PostProc function.
std::vector<bool> cv::gapi::onnx::detail::ParamDesc::normalize |
Vector of bool values that enabled or disabled normalize of input data.
std::size_t cv::gapi::onnx::detail::ParamDesc::num_in |
How many inputs are defined in the operation.
std::size_t cv::gapi::onnx::detail::ParamDesc::num_out |
How many outputs are defined in the operation.
std::vector<cv::GMatDesc> cv::gapi::onnx::detail::ParamDesc::out_metas |
Out meta information about your output (type, dimension).
std::vector<std::string> cv::gapi::onnx::detail::ParamDesc::output_names |
Names of output network layers.
std::vector<cv::Scalar> cv::gapi::onnx::detail::ParamDesc::stdev |
Standard deviation values for preprocessing.