September 17, 2010
OpenCV 安装攻略
经师弟推荐, opencv中文社区有一系列安装攻略. 写的挺详细的. 需要的朋友可以收藏下. http://www.opencv.org.cn/index.php/Template:Install
Tags: OpenCV
经师弟推荐, opencv中文社区有一系列安装攻略. 写的挺详细的. 需要的朋友可以收藏下. http://www.opencv.org.cn/index.php/Template:Install
Tags: OpenCV
OpenCV 2.0 now uses CMake to organize the whole project. By default, it only provides linux library. So we need to compile it first.
Download Cmake for windows and install.
Go to C:\OpenCV2.0, execute the following cmd
cmake . -G "Visual Studio 9 2008"
Change "Visual Studio 9 2008" to your default compiler.
Cmake will generate a solution file (containing many projects) for you visual studio. Open it and build with “release”.
Add the following path to Tools–>Options–>Projects–>VC++ Directories–>Include files
C:\OpenCV2.0\include\opencv
Add following path to Tools–>Options–>Projects–>VC++ Directories–>Library files
C:\OpenCV2.0\lib\Release
When create a new project,
add following to “Project–>Properties–>Linker->Input–>Additional dependencies”
cv200.lib cxcore200.lib highgui200.lib
Tested on OpenCV 2.0 on Visual Studio 2008
Related Post:
Tags: OpenCV
Comments(35)
It has been quite a while since last time I post a howto of configuring OpenCV in Visual Studio. The post got a lot of attention and comments. As the the configuring has become simpler, the post becomes a bit bulky and out-of-date. So right now I am considering to rewrite the howto with a much simpler version.
C:\Program Files\OpenCV\cv\include C:\Program Files\OpenCV\otherlibs\highgui C:\Program Files\OpenCV\cxcore\include C:\Program Files\OpenCV\otherlibs\cvcam\include
C:\Program Files\OpenCV\lib
cv.lib highgui.lib cvaux.lib cxcore.lib
NOTE there is no difference between debug or release configurations
Tested on OpenCV 1.0 with Visual Studio 2008
Links
Original blogspot link1 link2.
Li Hao’s post.
Tags: OpenCV, Visual Studio
Comments(2)
Continuous updating…
Current testing version: OpenCV 1.0 (I do not recommend the latest 1.1pre1. I got strange error using it in VC.net). VC++.net 2008.
Set up a project in Visual Studio
Convert IplImage to VC++.net Bitmap
System::Drawing::Bitmap ^disp = gcnew System::Drawing::Bitmap(img->width, img->height, img->widthStep, PixelFormat::Format24bppRgb, System::IntPtr::IntPtr( img->imageData) );Comments(0)
Install OpenCV with Synaptic Package Manager
Add one line in QT project file (*.pro)
LIBS += -L/usr/local/lib -lcxcore -lcv -lhighgui -lcvaux
Then, include OpenCV header file in your source code.
Do whatever you like in your source file.
Compile.
Note: This post is incomplete so far and subject to change.
Comments(0)