andrewssobral / simple_vehicle_counting

Vehicle Detection, Tracking and Counting
496 stars 246 forks source link

How to apply other algorithms in BGSLibrary? #12

Closed wydwww closed 8 years ago

wydwww commented 8 years ago

Hi,

I could build your sample project in vs2013. Then I tried to apply DPEigenbackgroundBGS instead of PixelBasedAdaptiveSegmenter. I copied .h and .cpp from BGSLibrary to package_bgs and changed some codes as follows, then the building progress was interrupted.

How to apply DPEigenbackgroundBGS in this program?

Thanks!

Here are my changes in Demo.cpp

cv::Mat img_eigbkg;
DPEigenbackgroundBGS* bgs;
bgs->process(img_input, img_mask, img_eigbkg);
wydwww commented 8 years ago

After changing the progress() to fit the new algorithm it works well.