Ask Your Question

haristech's profile - activity

2013-06-18 22:57:59 -0600 asked a question why my computer get restart using camera capture?

Opencv is running fine with other programs like video file reading , writing etc... I want to use USB camera with opencv. Camera is installed properly. it runs on matlab.

the program continuously display "capture running " on the screen. but there is no image display on 'Example2' window. and when I press ESC computer get restarted. what the problem can be? code is listed below

  CvCapture* capture;
  cout <<"star capturing";
  capture =  cvCreateCameraCapture(CV_CAP_ANY);


   if(!capture)
     {

   cout<<"capture failed!";
   while(1);

  }

 IplImage* framee;
 while(1)
  {
 framee = cvQueryFrame( capture );
  cvShowImage( "Example2",framee );

  cout<<"capture running";
  char c = cvWaitKey(33);
if( c == 27 ) break;
  }

Debug output during running

'opencvtut1.exe': Loaded 'C:\Documents and Settings\hassan\My Documents\Visual Studio 2010\Projects\opencvtut1\Debug\opencvtut1.exe', Symbols loaded. 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'F:\OPENCVEXTRACT\opencv\opencv\build\x86\vc10\bin\opencv_core244d.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\msvcp100d.dll', Symbols loaded. 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\msvcr100d.dll', Symbols loaded. 'opencvtut1.exe': Loaded 'F:\OPENCVEXTRACT\opencv\opencv\build\x86\vc10\bin\opencv_highgui244d.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\avifil32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\msacm32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\msvfw32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\avicap32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 6.0 for Windows Workstations MP4\kloehk.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\Program Files ... (more)

2013-06-05 23:08:05 -0600 received badge  Editor (source)
2013-06-05 23:06:22 -0600 asked a question USB camera with opencv VS2010 computer get restart

Opencv is running fine with other programs like video file reading , writing etc... I want to use USB camera with opencv. Camera is installed properly. it runs on matlab.

the program continuously display "capture running " on the screen. but there is no image display on 'Example2' window. and when I press ESC computer get restarted. what the problem can be? code is listed below

  CvCapture* capture;
   cout <<"star capturing";
   capture =  cvCreateCameraCapture(CV_CAP_ANY);


if(!capture)
{

   cout<<"capture failed!";
    while(1);

 }

IplImage* framee;
while(1)
  {
     framee = cvQueryFrame( capture );
      cvShowImage( "Example2",framee );

      cout<<"capture running";
      char c = cvWaitKey(33);
    if( c == 27 ) break;
 }

Debug output during running

'opencvtut1.exe': Loaded 'C:\Documents and Settings\hassan\My Documents\Visual Studio 2010\Projects\opencvtut1\Debug\opencvtut1.exe', Symbols loaded. 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'F:\OPENCVEXTRACT\opencv\opencv\build\x86\vc10\bin\opencv_core244d.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\msvcp100d.dll', Symbols loaded. 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\msvcr100d.dll', Symbols loaded. 'opencvtut1.exe': Loaded 'F:\OPENCVEXTRACT\opencv\opencv\build\x86\vc10\bin\opencv_highgui244d.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\avifil32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\msacm32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\msvfw32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\avicap32.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 6.0 for Windows Workstations MP4\kloehk.dll', Cannot find or open the PDB file 'opencvtut1.exe': Loaded 'C:\Program Files ... (more)