0
我正在Xcode中集成C++代碼。我在這條線上遇到問題。Xcode中line imread(「one.jpg」)的問題
src = imread("ellipse.jpg");
if(! src.data) // Check for invalid input
{
cout << "Could not open or find the image" << std::endl ;
cv::waitKey(5000);
}
我在資源文件夾中有圖像。但它總是執行if條件。請幫幫我 。提前致謝 。
也許看看http://stackoverflow.com/questions/3396378/change-the-working-directory-in-xcode – gvd
我不明白gvd。我打開了EditSchemes,但沒有任何與工作空間有關 – sri
您沒有看到「選項」選項卡? – gvd