OpenCV 5.0.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
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>
Include dependency graph for infer.hpp:
This graph shows which files directly or indirectly include this file:

クラス

struct  cv::detail::accepted_infer_types< T >
 
struct  cv::detail::CompileArgTag< cv::gapi::GNetPackage >
 
struct  cv::gapi::Generic
 Generic ネットワーク型: 入力層と出力層は実行時に動的に構成される。 続き...
 
struct  cv::GInfer< Net, Args >
 
struct  cv::GInferBase
 
class  cv::detail::GInferInputsTyped< Ts >
 
struct  cv::GInferList< Net, Args >
 
struct  cv::GInferList2< Net, T, Args >
 
struct  cv::GInferList2Base
 
struct  cv::GInferListBase
 
class  cv::detail::GInferOutputsTyped< OutT >
 
struct  cv::GInferROI< Net, T >
 
struct  cv::GInferROIBase
 
struct  cv::gapi::GNetPackage
 ネットワーク設定のためのコンテナクラス。GKernelPackage に類似する。このオブジェクトを構築するには cv::gapi::networks() を使用する。 続き...
 
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::detail::InferROITraits< GInferListBase >
 
struct  cv::detail::InferROITraits< GInferROIBase >
 
struct  cv::detail::InOutInfo
 
struct  cv::detail::valid_infer2_types< std::tuple< Ns... >, std::tuple<> >
 
struct  cv::detail::valid_infer2_types< std::tuple<>, std::tuple< Ts... > >
 

名前空間

namespace  cv
 
namespace  cv::detail
 
namespace  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 )
Value:
struct Class final: public cv::GNetworkType<Class, std::function API> { \
static constexpr const char * tag() { return Tag; } \
}
Definition infer.hpp:28