OpenCVjs with Features2D [closed]
Hello,
I am trying to build the OpenCV js bindings however, i think this may in fact be a cmake question.
Using the steps from here i am able to build the js bindings.
https://docs.opencv.org/3.3.1/d4/da1/...
I would like to add Features2D which has also been done with (https://github.com/ucisysarch/opencvjs which won't build as reliably as OpenCV.js, although i believe it is a the same project :S ).
Here is what i have tried.......
1) Change -DBUILD_opencv_features2d=ON
2) Add #include "opencv2/features2d.hpp" to the bindings.cpp
This produces a cmake output with.
-- OpenCV modules:
-- To be built: core features2d imgproc java_bindings_generator js python_bindings_generator video
-- Disabled: etc.etc.etc..
However,
When the make process occurs it reaches 100% but has not tried to build any Features2D modules. Each of the other steps were done i.e. .
The CMAKE output
[0%]
.....
[86%] Building CXX object modules/imgproc/CMakeFiles/openv_imgproc.dir/src/tables.cpp.o
.....
[99%]
Generating bindings.cpp
Does anyone have any advice here on why the make process would not be building features2d? Is it dependent on another module that must be included?
Regards,
Daniel
LINKS
A little further forward here. 1. Enable the build flag: https://github.com/opencv/opencv/blob... 2. Append js into WRAP list of features2d's CMakefiles.txt: https://github.com/opencv/opencv/blob... 3. Add AKAZE API into JS API whitelist: https://github.com/opencv/opencv/blob... 4. You may need to include the features2d's headers into the main file: https://github.com/opencv/opencv/blob...
However, AKAZE uses Ptr<>. Unsure how to apply templated argument.