```int main()
{
Mat src = imread("E:\666.jpg", CV_LOAD_IMAGE_ANYCOLOR);
if (src.empty())
{
cout << "圖像加載失敗!" << endl;
return -1;
}
namedWindow("MyWindow", CV_WINDOW_AUTOSIZE);
imshow("MyWindow", src);
本人opencv入門選手,代碼很簡單如上所示,用的win7+vs2015+opencv3.1.0,生成項目時imread那一行就會報錯
error C2022: “438”: 對字符來說太大
求問各位大神這是什麼原因阿,該怎麼改呢?
Mat src = imread("E:\666.jpg", CV_LOAD_IMAGE_ANYCOLOR);
->
Mat src = imread("E:\\666.jpg", CV_LOAD_IMAGE_ANYCOLOR);