This is the repository for ENGG4802 thesis project: Experiments in measuring classroom activity using image analysis
Programs/library needed
- Visual Studio 2010/2012
- OpenCV (any version will do) You can download OpenCV at their website @ http://opencv.org/downloads.html
Installtion Steps
- Click on the OpenCV .exe and extract to the desired directory (Preferred directory in C:/)
- This step is to set an environment variable.
- Start up a command window and enter (depending on your machine)
- setx -m OPENCV_DIR C:\OpenCV\Build\x86\vc10 (suggested for Visual Studio 2010 - 32 bit Windows)
- setx -m OPENCV_DIR C:\OpenCV\Build\x64\vc10 (suggested for Visual Studio 2010 - 64 bit Windows)
- setx -m OPENCV_DIR C:\OpenCV\Build\x86\vc11 (suggested for Visual Studio 2012 - 32 bit Windows)
- setx -m OPENCV_DIR C:\OpenCV\Build\x64\vc11 (suggested for Visual Studio 2012 - 64 bit Windows)
- Next go to System Variables -> system PATH -> Path Editor and enter %OPENCV_DIR%\bin
- Next is to install Visual Studio.
- Launch Visual Studio -> Win32 Console Application
- They can be found in the Property Manager (View -> Property Pages)
- Right click on Debug and add new project property sheet (this can be reuse for future OpenCV projects)
- Select the sheet. Right Click -> Properties.
- Go under C++ groups General entry and under "Additional Include Directories" add the path to your OpenCV include
- $(OPENCV_DIR)....\include
- Next go to Linker -> General and under "Additional Library Directories" and add the libs directory
- $(OPENCV_DIR)\lib
- Then go to Linker -> Input and under "Additional Library Directories" entry and add the name of all modules which you want to use
- The names of libraries are as follows: opencv_(The Name of the modules)(The version Number of the library you use)d.lib
- A full list would look like this
- opencv_core231d.lib
- opencv_imgproc231d.lib
- opencv_highgui231d.lib
- opencv_ml231d.lib
- opencv_video231d.lib
- opencv_features2d231d.lib
- opencv_calib3d231d.lib
- opencv_objdetect231d.lib
- opencv_contrib231d.lib 30.opencv_legacy231d.lib
- opencv_flann231d.lib
- The d at the end means these libraries required for the debug mode.
- After that paste the Thesis source code and it will work