opencv vs2010 配置

 

int main()
{
    // 【1】读入一张图片
    Mat img = imread("1.jpg");
    
    // 【2】在窗口中显示载入的图片
    imshow("【载入的图片】",img);
    
    // 【3】等待6000 ms后窗口自动关闭
    waitKey(6000);
}

猜你喜欢

转载自www.cnblogs.com/hehe2014/p/10445583.html