Is it feasible to merge some Web-Sight and Quramy bindings with master ? I don't really know how it can be done, but I would like to do it if so.
It is used for example by @Quramy in his feature_matching demo (see here)
to use feature2d functions like cv.drawMatches, cv.knnMatch, cv.drawMatchesKnn, cv.drawKeypoints and so on which are not working in master repo (if I'm correct).
Errors
let kp = new cv.KeyPointVector();
let descriptors = new cv.Mat();
let orb = new cv.ORB();
orb.detectAndCompute(src, new cv.Mat(), kp, descriptors);
cv.drawKeypoints(src, kp, dst); // Error here
kp.delete();
orb.delete();
raise following error
TypeError: Cannot convert "undefined" to unsigned int
and
let kp = new cv.KeyPointVector();
let descriptors = new cv.Mat();
let orb = new cv.ORB();
orb.detectAndCompute(src, new cv.Mat(), kp, descriptors);
// Run a matcher.
let dm = new cv.DMatchVector();
let matcher = new cv.BFMatcher();
matcher.match(descriptors, descriptors, dm);
const matchingImage = new cv.Mat();
cv.drawMatchesKnn(src, descriptors, src, descriptors, dm, matchingImage);
raise
TypeError: cv.drawMatchesKnn is not a function
while
cv.drawMatches(src, descriptors, src, descriptors, dm, matchingImage); // Error (2)
raise
TypeError: Cannot convert "undefined" to unsigned int
Environnement
I built opencv.js upon opencv master branch and I added to core_bindings.cpp some lines from not merged pull request #12855 to get DMatch support (see here).
Is it feasible to merge some Web-Sight and Quramy bindings with master ? I don't really know how it can be done, but I would like to do it if so.
It is used for example by @Quramy in his feature_matching demo (see here)
to use feature2d functions like
cv.drawMatches,cv.knnMatch,cv.drawMatchesKnn,cv.drawKeypointsand so on which are not working in master repo (if I'm correct).Errors
raise following error
and
raise
while
raise
Environnement
I built opencv.js upon opencv master branch and I added to core_bindings.cpp some lines from not merged pull request #12855 to get DMatch support (see here).