OPENCV build issue
I am trying to build the opencv wrapper and i am receiving this,
Scanning dependencies of target rs-grabcuts [ 50%] Building CXX object CMakeFiles/rs-grabcuts.dir/rs-grabcuts.cpp.o /home/mike/librealsense/wrappers/opencv/grabcuts/rs-grabcuts.cpp: In function ‘int main(int, char**)’: /home/mike/librealsense/wrappers/opencv/grabcuts/rs-grabcuts.cpp:39:63: error: ‘ThresholdType’ has not been declared auto create_mask_from_depth = [&](Mat& depth, int thresh, ThresholdType type) //#ThresholdTypes type); ^ CMakeFiles/rs-grabcuts.dir/build.make:62: recipe for target 'CMakeFiles/rs-grabcuts.dir/rs-grabcuts.cpp.o' failed make[2]: *** [CMakeFiles/rs-grabcuts.dir/rs-grabcuts.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/rs-grabcuts.dir/all' failed make[1]: *** [CMakeFiles/rs-grabcuts.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
The examples are tested with OpenCV 3.4 - opencv-samples-for-intel-realsense-cameras Please make sure you have the right version of OpenCV installed. We also provide CV examples inside the Windows installer with every release.
OpenCV 4.0 remove a-lot of C Bindings. I ran into compile issues after brew upgrade of opencv to 4.0 since some api's are gone from C.
This should be resolved via #3196 in 2.18.1. Please update