shadow_gapi.hpp 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #error This is a shadow header file, which is not intended for processing by any compiler. \
  2. Only bindings parser should handle this file.
  3. namespace cv
  4. {
  5. struct GAPI_EXPORTS_W_SIMPLE GCompileArg
  6. {
  7. GAPI_WRAP GCompileArg(GKernelPackage arg);
  8. GAPI_WRAP GCompileArg(gapi::GNetPackage arg);
  9. GAPI_WRAP GCompileArg(gapi::streaming::queue_capacity arg);
  10. };
  11. class GAPI_EXPORTS_W_SIMPLE GInferInputs
  12. {
  13. public:
  14. GAPI_WRAP GInferInputs();
  15. GAPI_WRAP GInferInputs& setInput(const std::string& name, const cv::GMat& value);
  16. GAPI_WRAP GInferInputs& setInput(const std::string& name, const cv::GFrame& value);
  17. };
  18. class GAPI_EXPORTS_W_SIMPLE GInferListInputs
  19. {
  20. public:
  21. GAPI_WRAP GInferListInputs();
  22. GAPI_WRAP GInferListInputs setInput(const std::string& name, const cv::GArray<cv::GMat>& value);
  23. GAPI_WRAP GInferListInputs setInput(const std::string& name, const cv::GArray<cv::Rect>& value);
  24. };
  25. class GAPI_EXPORTS_W_SIMPLE GInferOutputs
  26. {
  27. public:
  28. GAPI_WRAP GInferOutputs();
  29. GAPI_WRAP cv::GMat at(const std::string& name);
  30. };
  31. class GAPI_EXPORTS_W_SIMPLE GInferListOutputs
  32. {
  33. public:
  34. GAPI_WRAP GInferListOutputs();
  35. GAPI_WRAP cv::GArray<cv::GMat> at(const std::string& name);
  36. };
  37. namespace gapi
  38. {
  39. namespace wip
  40. {
  41. class GAPI_EXPORTS_W IStreamSource { };
  42. namespace draw
  43. {
  44. // NB: These render primitives are partially wrapped in shadow file
  45. // because cv::Rect conflicts with cv::gapi::wip::draw::Rect in python generator
  46. // and cv::Rect2i breaks standalone mode.
  47. struct Rect
  48. {
  49. GAPI_WRAP Rect(const cv::Rect2i& rect_,
  50. const cv::Scalar& color_,
  51. int thick_ = 1,
  52. int lt_ = 8,
  53. int shift_ = 0);
  54. };
  55. struct Mosaic
  56. {
  57. GAPI_WRAP Mosaic(const cv::Rect2i& mos_, int cellSz_, int decim_);
  58. };
  59. } // namespace draw
  60. } // namespace wip
  61. namespace streaming
  62. {
  63. // FIXME: Extend to work with an arbitrary G-type.
  64. cv::GOpaque<int64_t> GAPI_EXPORTS_W timestamp(cv::GMat);
  65. cv::GOpaque<int64_t> GAPI_EXPORTS_W seqNo(cv::GMat);
  66. cv::GOpaque<int64_t> GAPI_EXPORTS_W seq_id(cv::GMat);
  67. GAPI_EXPORTS_W cv::GMat desync(const cv::GMat &g);
  68. } // namespace streaming
  69. } // namespace gapi
  70. namespace detail
  71. {
  72. gapi::GNetParam GAPI_EXPORTS_W strip(gapi::ie::PyParams params);
  73. } // namespace detail
  74. } // namespace cv