Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem in qt

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

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

Problem in qt

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

code

include <opencv2 core="" core.hpp="">

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

int main()  

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

Problem in qt

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

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 thankyou

dhanash

Problem in qt

Hi guys...i got output as empty terminal window while compiling following simple display an image program using qt with opencv.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

click to hide/show revision 5
retagged

Problem in qt

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