|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Using 2 USB Cameras
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! |
|
#2
|
|||
|
|||
|
Re: Using 2 USB Cameras
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|