Skip to content
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

Fix compatibility with OpenCV 4.7.0 #589

Merged
merged 2 commits into from
Jan 31, 2023

Conversation

traversaro
Copy link
Collaborator

Fix #586 .

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Stefano Dafarra <stefano.dafarra@gmail.com>
@traversaro
Copy link
Collaborator Author

I guess also @prashanthr05 may be interested on this.

@@ -55,6 +55,11 @@ class ArucoDetector::Impl
/**
* Utility map for choosing Aruco marker dictionary depending on user parameter
*/
// TODO(traversaro): when we drop support for OpenCV < 4.7.0, we can cleanup this part
// we can also check if there are other dictionary that should be added here
#if (CV_VERSION_MAJOR >= 5) || (CV_VERSION_MAJOR == 4 && CV_VERSION_MINOR >= 7)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, there are certainly other dictionaries to be added here. I remember experiencing this issue earlier and purposefully leaving out some dictionaries from the lookup.

Apriltags are not added here. https://docs.opencv.org/3.4/dc/df7/dictionary_8hpp.html

@GiulioRomualdi
Copy link
Member

Thank you @traversaro

@GiulioRomualdi GiulioRomualdi merged commit 91527ad into ami-iit:master Jan 31, 2023
@traversaro traversaro deleted the supportopencv47 branch January 31, 2023 11:51
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.

Compilation error with OpenCV 4.7
4 participants