Skip to content

Document some stitching methods and enable bindings for them.#26516

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/pano_component_wrap
Nov 28, 2024
Merged

Document some stitching methods and enable bindings for them.#26516
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/pano_component_wrap

Conversation

@asmorkalov
Copy link
Copy Markdown
Contributor

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


/** Returns estimated camera parameters for all stitched images
*/
CV_WRAP std::vector<cv::detail::CameraParams> cameras() const { return cameras_; }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As I can see setTransform method is not wrapped, it seems that is not possible to set cameras_ from Python.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is issue in current generator implementation:

In file included from /mnt/Projects/Projects/opencv/modules/python/src2/cv2.cpp:88:
/mnt/Projects/Projects/opencv-build/modules/python_bindings_generator/pyopencv_generated_types_content.h: In function ‘PyObject* pyopencv_cv_Stitcher_setTransform(PyObject*, PyObject*, PyObject*)’:
/mnt/Projects/Projects/opencv-build/modules/python_bindings_generator/pyopencv_generated_types_content.h:21351:5: error: ‘vector_detail_CameraParams’ was not declared in this scope; did you mean ‘vector_CameraParams’?
21351 |     vector_detail_CameraParams cameras;

Let's handle it separately.

@asmorkalov asmorkalov merged commit a27d749 into opencv:4.x Nov 28, 2024
@asmorkalov asmorkalov mentioned this pull request Nov 28, 2024
@asmorkalov asmorkalov mentioned this pull request Jan 15, 2025
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.

2 participants