QT上使用OpenCV
2015-11-22 09:47
573 查看
Qt版本:Qt5.5.1
OpenCV版本:OpenCV_2.4.8
参考:
/article/11771140.html
/article/2855010.html
测试代码:
出现错误:
error: undefined reference to `cv::imread(std::string const&, int)'
……
Qt版本:Qt5.5.1
OpenCV版本:OpenCV_2.4.8
参考:
/article/11771140.html
/article/2855010.html
测试代码:
<pre class="cpp" name="code">#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> int main() { // read an image cv::Mat image= cv::imread("img.jpg"); // create image window named "My Image" cv::namedWindow("My Image"); // show the image on window cv::imshow("My Image", image); // wait key for 5000 ms cv::waitKey(5000); return 0; }
出现错误:
error: undefined reference to `cv::imread(std::string const&, int)'
……
相关文章推荐
- 关于 QListWidget IconMode的使用
- QtNetwork: No such file or directory 问题的解决办法
- QT调用COM组件
- qt5.5实现 记事本程序
- windows编译qtav
- PyQt4(简单计算器)
- Qt——正则表达式
- Webkit之Port类(ChromeClientQt类)
- 图像处理qt实现
- QTP
- MQTT实现消息推送
- Qt5调用QPixmap::fromWinHICON
- Qt实现图像自适应窗口大小之scaled()函数使用
- qt5
- 关于Qt的QFileDialog的使用问题
- Qt可执行程序写入版本信息
- Qt 手动生成moc 文件
- Qt制作Aero特效窗口
- Qt使用QGraphicsView实现滑动窗体效果
- QT显示图片