在Linux里,按下面这样写,可能图片读不出来,img为空,但是在Windows里是可以的。
#include <iostream>
#include <fstream>
#include <opencv2/opencv.hpp>
#include <string>
using namespace std;
using namespace cv;
在Linux里,按下面这样写,可能图片读不出来,img为空,但是在Windows里是可以的。
#include <iostream>
#include <fstream>
#include <opencv2/opencv.hpp>
#include <string>
using namespace std;
using namespace cv;