Академический Документы
Профессиональный Документы
Культура Документы
Windows
Dear Madhav Sir,
This guide will help you install OpenCV library version 4.0b (I used this version for the
code submitted to you). I used it with Visual C++ 6.0 Professional edition on windows
XP. I am not sure In case you are using any other configuration please let me know.
Important Note: Install the software in the default directory i.e. “C:\Program Files\OpenCV”.
Assuming the default destination folder during installation, add the following directories. (Your
directories may be different if you chose to install OpenCV in a different location. If so, change the
paths accordingly.)
C:\Program Files\OpenCV\cv\include
C:\Program Files\OpenCV\cxcore\include
C:\Program Files\OpenCV\otherlibs\highgui
The directories for the needed include files are finished. Next, switch to “Library files”.
Add the directory “C:\Program Files\OpenCV\lib” to the list of directories. Switch to “Executable
files”. Add “C:\PROGRAM FILES\OPENCV\BIN”.
Be sure to click “OK” on the “Options” dialog box, or you’ll be doing all of this over again.
Before creating the actual application, we need to modify the project settings to our
liking. From the menu, click “Projects” and then click “Settings…”.
Once “Settings…” is clicked, the “Project Settings” dialog box will appear. Under
“Settings For” at the top left, switch to “All Configurations”. (see the image below).
Click the “Link” tab, and then select “General” for the “Category”.
Under “Object/library Modules” add the following libraries.
cv.lib
cxcore.lib
highgui.lib
strmbase.lib
Once the libraries have been entered, click “OK”. Now, we’ll add a file to our project.
From the menu, click “File” and then click “New…”, as before. Instead of the “Projects”
tab, we need the “Files” tab, so click it. From the choices, choose “C++ Source File”. On
the right hand side, enter a file name. (We use “image1” as a file name). The location
should already be specified. “Add to project” should already be checked, and set to
“image1”. If not, change it. Once done, click “OK”.
After clicking “OK”, the file should be open and ready for coding. You can also directly
copy paste and build my code to run it. I hope this will help you. It seems little tedious
job in the beginning but two three codes will make it seem easy.
Should there be any more explanation required or any problem, please let me know.
Yours truly,
Shadab Khan
5th Sem, BE
MIT Manipal