opencv_contrib
opencv_contrib copied to clipboard
ChArUco pre460 pattern support via legacy switch - true by default.
Support pre- and post-4.6.0 ChaRuCo patterns (even rows) via a "legacy" flag. Default is set to "true" for best backwards compatibility as discussed in https://github.com/opencv/opencv_contrib/issues/3291.
- [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
- [X] The PR is proposed to the proper branch
- [X] There is a reference to the original bug report and related work
- [X] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name.
- [X] The feature is well documented and sample code can be built with the project CMake
Also fixed issue Function interpolateCornersCharuco misplace corners #3301
Patch updated to resolve latest 4.x development conflicts. @AleksandrPanov, please review.
@AleksandrPanov , @asmorkalov any feedback on this pull-request? Can you please review, approve, merge? I'd be also sufficiently happy with "false by default".
Hello,
I use post-4.6.0 version of ChaRuCo printed patterns. I noticed that interpolateCornersCharuco misplace corners. The markers are detected correctly but so of the corners as you can see in the attached image are misplaced. This did not happen in version 4.4.
When will the fix for this be available?

@AleksandrPanov Please take a look on the issue with corners.
I am
Hello,
I use post-4.6.0 version of ChaRuCo printed patterns. I noticed that interpolateCornersCharuco misplace corners. The markers are detected correctly but so of the corners as you can see in the attached image are misplaced. This did not happen in version 4.4.
When will the fix for this be available?
Also, here's the image showing the markers being detected correctly.

I am
Hello, I use post-4.6.0 version of ChaRuCo printed patterns. I noticed that interpolateCornersCharuco misplace corners. The markers are detected correctly but so of the corners as you can see in the attached image are misplaced. This did not happen in version 4.4. When will the fix for this be available?
Also, here's the image showing the markers being detected correctly.
Did some digging into it and I can confirm that it was working as expected until opencv version 4.5.5.64
@apurvazaveri, although related, this patch will (most likely) not fix this issue. Probably best if you raise a new issue, adding some more details on how to reproduce it, e.g. dictionary and board creation parameters etc.
@apurvazaveri, although related, this patch will (most likely) not fix this issue. Probably best if you raise a new issue, adding some more details on how to reproduce it, e.g. dictionary and board creation parameters etc.
Sure, I will do it.
Fixed in main branch by https://github.com/opencv/opencv/pull/23153 for next OpenCV release 4.8.0.
Thanks, I will test it and get back to you!