opencv
1. 下载开源编译器为mingw的qt;下载opencv源码 http://opencv.org/
2. 将ingw\bin加入到系统的path环境变量中
3. cmake
4. 勾选WITH_OPENGL和WITH_QT
5. mingw32-make
6. mingw32-make install
将编译好的opencv的bin目录添加到环境变量中
7. 配置库:
INCLUDEPATH += D:/opencvbin/install/include
INCLUDEPATH += D:/opencvbin/install/include/opencv
LIBS += D:/opencvbin/install/lib/libopencv_core231.dll.a
LIBS += D:/opencvbin/install/lib/libopencv_highgui231.dll.a
LIBS += D:/opencvbin/install/lib/libopencv_imgproc231.dll.a
LIBS += D:/opencvbin/install/lib/libopencv_objdetect231.dll.a
opencv动态库:
libopencv_calib3d231.dll.a
libopencv_calib3d_pch_dephelp.a
libopencv_contrib231.dll.a
libopencv_contrib_pch_dephelp.a
libopencv_core231.dll.a
libopencv_core_pch_dephelp.a
libopencv_features2d231.dll.a
libopencv_features2d_pch_dephelp.a
libopencv_flann231.dll.a
libopencv_flann_pch_dephelp.a
libopencv_gpu231.dll.a
libopencv_gpu_pch_dephelp.a
libopencv_haartraining_engine.a
libopencv_highgui231.dll.a
libopencv_highgui_pch_dephelp.a
libopencv_imgproc231.dll.a
libopencv_imgproc_pch_dephelp.a
libopencv_legacy231.dll.a
libopencv_legacy_pch_dephelp.a
libopencv_ml231.dll.a
libopencv_ml_pch_dephelp.a
libopencv_objdetect231.dll.a
libopencv_objdetect_pch_dephelp.a
libopencv_test_calib3d_pch_dephelp.a
libopencv_test_core_pch_dephelp.a
libopencv_test_features2d_pch_dephelp.a
libopencv_test_gpu_pch_dephelp.a
libopencv_test_highgui_pch_dephelp.a
libopencv_test_imgproc_pch_dephelp.a
libopencv_test_ml_pch_dephelp.a
libopencv_test_objdetect_pch_dephelp.a
libopencv_test_video_pch_dephelp.a
libopencv_ts231.a
libopencv_ts_pch_dephelp.a
libopencv_video231.dll.a
libopencv_video_pch_dephelp.a
-----------------------------------------
函数:
cvLoadImage();
cvNamedWindow();
cvShowImage();
cvWaitKey();
cvDestroyWindow();
cvReleaseImage();