MAC中xcode, opencv4.0调用imread()函数改了很多遍,始终不成功。
由 Mat img = imread("onePig.jpg", IMREAD_COLOR);
改为:cv::Mat img = cv::imread("onePig.jpg", IMREAD_COLOR);
还是报错:
Reference to type 'const cv::String' (aka 'const int') could not bind to an lvalue of type 'const char [11]'