Go to Post "Needless to say, my Roomba will be making my toast from now on" -Colbert - artK [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 24-01-2017, 17:04
basnyder basnyder is offline
Registered User
FRC #4505
 
Join Date: Jan 2017
Location: MD
Posts: 1
basnyder is an unknown quantity at this point
How to use USB Cam

We are using (or at least trying to) a Microsoft Lifecam-3000, and had it working semi-functionally last year, but last years code will not work this year. I checked the RIO and the camera name is "cam0" if that matters this year. I already checked the wpi link: http://wpilib.screenstepslive.com/s/...ifecam-hd-3000

I'm not trying for any vision processing on this camera, just to be able to stream from SmartDashboard. I'm not sure if there is a code component or if I just need to do something in SmartDash. Can anyone help?
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2017, 17:06
verlander13 verlander13 is offline
Registered User
AKA: Ian
FRC #1025 (IMPIS)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2015
Location: Ferndale
Posts: 9
verlander13 is an unknown quantity at this point
Re: How to use USB Cam

Put:

UsbCamera camera = CameraServer.getInstance().startAutomaticCapture() ;
camera.setResolution(640, 480);
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2017, 18:32
RileyC3826 RileyC3826 is offline
Registered User
FRC #3826 (Sequim Robotics Federation)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2013
Location: Sequim, Washington
Posts: 9
RileyC3826 is an unknown quantity at this point
Re: How to use USB Cam

Quote:
Originally Posted by verlander13 View Post
Put:

UsbCamera camera = CameraServer.getInstance().startAutomaticCapture() ;
camera.setResolution(640, 480);
In addition to this, in the SmartDashboard, click 'Add' then 'Camera Stream viewer'.
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 13:24.

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