mirror of
https://github.com/opencv/opencv.git
synced 2024-12-14 00:39:13 +08:00
2610724ee0
G-API: Python. Wrapper for networks. * Python networks * Added pyopencv_to * Changed work with pyopencv_to
67 lines
2.1 KiB
C++
67 lines
2.1 KiB
C++
#error This is a shadow header file, which is not intended for processing by any compiler. \
|
|
Only bindings parser should handle this file.
|
|
|
|
namespace cv
|
|
{
|
|
struct GAPI_EXPORTS_W_SIMPLE GCompileArg { };
|
|
|
|
GAPI_EXPORTS_W GCompileArgs compile_args(gapi::GKernelPackage pkg);
|
|
GAPI_EXPORTS_W GCompileArgs compile_args(gapi::GNetPackage pkg);
|
|
GAPI_EXPORTS_W GCompileArgs compile_args(gapi::GKernelPackage kernels, gapi::GNetPackage nets);
|
|
|
|
// NB: This classes doesn't exist in *.so
|
|
// HACK: Mark them as a class to force python wrapper generate code for this entities
|
|
class GAPI_EXPORTS_W_SIMPLE GProtoArg { };
|
|
class GAPI_EXPORTS_W_SIMPLE GProtoInputArgs { };
|
|
class GAPI_EXPORTS_W_SIMPLE GProtoOutputArgs { };
|
|
class GAPI_EXPORTS_W_SIMPLE GRunArg { };
|
|
class GAPI_EXPORTS_W_SIMPLE GMetaArg { GAPI_WRAP GMetaArg(); };
|
|
|
|
using GProtoInputArgs = GIOProtoArgs<In_Tag>;
|
|
using GProtoOutputArgs = GIOProtoArgs<Out_Tag>;
|
|
|
|
class GAPI_EXPORTS_W_SIMPLE GInferInputs
|
|
{
|
|
public:
|
|
GAPI_WRAP GInferInputs();
|
|
GAPI_WRAP void setInput(const std::string& name, const cv::GMat& value);
|
|
GAPI_WRAP void setInput(const std::string& name, const cv::GFrame& value);
|
|
};
|
|
|
|
class GAPI_EXPORTS_W_SIMPLE GInferListInputs
|
|
{
|
|
public:
|
|
GAPI_WRAP GInferListInputs();
|
|
GAPI_WRAP void setInput(const std::string& name, const cv::GArray<cv::GMat>& value);
|
|
GAPI_WRAP void setInput(const std::string& name, const cv::GArray<cv::Rect>& value);
|
|
};
|
|
|
|
class GAPI_EXPORTS_W_SIMPLE GInferOutputs
|
|
{
|
|
public:
|
|
GAPI_WRAP GInferOutputs();
|
|
GAPI_WRAP cv::GMat at(const std::string& name);
|
|
};
|
|
|
|
class GAPI_EXPORTS_W_SIMPLE GInferListOutputs
|
|
{
|
|
public:
|
|
GAPI_WRAP GInferListOutputs();
|
|
GAPI_WRAP cv::GArray<cv::GMat> at(const std::string& name);
|
|
};
|
|
|
|
namespace detail
|
|
{
|
|
struct GAPI_EXPORTS_W_SIMPLE ExtractArgsCallback { };
|
|
struct GAPI_EXPORTS_W_SIMPLE ExtractMetaCallback { };
|
|
} // namespace detail
|
|
|
|
namespace gapi
|
|
{
|
|
namespace wip
|
|
{
|
|
class GAPI_EXPORTS_W IStreamSource { };
|
|
} // namespace wip
|
|
} // namespace gapi
|
|
} // namespace cv
|