Skip to content

Restore predefined G-API types in Python type stubs generator#26527

Merged
asmorkalov merged 1 commit intoopencv:5.xfrom
asmorkalov:as/gapi_migration
Nov 27, 2024
Merged

Restore predefined G-API types in Python type stubs generator#26527
asmorkalov merged 1 commit intoopencv:5.xfrom
asmorkalov:as/gapi_migration

Conversation

@asmorkalov
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov commented Nov 26, 2024

Related to #26469
Needed for opencv/opencv_contrib#3827
Partially address opencv/opencv-python#1010

The PR add required_modules field to all Nodes. It allows to assign some custom data types to particular modules and skip them, if the module is not enabled.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@asmorkalov asmorkalov changed the title Restore predefined G-API types in Python type stubs generator. WIP: Restore predefined G-API types in Python type stubs generator. Nov 27, 2024
@asmorkalov asmorkalov changed the title WIP: Restore predefined G-API types in Python type stubs generator. Restore predefined G-API types in Python type stubs generator Nov 27, 2024
@asmorkalov asmorkalov added this to the 5.0-alpha milestone Nov 27, 2024
@asmorkalov asmorkalov merged commit e1ba8f2 into opencv:5.x Nov 27, 2024
asmorkalov added a commit to opencv/opencv_contrib that referenced this pull request Nov 27, 2024
Migrate G-API module from main repo to opencv_contrib #3827

Related to opencv/opencv#26469
Required opencv/opencv#26527
CI: opencv/ci-gha-workflow#201

TODO:
- [x]  Python types generator fix
- [x] CI update

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
@asmorkalov asmorkalov added the port/backport done Label for maintainers. Authors of PR can ignore this label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: g-api / gapi category: python bindings port/backport done Label for maintainers. Authors of PR can ignore this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants