Go to Post Ya know...sometimes, design specs get changed at the last second. Or the market changes while you weren't watching. It Happens. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2016, 15:40
Brainiac98's Avatar
Brainiac98 Brainiac98 is offline
Registered User
FRC #3528 (Up Next!)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Missouri
Posts: 1
Brainiac98 is an unknown quantity at this point
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!
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2016, 16:19
MooseGoose MooseGoose is offline
Registered User
FRC #0610
 
Join Date: Apr 2015
Location: Toronto
Posts: 3
MooseGoose is on a distinguished road
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2016, 18:01
kmodos kmodos is offline
Registered User
AKA: Alex
FRC #1126 (SparX)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: New York
Posts: 57
kmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to behold
Re: Using 2 USB Cameras

The snippet I posted here will allow you to stream from multiple cameras, but only view 1 at a time.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi