Commit 2f891583 authored by Pavel Rojtberg's avatar Pavel Rojtberg

js: allow building with basic aruco functionality

parent 27d15894
...@@ -79,6 +79,9 @@ using namespace cv; ...@@ -79,6 +79,9 @@ using namespace cv;
using namespace dnn; using namespace dnn;
#endif #endif
#ifdef HAVE_OPENCV_ARUCO
using namespace aruco;
#endif
namespace binding_utils namespace binding_utils
{ {
......
...@@ -163,6 +163,13 @@ photo = {'': ['createAlignMTB', 'createCalibrateDebevec', 'createCalibrateRobert ...@@ -163,6 +163,13 @@ photo = {'': ['createAlignMTB', 'createCalibrateDebevec', 'createCalibrateRobert
'getColorAdaptation', 'setColorAdaptation'] '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): def makeWhiteList(module_list):
wl = {} wl = {}
for m in module_list: for m in module_list:
...@@ -173,7 +180,7 @@ def makeWhiteList(module_list): ...@@ -173,7 +180,7 @@ def makeWhiteList(module_list):
wl[k] = m[k] wl[k] = m[k]
return wl 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 # Features to be exported
export_enums = False export_enums = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment