openCV编译安装-MSCV-Windows10-Qt

时间:2021-06-10 12:29:30   收藏:0   阅读:34

openCV编译安装-MSCV-Windows10-Qt

 


1、准备工作

 

2、解压

技术分享图片

 

3、Cmake编译

技术分享图片

 

技术分享图片

 

 

 

技术分享图片

技术分享图片

 

技术分享图片

 

4、Visual Studio编译

技术分享图片

 

技术分享图片

技术分享图片

 

4、添加环境变量

技术分享图片

技术分享图片

 

5、使用

技术分享图片

技术分享图片

 

技术分享图片

技术分享图片

 

#include <opencv2/opencv.hpp>

 

using namespace cv;

 

#include "widget.h"
#include "ui_widget.h"
?
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
?
    Mat image = imread("E:/tp/img/1.png");
    imshow("image", image);
?
}
?
Widget::~Widget()
{
    delete ui;
}

 

技术分享图片

 

原文:https://www.cnblogs.com/IntelligencePointer/p/14869435.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!