mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
3f14cb073b
[G-API] Introduce custom python operator API * Introduce custom python operator API * Add wip namespace
68 lines
2.2 KiB
C++
68 lines
2.2 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
|
|
{
|
|
GAPI_EXPORTS_W gapi::GNetPackage networks(const cv::gapi::ie::PyParams& params);
|
|
namespace wip
|
|
{
|
|
class GAPI_EXPORTS_W IStreamSource { };
|
|
} // namespace wip
|
|
} // namespace gapi
|
|
} // namespace cv
|