From dea9ce421d687c49ec374ff0a4e917c375e5ef89 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov <2536374+asmorkalov@users.noreply.github.com> Date: Mon, 10 Aug 2026 19:45:53 +0300 Subject: [PATCH] Merge pull request #28517 from asmorkalov:as/charuco_bindings Fixed bindings generation for Charuco boards #28517 Fixes https://github.com/opencv/opencv/issues/28512 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [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 - [ ] 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 --- modules/objdetect/include/opencv2/objdetect/aruco_board.hpp | 4 ++-- modules/objdetect/misc/objc/gen_dict.json | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/objdetect/include/opencv2/objdetect/aruco_board.hpp b/modules/objdetect/include/opencv2/objdetect/aruco_board.hpp index e8300c82bf..ec6c6bda55 100644 --- a/modules/objdetect/include/opencv2/objdetect/aruco_board.hpp +++ b/modules/objdetect/include/opencv2/objdetect/aruco_board.hpp @@ -168,11 +168,11 @@ public: /** @brief get CharucoBoard::nearestMarkerIdx, for each charuco corner, nearest marker index in ids array */ - CV_PROP std::vector > getNearestMarkerIdx() const; + CV_WRAP std::vector > getNearestMarkerIdx() const; /** @brief get CharucoBoard::nearestMarkerCorners, for each charuco corner, nearest marker corner id of each marker */ - CV_PROP std::vector > getNearestMarkerCorners() const; + CV_WRAP std::vector > getNearestMarkerCorners() const; /** @brief check whether the ChArUco markers are collinear * diff --git a/modules/objdetect/misc/objc/gen_dict.json b/modules/objdetect/misc/objc/gen_dict.json index 0311e1e5d6..73d7ada064 100644 --- a/modules/objdetect/misc/objc/gen_dict.json +++ b/modules/objdetect/misc/objc/gen_dict.json @@ -2,6 +2,10 @@ "ManualFuncs" : { "QRCodeDetectorAruco": { "getDetectorParameters": { "declaration" : [""], "implementation" : [""] } + }, + "CharucoBoard": { + "getNearestMarkerIdx" : { "declaration" : [""], "implementation" : [""] }, + "getNearestMarkerCorners" : { "declaration" : [""], "implementation" : [""] } } } }