These days, I am busy carrying out my last experiments named “video anomaly detection” for my thesis. For extracting features of video, I would use some functions of opencv, so I configured opencv in VS2013, here are some steps.
- C++ IDE: VS2013 Ultimate
- opencv version: 2.4.8
- operating system: win8
Step 1: install opencv and configure
download opencv and extract to your file folders. Here I extracted it to F:/program files.
Then we need to configure environment variables for opencv.
#add system variable -- Path
#add user variable -- opencv
#add it to PATH
please choose X86, whether your system is 32bit or 64bit, otherwise some errors will occur when you compiles.
Step2: Configure opencv in VS2013
Firstly, we create a new visual C++ project.
Then follow the pic below. We need to change three places.
These files are in F:\program files\opencv\build\x86\vc12\lib.
Test: Convert Video to Image