Log in

View Full Version : Using 2 USB Cameras


Brainiac98
23-01-2016, 15:40
Hi everyone,

My team is having trouble figuring out how to use two of the Microsoft USB Cameras on one robot. We want to stream two camera feeds to SmartDashboard, but can't find any way to do so. I've heard elsewhere (I forget where) that with the wpilib USB camera code examples, there is no way to stream more than one. Is this still the case, or is there some way we can do this?

Thanks!

MooseGoose
23-01-2016, 16:19
We tried this and created a custom class of CameraServer with two different instances for the two cameras. It still didn't work spitting an internal error:

Error when starting the camera: cam3 cam2 IMAQdxError: -1074360319: Internal error at org.usfirst.frc.team611.robot.CameraServer610.star tAutomaticCapture(CameraServer610.java:209)
org.usfirst.frc.team611.robot.Robot.robotInit(Robo t.java:23)
edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:72)
edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:241)

We traced this error and it seems to come from the National Instruments vision library which we don't have access to.

So I don't think there is a way to send two USB Camera feeds on the roboRio unless you process it externally and send it as one feed.

kmodos
23-01-2016, 18:01
The snippet I posted here (http://www.chiefdelphi.com/forums/showthread.php?t=141904) will allow you to stream from multiple cameras, but only view 1 at a time.