cannot complied a opencv3.1 vdo sumarized program on visual studio 2015 c++
Dear Guru I'm quite new about opencv. But I was able to run some opencv3.1 programs such as the car counting, the background subtraction. However I tried to study about vdo summation with opencv c++. reference source code link is https://github.com/lerker/OpenSourceVS
I found two errors as shown in I could not complied that program properly. Our environment are:
Please kindly assist to fix the issues.
Thank you very much [email protected]
for various reasons, please remove your (useless) screenshots, and give us a text version of the error msg and the code segment.
you're tring to run outdated opencv2.4 code with opencv3.1.
api has changed, it's not a vs problem, not about linking, just be more careful, when choosing where to steal snippets.
Hi Berak Here are two errors on this. Severity Code Description Project File Line Suppression State Error C2259 'cv::BackgroundSubtractorMOG2': cannot instantiate abstract class OpenSourceVS d:\personal_2016\research2016\opensourcevs-master\opensourcevs-master\main.cpp 125 Severity Code Description Project File Line Suppression State Error C2039 '()': is not a member of 'cv::BackgroundSubtractor' OpenSourceVS
d:\personal_2016\research2016\opensourcevs-master\opensourcevs-master\main.cpp 167 Here are some portion of source codes. 123 // detectores de objetos 124 Ptr< BackgroundSubtractor> pMOG2; //MOG Background subtractor 125 pMOG2 = new BackgroundSubtractorMOG2();
162 ///filtro gaussiano 165 GaussianBlur(frame2, frame, Size(9, 9), 0, 0);
167 resize(frame, src, Size(frame.size().