diff --git a/modules/js/src/core_bindings.cpp b/modules/js/src/core_bindings.cpp index c48ffb966c..554f95aa83 100644 --- a/modules/js/src/core_bindings.cpp +++ b/modules/js/src/core_bindings.cpp @@ -79,6 +79,9 @@ using namespace cv; using namespace dnn; #endif +#ifdef HAVE_OPENCV_ARUCO +using namespace aruco; +#endif namespace binding_utils { diff --git a/modules/js/src/embindgen.py b/modules/js/src/embindgen.py index 3a7a977774..8e406e0388 100644 --- a/modules/js/src/embindgen.py +++ b/modules/js/src/embindgen.py @@ -163,6 +163,13 @@ photo = {'': ['createAlignMTB', 'createCalibrateDebevec', 'createCalibrateRobert 'getColorAdaptation', 'setColorAdaptation'] } +aruco = {'': ['detectMarkers', 'drawDetectedMarkers', 'drawAxis', 'estimatePoseSingleMarkers', 'estimatePoseBoard', 'interpolateCornersCharuco', 'drawDetectedCornersCharuco'], + 'aruco_Dictionary': ['get', 'drawMarker'], + 'aruco_Board': ['create'], + 'aruco_GridBoard': ['create', 'draw'], + 'aruco_CharucoBoard': ['create', 'draw'], + } + def makeWhiteList(module_list): wl = {} for m in module_list: @@ -173,7 +180,7 @@ def makeWhiteList(module_list): wl[k] = m[k] return wl -white_list = makeWhiteList([core, imgproc, objdetect, video, dnn, features2d, photo]) +white_list = makeWhiteList([core, imgproc, objdetect, video, dnn, features2d, photo, aruco]) # Features to be exported export_enums = False