Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   How to use USB Cam (http://www.chiefdelphi.com/forums/showthread.php?t=154185)

basnyder 24-01-2017 17:04

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?

verlander13 24-01-2017 17:06

Re: How to use USB Cam
 
Put:

UsbCamera camera = CameraServer.getInstance().startAutomaticCapture() ;
camera.setResolution(640, 480);

RileyC3826 24-01-2017 18:32

Re: How to use USB Cam
 
Quote:

Originally Posted by verlander13 (Post 1635788)
Put:

UsbCamera camera = CameraServer.getInstance().startAutomaticCapture() ;
camera.setResolution(640, 480);

In addition to this, in the SmartDashboard, click 'Add' then 'Camera Stream viewer'.


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

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