OpenCVjs with Features2D [closed]

asked 2018-02-07 21:00:38 -0500

MRDaniel gravatar image

updated 2018-02-07 21:01:30 -0500


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.

I would like to add Features2D which has also been done with ( 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..


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



[86%] Building CXX object modules/imgproc/CMakeFiles/openv_imgproc.dir/src/tables.cpp.o



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?





edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-15 09:42:06.275947


A little further forward here. 1. Enable the build flag: 2. Append js into WRAP list of features2d's CMakefiles.txt: 3. Add AKAZE API into JS API whitelist: 4. You may need to include the features2d's headers into the main file:

However, AKAZE uses Ptr<>. Unsure how to apply templated argument.

MRDaniel gravatar imageMRDaniel ( 2018-02-11 18:57:06 -0500 )edit