subsense
subsense copied to clipboard
compilation fails on ubuntu
please see this issue - there is either something wrong w. openCV or something weird w/ class-structure
/usr/bin/c++ -DSubsense_EXPORTS -I/home/luca/devel/subsense -I/usr/local/include -std=c++11 -Ofast -fPIC -o CMakeFiles/Subsense.dir/Subsense/API.cpp.o -c /home/luca/devel/subsense/Subsense/API.cpp /home/luca/devel/subsense/Subsense/API.cpp: In function ‘void ss_apply(SSContext*, void*, void*)’: /home/luca/devel/subsense/Subsense/API.cpp:70:22: error: ‘class BackgroundSubtractorLBSP’ has no member named ‘apply’ ctx->subtractor->apply(input_img, output_img);
You can comment this line off if you just want C code integration. This line is related to the python bindings.
LBSP is the base class of Susense and LOBSTER, but it has no apply method. fix the problem just add one line: virtual void apply(cv::InputArray image, cv::OutputArray fgmask, double learningRateOverride = 0); in: BackgroundSubtractorLBSP.h