OpenCV on mac not opening USB web cam [closed]

asked 2013-01-06 17:44:16 -0600

vixo7 gravatar image

I have been unsuccessful using OpenCV's to get video capture from a USB web cam in my MacBook Pro running OS 10 Lion. Using open(0) successfully gets capture from the iSight camera. But no luck trying to find the WebCam. (WebCam is a PS2 EyeToy)

The WebCam is installed and works well with Skype, and the macam driver application.

Here is a portion of the code that I'm using:

VideoCapture cap; 
for (int i = 1; i < 1500; i++) {
    if (
        cout << "Found camera %d\n" << i;
if(!cap.isOpened())  // check if we succeeded
    return -1;

If I initialize i with 0 it immediately finds the iSight camera. If I initialize i with 1, then it finds iSight again when i = 500

Any help is appreciated, Thanks.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-09-27 06:25:48.328805


have you found a solution for this problem? i am also working on a project with eye toy camera 2

manntobias gravatar imagemanntobias ( 2014-12-05 11:23:35 -0600 )edit