OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
infer.hpp 檔案參考
#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>
infer.hpp 的包含依賴關係圖
此圖顯示了直接或間接包含此檔案的檔案

結構體  cv::detail::accepted_infer_types< T >
 
結構體  cv::detail::CompileArgTag< cv::gapi::GNetPackage >
 
結構體  cv::gapi::Generic
 Generic 網路型別:輸入和輸出層在執行時動態配置。 更多...
 
結構體  cv::GInfer< Net, Args >
 
結構體  cv::GInferBase
 
類  cv::detail::GInferInputsTyped< Ts >
 
結構體  cv::GInferList< Net, Args >
 
結構體  cv::GInferList2< Net, T, Args >
 
結構體  cv::GInferList2Base
 
結構體  cv::GInferListBase
 
類  cv::detail::GInferOutputsTyped< OutT >
 
結構體  cv::GInferROI< Net, T >
 
結構體  cv::GInferROIBase
 
結構體  cv::gapi::GNetPackage
 網路配置的容器類。類似於 GKernelPackage。使用 cv::gapi::networks() 構造此物件。 更多...
 
類  cv::GNetworkType< K, std::function< R(Args...)> >
 
類  cv::GNetworkType< K, std::function< std::tuple< R... >(Args...)> >
 
結構體  cv::InferAPI< Net, Ts >
 
結構體  cv::InferAPIList< Net, Ts >
 
結構體  cv::InferAPIList2< Net, T, Ts >
 
結構體  cv::InferAPIRoi< Net, T >
 
結構體  cv::detail::InferROITraits< GInferListBase >
 
結構體  cv::detail::InferROITraits< GInferROIBase >
 
結構體  cv::detail::InOutInfo
 
結構體  cv::detail::valid_infer2_types< std::tuple< Ns... >, std::tuple<> >
 
結構體  cv::detail::valid_infer2_types< std::tuple<>, std::tuple< Ts... > >
 

名稱空間

名稱空間  cv
 
名稱空間  cv::detail
 
名稱空間  cv::gapi
 

#define G_API_NET(Class, API, Tag)
 

型別定義

using cv::GInferInputs = cv::detail::GInferInputsTyped<cv::GMat, cv::GFrame>
 用於收集網路輸入的G-API物件。
 
using cv::GInferListInputs = cv::detail::GInferInputsTyped<cv::GArray<cv::GMat>, cv::GArray<cv::Rect>>
 用於收集網路輸入列表的G-API物件。
 
using cv::GInferListOutputs = cv::detail::GInferOutputsTyped<cv::GArray<cv::GMat>>
 用於收集網路輸出列表的G-API物件。
 
using cv::GInferOutputs = cv::detail::GInferOutputsTyped<cv::GMat>
 用於收集網路輸出的G-API物件。
 
template<typename... Ts>
using cv::detail::valid_infer_types = all_satisfy<accepted_infer_types, Ts...>
 

函式

template<typename Net , typename... Args>
Net::Result cv::gapi::infer (Args &&... args)
 計算給定輸入資料的指定網路(模板引數)的響應。
 
template<typename T = Generic>
cv::GInferListOutputs cv::gapi::infer (const std::string &tag, const cv::GArray< cv::Rect > &rois, const cv::GInferInputs &inputs)
 計算源影像中每個區域的指定網路的響應。
 
template<typename T = Generic>
cv::GInferOutputs cv::gapi::infer (const std::string &tag, const cv::GInferInputs &inputs)
 計算通用網路的響應。
 
template<typename T = Generic>
cv::GInferOutputs cv::gapi::infer (const std::string &tag, const cv::GOpaque< cv::Rect > &roi, const cv::GInferInputs &inputs)
 計算源影像中指定區域的通用網路的響應。目前只期望單輸入網路。
 
template<typename Net , typename... Args>
Net::ResultL cv::gapi::infer (cv::GArray< cv::Rect > roi, Args &&... args)
 計算源影像中每個區域的指定網路(模板引數)的響應。
 
template<typename Net , typename T >
Net::Result cv::gapi::infer (cv::GOpaque< cv::Rect > roi, T in)
 計算源影像中指定區域的指定網路(模板引數)的響應。目前只期望單輸入網路。
 
template<typename T = Generic, typename Input >
std::enable_if< cv::detail::accepted_infer_types< Input >::value, cv::GInferListOutputs >::type cv::gapi::infer2 (const std::string &tag, const Input &in, const cv::GInferListInputs &inputs)
 計算源影像中每個區域的指定網路的響應,擴充套件版本。
 
template<typename Net , typename T , typename... Args>
Net::ResultL cv::gapi::infer2 (T image, cv::GArray< Args >... args)
 計算源影像中每個區域的指定網路(模板引數)的響應,擴充套件版本。
 
template<typename InferType >
InferROITraits< InferType >::outType cv::detail::inferGenericROI (const std::string &tag, const typename InferROITraits< InferType >::inType &in, const cv::GInferInputs &inputs)
 
template<typename InferT >
std::shared_ptr< cv::GCallcv::detail::makeCall (const std::string &tag, std::vector< cv::GArg > &&args, std::vector< std::string > &&names, cv::GKinds &&kinds)
 
template<typename... Args>
cv::gapi::GNetPackage cv::gapi::networks (Args &&... args)
 
cv::gapi::GNetPackagecv::gapi::operator+= (cv::gapi::GNetPackage &lhs, const cv::gapi::GNetPackage &rhs)
 
template<typename T >
gapi::GNetParam cv::detail::strip (T &&t)
 
void cv::detail::unpackBlobs (const cv::GInferInputs::Map &blobs, std::vector< cv::GArg > &args, std::vector< std::string > &names, cv::GKinds &kinds)
 

宏定義文件

◆ G_API_NET

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