|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Camera Code
I've been trying to use the CameraServer class to get the camera to send feed to the SmartDashboard, but I haven't managed to get it to work. I'm using a Microsoft LifeCam HD-3000 which I know works; I'm programming in Java with the WPILib plugin up to date. Any help on how to use the CameraServer would be appreciated. Thanks!
|
|
#2
|
|||
|
|||
|
Re: Camera Code
Code:
public void robotInit(){
CameraServer.getInstance().startAutomaticCapture( 0 );
}
|
|
#3
|
|||
|
|||
|
Quote:
if you ever want to do multiple, try this thread: https://www.chiefdelphi.com/forums/s...d.php?t=154213 |
|
#4
|
||||
|
||||
|
Re: Camera Code
try:
Code:
//All under robot.java import edu.wpi.first.wpilibj.CameraServer; //under robotInit camera = CameraServer.getInstance().startAutomaticCapture() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|