camera black screen in opencv2.2 (Bug #750)


Added by yahia ouazar over 14 years ago. Updated over 12 years ago.


Status:Done Start date:
Priority:Blocker Due date:
Assignee:- % Done:

0%

Category:highgui-camera
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Hi,
when I run my program compiled under codeblocks 10.5 which is designed to display the camera, there is a black screen that appears, here's the code:

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

using namespace std ;

int main (int argc, char * argv[]) {
CvCapture * capture1= cvCreateCameraCapture(0);
CvCapture * capture2= cvCreateCameraCapture(1);
IplImage * img1= NULL ;
IplImage * img2= NULL ;
cvNamedWindow("cam1");
cvNamedWindow("cam2");

while(1)
{
img1= cvQueryFrame(capture1);
img2= cvQueryFrame(capture2);
cvShowImage("cam1",img1);
cvShowImage("cam2",img2);
cvWaitKey(15);
}
return 0;
}

Related issues

duplicates Bug #735: No Video from Camera (OpenCV 2.2) Done

History

Updated by vasek opekar about 14 years ago

seems to be duplicate of ticket #735

Updated by Vadim Pisarevsky about 14 years ago

right. the bug has been fixed in r4400.

  • Status changed from Open to Done
  • (deleted custom field) set to duplicate

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-camera

Also available in: Atom PDF