|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Microsoft Lifecam HD-3000 in Java
What do you need to do to stream the Microsoft Lifecam HD-3000 to the Smartdashboard?
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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?
|
|
#4
|
||||
|
||||
|
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");
Code:
CameraServer.getInstance().setQuality(50);
CameraServer.getInstance().startAutomaticCapture("cam0");
|
|
#5
|
||||
|
||||
|
This post might help as well. http://goo.gl/gVoLH6
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|