Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Microsoft Lifecam HD-3000 in Java (http://www.chiefdelphi.com/forums/showthread.php?t=134084)

Jeremy2145 06-02-2015 17:03

Microsoft Lifecam HD-3000 in Java
 
What do you need to do to stream the Microsoft Lifecam HD-3000 to the Smartdashboard?

markmcgary 06-02-2015 17:19

Re: Microsoft Lifecam HD-3000 in Java
 
We are running Java and this post 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

Re: Microsoft Lifecam HD-3000 in Java
 
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

Re: Microsoft Lifecam HD-3000 in Java
 
It appears that CameraServer is (now) a Singleton class. Try this:

Code:

            CameraServer camera = CameraServer.getInstance();
            camera.setQuality(50);
            camera.startAutomaticCapture("cam0");

-or-

Code:

            CameraServer.getInstance().setQuality(50);
            CameraServer.getInstance().startAutomaticCapture("cam0");


Tyfighter98 07-02-2015 11:25

This post might help as well. http://goo.gl/gVoLH6


All times are GMT -5. The time now is 22:24.

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