opencv

本文详细介绍如何在Windows环境下使用mingw编译器将OpenCV与QT集成,并提供了必要的环境配置步骤,包括下载源码、配置环境变量、使用cmake进行配置等。此外,还列举了部分关键的OpenCV函数。
摘要由CSDN通过智能技术生成

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();

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

电猿

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值