Thread: USB Cameras
View Single Post
  #6   Spotlight this post!  
Unread 02-10-2015, 08:54 PM
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: USB Cameras

Greetings!

Here is code that runs dual USB cameras. It's in the form of a C++ Eclipse project. It should be extensible to multiple (more than 2) cameras. The process is a bit convoluted because the WPILib objects hardcode themselves to camera 0. So, you've got to completely shut down camera 0 before enabling camera 1 and vice versa. Sorry that it's a bit light on comments. But, we always try to write self-documenting code ;-) . If you've got any questions, feel free to contact me via PM and I'll try to answer them.

You can find the code in thread: http://www.chiefdelphi.com/forums/sh...d.php?t=133939

HTH,

Mike