天宫鹤

01 2023 档案

Qt应用程序使用OpenCV库测试视频捕捉实例程序源码
摘要:int main() { VideoCapture cap(0); if (!cap.isOpened()) { return -1; } while (1) { Mat frame; cap >> frame; if (frame.empty()) break; imshow("Frame", f 阅读全文

posted @ 2023-01-30 14:43 GoGrid 阅读(58) 评论(0) 推荐(0) 编辑

Qt中的QImage类和OpenCV中的cv::Mat类之间的相互转换
摘要:一、QImage转cv::Mat QPixmap pixmap = currentImage->pixmap(); QImage image = pixmap.toImage(); //QImage image("d:/dev/test.jpg"); image = image.convertToF 阅读全文

posted @ 2023-01-16 10:24 GoGrid 阅读(1367) 评论(0) 推荐(0) 编辑

Qt应用程序初始化图片文件对话框静态函数(设置图片文件对话框的打开目录为系统图片标准位置)
摘要:// 初始化图片文件对话框static void initializeImageFileDialog(QFileDialog &dialog, QFileDialog::AcceptMode acceptMode){ static bool firstDialog = true; //设置文件对话框 阅读全文

posted @ 2023-01-09 09:29 GoGrid 阅读(76) 评论(0) 推荐(0) 编辑

Qt应用程序图片文件相关操作(打开、显示、前一张、下一张、另存为)
摘要:// 打开图片文件void MainWindow::openImage(){ QFileDialog dialog(this); dialog.setWindowTitle("Open Image"); dialog.setFileMode(QFileDialog::ExistingFile); d 阅读全文

posted @ 2023-01-09 09:18 GoGrid 阅读(349) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示