View Single Post
  #3   Spotlight this post!  
Unread 10-01-2015, 21:56
Cobra Commander's Avatar
Cobra Commander Cobra Commander is offline
Registered User
FRC #0498 (Cobra Commanders)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2001
Location: Glendale, AZ
Posts: 30
Cobra Commander is on a distinguished road
Re: What Java code is required to run a USB camera?

Quote:
Originally Posted by Joey1939 View Post
I already I saw this post I put it in our code but it still didn't work.

This is the initialization code copied exactly from our robot. I did verify that it is called "cam0".

public void robotInit() {
CameraServer server = CameraServer.getInstance();
server.setQuality(50);
server.startAutomaticCapture("cam0");
}