![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OpenCV
在下铧茗哥
一个小白
展开
-
OpenCV图像Mat格式转换为QT中QImage并显示在graphicsView上或者图片显示控件上面,原理都一样
如题: 附转换代码(加上工业相机拍照函数): QImage Camera::VideoCamera(){ Mat openCvImage; try { // 开始抓取c_countOfImagesToGrab images. //相机默认设置连续抓取模式 cameraM.StartGrabbing(c_countOfImagesToGrab, GrabStrategy_Latest...原创 2019-08-02 16:46:12 · 1846 阅读 · 0 评论 -
QT使用TCP发送相机拍的图片
客户端: 代码: #include "MainWindow.h" #include "ui_MainWindow.h" #include "ui\MainWindow.h" #include <QTcpServer> #include <QBuffer> #include <QTcpSocket> #include <opencv2/opencv.h...原创 2019-09-09 13:57:13 · 2593 阅读 · 1 评论