Академический Документы
Профессиональный Документы
Культура Документы
1. 2. 3. Downloading and Installing OpenCV .................................................................................................... 2 Manually Changing the System Path to Include the Bin File ................................................................ 2 Microsoft Visual Studio ......................................................................................................................... 3 Opening the Project .................................................................................................................................. 3 Microsoft Visual Studio with Open CV library........................................................................................... 8
2. This will bring up the Environment Variables dialogue. In the System Variables box select Path and then edit.
3. When modifying the path know that it is sensitive to all characters including spaces. To
add the new bin, type a semicolon directly after the text that is there without adding in a space. Next add the path to the bin file C:\Program Files\OpenCV2.3\build\bin.
3. Then open Win32 Console Application and give the name to the project and also set the hard drive path.
4. Window 32 Application Wizard will be opened in a new window. Just click on Finish!
5. Then an Editor window will appear where you can write the source code.
2. In the LinkerGeneral, include the following path in the Additional Library Directories and make sure that %(AdditionalLibraryDirectories) should not be erased. C:\Program Files\OpenCV2.3\build\x86\vc10\lib;
3. In the LinkerInput, add the following additional dependencies. "C:\Program Files\OpenCV2.3\build\x86\vc10\lib\opencv_core230d.lib" "C:\Program Files\OpenCV2.3\build\x86\vc10\lib\opencv_highgui230d.lib" "C:\Program Files\OpenCV2.3\build\x86\vc10\lib\opencv_video230d.lib" "C:\Program Files\OpenCV2.3\build\x86\vc10\lib\opencv_ml230d.lib", "C:\Program Files\OpenCV2.3\build\x86\vc10\lib\opencv_legacy230d.lib" "C:\Program Files\OpenCV2.3\build\x86\vc10\lib\opencv_imgproc230d.lib" "C:\Program Files\OpenCV2.3\build\x86\vc10\lib\opencv_cxcore230d.lib"
4. Then Copy the following .dll files into the project Debug folder and the Open CV bin folder. opencv_imageprocd.dll, opencv_highguid.dll, opencv_core230d.dll