Issue with reading an image using “cv::imread” function in OpenCv

前端 未结 2 1383
长情又很酷
长情又很酷 2020-12-06 04:54

I have got a problem with some basic OpenCV code. Here is my code:

 cv::Mat src;
 src=imread(\"Calibration.bmp\",0);

 if (src.empty())
  cout << \"Ca         


        
2条回答
  •  情深已故
    2020-12-06 05:37

    Ok, I fixed the problem... Problem arises when you are mixing up release and debug OpenCV libs. I've changed paths and libs names in project properties and "cv::imread" works just fine.

提交回复
热议问题