1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

js: Add findHomography js bindings.

Removed constants from legacy C api and switched out header with shorter version.

Removed blank line that was failing CI.
This commit is contained in:
Cameron Martin
2019-04-12 00:13:12 +01:00
parent d8c5bd92ae
commit 0ae053fdf8
6 changed files with 54 additions and 4 deletions
+3 -1
View File
@@ -142,6 +142,8 @@ features2d = {'Feature2D': ['detect', 'compute', 'detectAndCompute', 'descriptor
'BFMatcher': ['isMaskSupported', 'create'],
'': ['drawKeypoints', 'drawMatches']}
calib3d = {'': ['findHomography']}
def makeWhiteList(module_list):
wl = {}
for m in module_list:
@@ -152,7 +154,7 @@ def makeWhiteList(module_list):
wl[k] = m[k]
return wl
white_list = makeWhiteList([core, imgproc, objdetect, video, dnn, features2d])
white_list = makeWhiteList([core, imgproc, objdetect, video, dnn, features2d, calib3d])
# Features to be exported
export_enums = False