Ask Your Question

jay_sil_viper's profile - activity

2013-04-07 12:47:21 -0600 commented answer Read and Display RGB video file using opencv2.2

I've pretty much tried everything... I am going to try what you just posted and try to paste the debug statements.... Thanks...

2013-04-07 12:46:42 -0600 received badge  Supporter (source)
2013-04-07 00:15:39 -0600 received badge  Editor (source)
2013-04-07 00:14:43 -0600 asked a question Read and Display RGB video file using opencv2.2

Hey Guys, I have an Uncompressed RGB video file. The extension is (.rgb)

I am not able to read and display the video. I am not able to even grab the frame .

cvNamedWindow( “Example2”, CV_WINDOW_AUTOSIZE );
CvCapture* capture = cvCreateFileCapture( "test.rgb" );
IplImage* frame;
while(1) {
frame = cvQueryFrame( capture );
if( !frame ) break;
cvShowImage( “Example2”, frame );
char c = cvWaitKey(33);
if( c == 27 )
 break;
}
cvReleaseCapture( &capture );
cvDestroyWindow( “Example2” );