OpenCVjs with Features2D [closed]

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

MRDaniel gravatar image

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

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

GSOC https://gist.github.com/pancx/2778b72...

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

Comments

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.

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