2014-05-19 05:42:27 -0600 | asked a question | Image not capture;only showes blank screen HeadingI want to run this easy code to capture image. but it gives only blank screen as output. include <opencv2 highgui="" highgui.hpp="">include <opencv2 imgproc="" imgproc.hpp="">include <iostream>include <stdio.h>using namespace std; using namespace cv; int main( int argc, const char* argv ) { CvCapture capture = 0; Mat frame; Mat frameCopy; Mat image; IplImage* iplImg = cvQueryFrame( capture ); frame = iplImg; for(;;) cvReleaseCapture( &capture ); } } the ou#include <opencv2 objdetect="" objdetect.hpp=""> include <opencv2 highgui="" highgui.hpp="">include <opencv2 imgproc="" imgproc.hpp="">include <iostream>include <stdio.h>using namespace std; using namespace cv; int main( int argc, const char* argv ) { CvCapture capture = 0; Mat frame; Mat frameCopy; Mat image; IplImage* iplImg = cvQueryFrame( capture ); frame = iplImg; for(;;) cvReleaseCapture( &capture ); } } and output is: Screenshot from 2014-05-19 16:04:08.png |