Problem in qt

asked 2013-09-11 03:36:56 -0500

dhanash gravatar image

updated 2013-09-11 06:22:49 -0500

Moster gravatar image

Hi guys...i got output as empty terminal window while compiling following simple display an image program using qt with opencv in ubuntu.

code

   #include <opencv2/core/core.hpp>
   #include <opencv2/highgui/highgui.hpp>

int main() 

{

    cv::Mat image= cv::imread("img.jpg");
    cv::namedWindow("My Image");
    cv::imshow("My Image", image);
    cv::waitKey(5000);
    return 1;
}

give me solution?

thankyou

dhanash

edit retag flag offensive close merge delete