Go to Post Let this be a hint to the hardware teams. Deliver that robot early and give the software and driving team time with the robot. IR3 has proven it can be done. - Doug Leppard [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 10-01-2015, 11:43
aweso_meme aweso_meme is offline
Registered User
FRC #4687
 
Join Date: Feb 2014
Location: Minnesota
Posts: 20
aweso_meme is an unknown quantity at this point
USB Cameras

Hello All,

With the new RoboRio having USB ports, does this mean we can attach any USB 2.0 camera to the RoboRio, and then use the default code provided from the examples in Eclipse (Java) to display the image from the camera on the screen of the drivers station, and continuously update? Or do we need a specific type of camera?

Thanks.
  #2   Spotlight this post!  
Unread 10-01-2015, 12:11
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: USB Cameras

All USB cameras haven't been tested so I can only speak for the ones we did test. They worked through default LabVIEW by just plugging them in and enabling on the Dashboard.
We tested two models:
  • Microsoft Lifecam HD3000
  • Logitech HD Pro Webcam C920 (just what was in Target or Best Buy)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 10-01-2015, 13:50
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: USB Cameras

I tested a number of others from Logitech and Microsoft. I also tested a dual camera 3D camera, and while awkward to use, it worked also. The myRIO has been out for about a year, and you may be able to find some people who list cameras that work, don't work or need additional packages installed to work.

Greg McKaskle
  #4   Spotlight this post!  
Unread 10-01-2015, 19:23
tStano tStano is offline
Registered User
AKA: Sparks
no team
Team Role: Electrical
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Madison, WI
Posts: 177
tStano will become famous soon enough
Re: USB Cameras

Quote:
Originally Posted by Mark McLeod View Post
All USB cameras haven't been tested so I can only speak for the ones we did test. They worked through default LabVIEW by just plugging them in and enabling on the Dashboard.
We tested two models:
  • Microsoft Lifecam HD3000
  • Logitech HD Pro Webcam C920 (just what was in Target or Best Buy)
How are these cameras powered? Is it just through the USB? Does anyone know if USB cameras cause a lot of work for the roboRIO over network cameras? I am especially asking about the Lifecam.
  #5   Spotlight this post!  
Unread 10-01-2015, 19:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: USB Cameras

They just require the USB cable, one wire. All power comes through that.

For streaming video to the laptop a USB camera is more work for the roboRIO over an IP camera like the Axis, because the Axis IP camera serves images directly to the PC, while the USB video stream goes right into the roboRIO and the user has to have code to then forward the images to the PC. That extra stop adds about a tenth of a second lag.

For processing on the roboRIO the IP and USB cameras are about equal. The USB connection makes wiring easier.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-01-2015 at 19:41.
  #6   Spotlight this post!  
Unread 10-02-2015, 20:54
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
Closed Thread


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 09:28.

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