Ask Your Question
0

capture from multiple usb cameras (webcams) on Mac?

asked 2014-04-23 01:39:27 -0600

I can capture from a single usb camera at a time, but not more than one at once.

I'm using a recent build of the git trunk (so, 3.0-ish) and running os x lion. I realize I could try other versions of OpenCV.

Has anyone ever gotten multiple usb cameras working on a mac?

Thanks! Tyler

edit retag flag offensive close merge delete

Comments

1

I think, that this is exactly what you need. Keep reading, it has guidelines on how to enable multiple camera reads :) Another approach could be to open up two threads and address a cam port on each thread!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-23 02:00:40 -0600 )edit

Thanks, StevenPuttemans. The link you suggest says that OpenCV cannot do more than one camera at a time (at least for the PS Eye).

rosetter gravatar imagerosetter ( 2014-04-30 20:52:14 -0600 )edit

Yeah but it does state how to solve the problem or how to work around it. Like I said, keep on reading!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-01 02:09:37 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-23 14:30:52 -0600

Are you using C, C++ or python? If you're using C++ u need start the VideoCapture(), VideoCapture(0) for webcam pattern, 1 for secondary and so on. And then initialize the frames.

edit flag offensive delete link more

Comments

I'm using c++ and grabbing from each camera in a separate thread (trying to). Have you gotten multiple cameras working on a Mac? I know how the API should work -- the problem is that it's not working. I can capture from one camera, but not more than one at the same time.

rosetter gravatar imagerosetter ( 2014-04-30 20:51:04 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-23 01:39:27 -0600

Seen: 2,091 times

Last updated: Apr 23 '14