Capture OpenCV with USB not iSight (OSX)

I'm having trouble accessing an external USB camera instead of the built-in iSight when using OpenCV with a MacBook Pro on Mac OSX.

When passing an argument to the cvCaptureFromCAM(index) function other than 0 or -1, I will always get Warning: Max Camera Num is 0; Using camera 0 Warning: Max Camera Num is 0; Using camera 0

The camera is a Sony PS3 EYE that works great with the macam driver and quicktime component.
However, I cannot access it using OpenCV, which will always be built into iSight by default (even when you try to “occupy” iSight with another program).

Any ideas?

Thank you so much, your help is greatly appreciated!

0
source share
1 answer

I just messed around with the same problem, macam drivers are 32 bits, if your version of opencv is compiled as 64-bit, this will not work. I finish installing opencv twice 64 bit with mac ports and 32 bit with howebrew whenever I use ps3eye, I switch to the 32 bit version.

+1
source

Source: https://habr.com/ru/post/1380105/


All Articles