基于 VS2019 配置 opencv4.x

时间:2020-01-28 17:04:42   收藏:0   阅读:78

创建新项目

技术分享图片

添加主函数文件

技术分享图片
技术分享图片

配置

技术分享图片
技术分享图片
技术分享图片
技术分享图片
技术分享图片
技术分享图片

添加环境变量

技术分享图片

技术分享图片

测试

#include <opencv2/opencv.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main()
{
    Mat img = imread("C:\\Users\\Pictures\\test.jpg");
    if (img.empty())
    {
        printf("Could not find the image!\n");
        return -1;
    }

    imshow("ImputImage", img);

    waitKey(0);
    return 0;
}

原文:https://www.cnblogs.com/wbyixx/p/12238317.html

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