Skip to content

Wrap dnn addLayer#25709

Merged
asmorkalov merged 2 commits intoopencv:4.xfrom
dkurt:wrap_addLayer
Jun 7, 2024
Merged

Wrap dnn addLayer#25709
asmorkalov merged 2 commits intoopencv:4.xfrom
dkurt:wrap_addLayer

Conversation

@dkurt
Copy link
Copy Markdown
Member

@dkurt dkurt commented Jun 5, 2024

Pull Request Readiness Checklist

related: #25707

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

@dkurt dkurt mentioned this pull request Jun 5, 2024
@asmorkalov asmorkalov added this to the 4.11.0 milestone Jun 5, 2024
@asmorkalov
Copy link
Copy Markdown
Contributor

[224/2079] Generate files for Python bindings and documentation
/home/ci/opencv/modules/python/src2/typing_stubs_generator.py:52: UserWarning: Typing stubs generation has failed.
Traceback (most recent call last):
  File "/home/ci/opencv/modules/python/src2/typing_stubs_generator.py", line 49, in wrapped_func
    ret_type = func(*args, **kwargs)
  File "/home/ci/opencv/modules/python/src2/typing_stubs_generator.py", line 148, in _generate
    generate_typing_stubs(self.cv_root, output_path)
  File "/home/ci/opencv/modules/python/src2/typing_stubs_generation/generation.py", line 90, in generate_typing_stubs
    root.resolve_type_nodes()
  File "/home/ci/opencv/modules/python/src2/typing_stubs_generation/nodes/namespace_node.py", line 106, in resolve_type_nodes
    raise TypeResolutionError(
typing_stubs_generation.nodes.type_node.TypeResolutionError: Failed to resolve "cv2" namespace against "None". Errors: ['Failed to resolve "cv2.dnn" namespace against "cv2". Errors: [\'Failed to resolve "cv2.dnn.Net" class against "cv2". Errors: [\\\'Failed to resolve "cv2.dnn.Net.addLayer" function against "cv2". Errors: [0]: Failed to resolve "params" argument: Failed to resolve "LayerParams" exposed as "LayerParams"\\\', \\\'Failed to resolve "cv2.dnn.Net.addLayerToPrev" function against "cv2". Errors: [0]: Failed to resolve "params" argument: Failed to resolve "LayerParams" exposed as "LayerParams"\\\']\']']

  warnings.warn(
Note: Class cv::Feature2D has more than 1 base class (not supported by Python C extensions)
      Bases:  cv::Algorithm, cv::class, cv::Feature2D, cv::Algorithm
      Only the first base class will be used
Note: Class cv::detail::GraphCutSeamFinder has more than 1 base class (not supported by Python C extensions)
      Bases:  cv::detail::GraphCutSeamFinderBase, cv::detail::SeamFinder
      Only the first base class will be used

@dkurt dkurt marked this pull request as ready for review June 7, 2024 11:09
@asmorkalov asmorkalov self-requested a review June 7, 2024 17:38
@asmorkalov asmorkalov merged commit 3700f9e into opencv:4.x Jun 7, 2024
@dkurt dkurt deleted the wrap_addLayer branch June 8, 2024 07:31
kozinove pushed a commit to itlab-vision/opencv_framebuffer that referenced this pull request Jun 10, 2024
* Wrap dnn addLayer
* Add typing stubs
@mshabunin mshabunin mentioned this pull request Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants