Qt 5.4 OpenCV 2.4.11 Win 32 Configuration

简介:

Download CMake 2.8.2

Download OpenCV 2.4.11

Download Qt 5.4

Highly improtant note: The installation directory should not contain any space or non-English character, otherwise weird error would happen when building. 

Open CMake 2.8.2, set the source and build directory:

Click "Configure", choose "MinGW Makefiles" and "Specify native compliers"

Set the C and C++ compiler from the Qt SDK

Don't forget to add the following to the system path:

C:\Qt\5.4\mingw491_32\bin

C:\Qt\Tools\mingw491_32\bin

Then click "Configure" and "Generate", then open cmd and go the build directory, and run "mingw32-make"

Highly important: You need to select "With_Qt" before click "Generate"!

When it is done, then run "mingw32-make install" and hit enter again

Use Qt Creator creates a new project, add following in the .pro file:

# Add OpenCV
INCLUDEPATH += C:\opencv\mingw\install\include
INCLUDEPATH += C:\opencv\mingw\install\include\opencv
INCLUDEPATH += C:\opencv\mingw\install\include\opencv2
LIBS += -LC:\\opencv\\mingw\\bin \
    libopencv_core2411 \
    libopencv_highgui2411 \
    libopencv_imgproc2411 \
    libopencv_features2d2411 \
    libopencv_calib3d2411 \

本文转自博客园Grandyang的博客,原文链接:Qt 5.4 OpenCV 2.4.11 Win 32 Configuration,如需转载请自行联系原博主。

相关文章
|
12天前
|
算法 计算机视觉
基于qt的opencv实时图像处理框架FastCvLearn实战
本文介绍了一个基于Qt的OpenCV实时图像处理框架FastCvLearn,通过手撕代码的方式详细讲解了如何实现实时人脸马赛克等功能,并提供了结果展示和基础知识回顾。
基于qt的opencv实时图像处理框架FastCvLearn实战
|
12天前
|
文字识别 计算机视觉 开发者
基于QT的OCR和opencv融合框架FastOCRLearn实战
本文介绍了在Qt环境下结合OpenCV库构建OCR识别系统的实战方法,通过FastOCRLearn项目,读者可以学习Tesseract OCR的编译配置和在Windows平台下的实践步骤,文章提供了技术资源链接,帮助开发者理解并实现OCR技术。
基于QT的OCR和opencv融合框架FastOCRLearn实战
|
12天前
|
计算机视觉
基于QT的opencv插件框架qtCvFrameLearn实战
这篇文章详细介绍了如何基于Qt框架开发一个名为qtCvFrameLearn的OpenCV插件,包括项目配置、插件加载、Qt与OpenCV图像转换,以及通过各个插件学习OpenCV函数的使用,如仿射变换、卡通效果、腐蚀、旋转和锐化等。
22 10
|
12天前
|
机器学习/深度学习 Java 计算机视觉
opencv4.5.5+qt5.15.2+vtk9.1+mingw81_64编译记录
本文记录了使用mingw81_64编译OpenCV 4.5.5、Qt 5.15.2、VTK 9.1的详细过程,包括编译结果截图、编译步骤、遇到的问题及其解决方案,以及相关参考链接。文中还提到了如何编译boost源码为静态库,并提供了测试代码示例。
opencv4.5.5+qt5.15.2+vtk9.1+mingw81_64编译记录
|
2月前
|
计算机视觉
使用QT显示OpenCV读取的图片
使用QT显示OpenCV读取的图片
41 1
|
4月前
|
算法 计算机视觉
【Qt&OpenCV 图像的感兴趣区域ROI】
【Qt&OpenCV 图像的感兴趣区域ROI】
114 1
|
4月前
|
运维 算法 计算机视觉
【Qt&OpenCV 图像的模板匹配 matchTemplate/minMaxLoc】
【Qt&OpenCV 图像的模板匹配 matchTemplate/minMaxLoc】
61 1
|
4月前
|
存储 编解码 算法
【Qt&OpenCV 检测图像中的线/圆/轮廓 HoughLinesP/HoughCircles/findContours&drawContours】
【Qt&OpenCV 检测图像中的线/圆/轮廓 HoughLinesP/HoughCircles/findContours&drawContours】
72 0
|
3月前
|
机器学习/深度学习 人工智能 计算机视觉
好的资源-----打卡机+Arm+Qt+OpenCV嵌入式项目-基于人脸识别的考勤系统-----B站神经网络与深度学习,商城
好的资源-----打卡机+Arm+Qt+OpenCV嵌入式项目-基于人脸识别的考勤系统-----B站神经网络与深度学习,商城
|
4月前
|
算法 计算机视觉
【Qt&OpenCV 图像边缘检测 Sobel/Laplace/Canny】
【Qt&OpenCV 图像边缘检测 Sobel/Laplace/Canny】
54 0

推荐镜像

更多