Microsoft Lifecam HD-3000 in Java

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

1 Like

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.

After adding that into the robotinit() it gives an error on “new CameraServer();” saying that “the constructor CameraServer() is not visible.” Any ideas?

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");

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