andrewssobral / simple_vehicle_counting

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

Visual Studio 2015 OpenCV320 #19

Open waelfaroukahmed opened 7 years ago

waelfaroukahmed commented 7 years ago

Hello Andrew, Is this version compatible with OpenCV 320 Visual studio 2015?

Regards

andrewssobral commented 7 years ago

Hi @waelfaroukahmed , I submitted a new version of the code that is now supporting OpenCV 3.x. Please see my last commit and let me know if it works well for you. Best

waelfaroukahmed commented 7 years ago

Thanks Andrew, i will try it today

waelfaroukahmed commented 7 years ago
Hi Andrew
There is an exception in code which i can't understand
in line 42 demo.cpp
cv::imshow("Input", img_input);

Exception thrown at 0x00007FFBC83968D8 in ConsoleApplication5.exe: Microsoft C++ exception: cv::Exception at memory location 0x0000002ACFEFE320.

## My modifications for cv 320
`\package_tracking\cvblob\cvtrack.cpp
Replace line 26 like below
//#include <cv.h>
#include <opencv/cv.h>

\package_tracking\cvblob\cvlabel.cpp
Replace line 25 like below
//#include <cv.h>
#include <opencv/cv.h>

\package_tracking\cvblob\cvcontour.cpp
Replace line 32 like below
//#include <cv.h> 
#include <opencv/cv.h>

\package_tracking\cvblob\cvcolor.cpp
Replace line 25 like below
//#include <cv.h>
#include <opencv/cv.h>

\package_bgs\IBGS.h
Replace line 3 like below
//#include <cv.h>
#include <opencv/cv.h>
`
Regards
waelfaroukahmed commented 7 years ago

Update I was able to run in release configuration (Exception still show up in console), Works as expected in release configuration

It works fine on video dataset, Unfortunately i used another video and it didn't work

Is there is any document describe how to customize based on video

Regards