Skip to content

Python: allow to customize Python namespaces#19816

Merged
opencv-pushbot merged 2 commits intoopencv:masterfrom
alalek:python_customize_namespaces
Apr 1, 2021
Merged

Python: allow to customize Python namespaces#19816
opencv-pushbot merged 2 commits intoopencv:masterfrom
alalek:python_customize_namespaces

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Mar 31, 2021

  • extra methods through PYOPENCV_EXTRA_METHODS_<NS_UPPER> macros
  • extra constants through PYOPENCV_EXTRA_CONSTANTS_<NS_UPPER> macros
  • rename cv.gapi_wip_op => cv.gapi.wip.op
  • rename cv.gapi_wip_kernels => cv.gapi.wip.kernels
  • Validation: help(cv.gapi.wip)

Requested here:

Help on module cv2.gapi.wip in cv2.gapi:

NAME
    cv2.gapi.wip

FUNCTIONS
    kernels(...)
        kernels(...) -> GKernelPackage
    
    make_capture_src(...)
        make_capture_src(path) -> retval
        .   * @brief OpenCV's VideoCapture-based streaming source.
        .    *
        .    * This class implements IStreamSource interface.
        .    * Its constructor takes the same parameters as cv::VideoCapture does.
        .    *
        .    * Please make sure that videoio OpenCV module is available before using
        .    * this in your application (G-API doesn't depend on it directly).
        .    *
        .    * @note stream sources are passed to G-API via shared pointers, so
        .    *  please gapi::make_src<> to create objects and ptr() to pass a
        .    *  GCaptureSource to cv::gin().
    
    op(...)
        kernels(...) -> retval

FILE
    (built-in)

(END)
force_builders=Custom,Custom Win,Custom Mac
build_gapi_standalone:Linux x64=ade-0.1.1f
build_gapi_standalone:Win64=ade-0.1.1f
build_gapi_standalone:Mac=ade-0.1.1f
build_gapi_standalone:Linux x64 Debug=ade-0.1.1f

build_image:Custom=centos:7
buildworker:Custom=linux-1
build_gapi_standalone:Custom=ade-0.1.1f

build_image:Custom Win=openvino-2021.3.0
build_image:Custom Mac=openvino-2021.3.0

test_modules:Custom=gapi,python2,python3,java
test_modules:Custom Win=gapi,python2,python3,java
test_modules:Custom Mac=gapi,python2,python3,java

Xbuild_image:Custom=ubuntu-openvino-2021.3.0:20.04
Xbuildworker:Custom=linux-1
# disabled due high memory usage: test_opencl:Custom=ON
Xtest_opencl:Custom=OFF
Xtest_bigdata:Custom=1
Xtest_filter:Custom=*

allow_multiple_commits=1

alalek added 2 commits March 31, 2021 20:33
- extra methods through PYOPENCV_EXTRA_METHODS_<NS_UPPER> macros
- extra constants through PYOPENCV_EXTRA_CONSTANTS_<NS_UPPER> macros
Copy link
Copy Markdown
Contributor

@TolyaTalamanov TolyaTalamanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 🔥

Thanks a lot!
LGTM 👍

@opencv-pushbot opencv-pushbot merged commit 69341ed into opencv:master Apr 1, 2021
@alalek alalek mentioned this pull request Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants