opencv加载网络图片

#include <iostream>
#include <opencv2/opencv.hpp> using namespace std;
using namespace cv; int main()
{
string fileurl = "https://gss2.bdstatic.com/9fo3dSag_xI4khGkpoWK1HF6hhy/baike/c0%3Dbaike116%2C5%2C5%2C116%2C38/sign=a2efc66b289759ee5e5d6899d3922873/1b4c510fd9f9d72aca4cb27bda2a2834349bbba8.jpg";
VideoCapture video1(fileurl);
Mat img1;
video1.read(img1); imshow("win1", img1); waitKey();
return ;
}

Opencv加载网络图片-LMLPHP

05-11 20:11