I am Integrating the c++ code in the Xcode . I am facing problem at this line.
src = imread("ellipse.jpg");
if(! src.data ) // Check for invalid input
{
cout << "Could not open or find the image" << std::endl ;
cv::waitKey(5000);
}
I have the image in resource folder. But it always executes the if condition. Please help me . Thanks in advance .