cannot complied a opencv3.1 vdo sumarized program on visual studio 2015 c++

asked 2016-08-17 11:54:48 -0600

banatus gravatar image

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 two errors I could not complied that program properly. Our environment are: directory linker

Please kindly assist to fix the issues.

Thank you very much [email protected]

edit retag flag offensive close merge delete

Comments

for various reasons, please remove your (useless) screenshots, and give us a text version of the error msg and the code segment.

berak gravatar imageberak ( 2016-08-17 23:25:03 -0600 )edit

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.

berak gravatar imageberak ( 2016-08-17 23:28:44 -0600 )edit

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().

banatus gravatar imagebanatus ( 2016-08-21 12:11:15 -0600 )edit