View Full Version : Microsoft Lifecam HD-3000 in Java
Jeremy2145
06-02-2015, 17:03
What do you need to do to stream the Microsoft Lifecam HD-3000 to the Smartdashboard?
markmcgary
06-02-2015, 17:19
We are running Java and this post (http://www.chiefdelphi.com/forums/showthread.php?p=1427102&highlight=CameraServer#post1427102) helped us. We added the code in robotInit() (Iterative Robot) and we had a Lifecam HD-3000 USB camera image displayed in the standard dashboard while the robot was connected to the driver station, even when disabled.
Jeremy2145
06-02-2015, 17:30
After adding that into the robotinit() it gives an error on "new CameraServer();" saying that "the constructor CameraServer() is not visible." Any ideas?
markmcgary
06-02-2015, 17:36
It appears that CameraServer is (now) a Singleton class. Try this:
CameraServer camera = CameraServer.getInstance();
camera.setQuality(50);
camera.startAutomaticCapture("cam0");
-or-
CameraServer.getInstance().setQuality(50);
CameraServer.getInstance().startAutomaticCapture("cam0");
Tyfighter98
07-02-2015, 11:25
This post might help as well. http://goo.gl/gVoLH6
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.