When I'm trying to load an image via Qt console application in Xcode everything ok, I can see my image in output:
Mat img = imread( "/Users/.../box.png", CV_LOAD_IMAGE_GRAYSCALE );
imshow( "Source Image", img );
But if I try to output text:
std::cout << "Cannot load image" << " ";
there is nothing in output, I.e. I can't see the terminal window or another output console. How can I fix it?
cout
is typically line-buffered - add astd::endl
: