Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

[OpenCV2.14.13]Can't open the second camera

  1. The work environment is : OpenCV 2.4.13, VS2008, Two different kind of usb camera.
  2. I can't open the sencond camera when using the following code

    int _tmain(int argc, _TCHAR* argv[]){
    VideoCapture capture(0);
    if( !capture.isOpened() )
        std::cout << "Capture0 can't be opened\n" << std::endl;
    
    VideoCapture capture1(1);
    if( !capture1.isOpened() )
        std::cout << "Capture1 can't be opened\n" << std::endl;
    
    return 0;}