OpenCV  4.5.1
Open Source Computer Vision
Classes | Namespaces | Macros | Typedefs | Functions
infer.hpp File Reference
#include <functional>
#include <string>
#include <utility>
#include <type_traits>
#include <opencv2/gapi/util/util.hpp>
#include <opencv2/gapi/util/any.hpp>
#include <opencv2/gapi/gkernel.hpp>
#include <opencv2/gapi/garg.hpp>
#include <opencv2/gapi/gcommon.hpp>
#include <opencv2/gapi/gmetaarg.hpp>

Classes

struct  cv::detail::accepted_infer_types< T >
 
struct  cv::detail::CompileArgTag< cv::gapi::GNetPackage >
 
struct  cv::gapi::Generic
 Special network type. More...
 
struct  cv::GInfer< Net, Args >
 
struct  cv::GInferBase
 
class  cv::GInferInputs
 G-API object used to collect network inputs. More...
 
struct  cv::GInferList< Net, Args >
 
struct  cv::GInferList2< Net, T, Args >
 
struct  cv::GInferList2Base
 
struct  cv::GInferListBase
 
struct  cv::GInferOutputs
 G-API object used to collect network outputs. More...
 
struct  cv::GInferROI< Net, T >
 
struct  cv::GInferROIBase
 
struct  cv::gapi::GNetPackage
 A container class for network configurations. Similar to GKernelPackage.Use cv::gapi::networks() to construct this object. More...
 
struct  cv::gapi::GNetParam
 
class  cv::GNetworkType< typename, typename >
 
class  cv::GNetworkType< K, std::function< R(Args...)> >
 
class  cv::GNetworkType< K, std::function< std::tuple< R... >(Args...)> >
 
struct  cv::InferAPI< Net, Ts >
 
struct  cv::InferAPIList< Net, Ts >
 
struct  cv::InferAPIList2< Net, T, Ts >
 
struct  cv::InferAPIRoi< Net, T >
 
struct  cv::InOutInfo
 
struct  cv::detail::valid_infer2_types< typename, typename >
 
struct  cv::detail::valid_infer2_types< std::tuple< Ns... >, std::tuple<> >
 
struct  cv::detail::valid_infer2_types< std::tuple<>, std::tuple< Ts... > >
 

Namespaces

 cv
 "black box" representation of the file storage associated with a file on disk.
 
 cv::detail
 
 cv::gapi
 

Macros

#define G_API_NET(Class, API, Tag)
 

Typedefs

template<typename... Ts>
using cv::detail::valid_infer_types = all_satisfy< accepted_infer_types, Ts... >
 

Functions

template<typename Net , typename T >
Net::Result cv::gapi::infer (cv::GOpaque< cv::Rect > roi, T in)
 Calculates response for the specified network (template parameter) for the specified region in the source image. Currently expects a single-input network only. More...
 
template<typename Net , typename... Args>
Net::ResultL cv::gapi::infer (cv::GArray< cv::Rect > roi, Args &&... args)
 Calculates responses for the specified network (template parameter) for every region in the source image. More...
 
template<typename Net , typename... Args>
Net::Result cv::gapi::infer (Args &&... args)
 Calculates response for the specified network (template parameter) given the input data. More...
 
template<typename T = Generic>
GInferOutputs cv::gapi::infer (const std::string &tag, const GInferInputs &inputs)
 Calculates response for generic network. More...
 
template<typename Net , typename T , typename... Args>
Net::ResultL cv::gapi::infer2 (T image, cv::GArray< Args >... args)
 Calculates responses for the specified network (template parameter) for every region in the source image, extended version. More...
 
template<typename... Args>
cv::gapi::GNetPackage cv::gapi::networks (Args &&... args)
 
template<typename T >
gapi::GNetParam cv::detail::strip (T &&t)
 

Macro Definition Documentation

◆ G_API_NET

#define G_API_NET (   Class,
  API,
  Tag 
)
Value:
struct Class final: public cv::GNetworkType<Class, std::function API> { \
static constexpr const char * tag() { return Tag; } \
}
Definition: infer.hpp:28