Skip to content

Added CV_PROP_RW macro to keypoints #21180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 5, 2021
Merged

Added CV_PROP_RW macro to keypoints #21180

merged 2 commits into from
Dec 5, 2021

Conversation

tejasmr
Copy link
Contributor

@tejasmr tejasmr commented Dec 2, 2021

As outlined in the feature request in the issue #21171 : the keypoints field has been made parsable by the bindings.

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 other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to 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

As outlined in the feature request in the issue #21171 : the keypoints field has been made parsable by the bindings.
@alalek
Copy link
Member

alalek commented Dec 3, 2021

Thank you for contribution!

Please add simple Python test to ensure that this code works as expected:
https://github.com/opencv/opencv/blob/4.x/modules/stitching/misc/python/test/test_stitching.py

Prefer to test binding itself, not an accuracy of C++ code.

@tejasmr
Copy link
Contributor Author

tejasmr commented Dec 3, 2021

@alalek Please check if the added test is correct and I am happy to follow up.

@alalek
Copy link
Member

alalek commented Dec 4, 2021

Thank you for update!

There is a whitespace issue in this PR: http://pullrequest.opencv.org/buildbot/builders/precommit_docs/builds/33206 (line of spaces)

But commits for this PR broke GitHub review page and we don't see malicious changes here.

Merge branch 'opencv:4.x' into 4.x

We don't need this commit at all.
Please remove this commit from PR. E.g, you can use git reset --hard HEAD~1 and then git push --force ...
Do NOT update "4.x" branch of your fork with unrelated changes of your fork until PR merge. See below.

from tezz-io:4.x
4.x

It is better to avoid using source branches with the names from upstream for creation of PRs.
You may want to update your fork but also this pushing unwanted updates to PRs, which we should avoid.

Added test to check if the CV_PROP_RW macro added in the previous commit makes keypoints public and accessible through the python API.
@tejasmr
Copy link
Contributor Author

tejasmr commented Dec 4, 2021

I have rolled back the merge and removed the whitespace new line. Please check if it works now. Thank you.

Copy link
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

Thank you 👍

@alalek alalek merged commit 676a724 into opencv:4.x Dec 5, 2021
@alalek alalek mentioned this pull request Dec 30, 2021
@alalek alalek mentioned this pull request Feb 22, 2022
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
Added CV_PROP_RW macro to keypoints

* Added CV_PROP_RW macro to keypoints

As outlined in the feature request in the issue opencv#21171 : the keypoints field has been made parsable by the bindings.

* Added test for keypoints

Added test to check if the CV_PROP_RW macro added in the previous commit makes keypoints public and accessible through the python API.
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.

[SOLVED] Public attribute (keypoints) missing from cv2.detail_ImageFeatures() object despite it existing in matchers.hpp
2 participants