Go to Post ...from my experience, it is really fun to play defense really well. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-01-2016, 15:46
matthewdenny's Avatar
matthewdenny matthewdenny is online now
Registered User
FRC #6054 (Dukes)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 310
matthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant future
Exclamation USB Camera Problems Please Help!!

We are having major issues taking the feed from the microsoft 3000 camera to the dashboard. Here is the code we are trying to use. Please help if possible!

public class QuickVisionRobot extends SampleRobot
{
@Override
public void robotInit() {
{
CameraServer.getInstance().setQuality(50);
CameraServer.getInstance().startAutomaticCapture(" cam0");
}
}
}

public void startAutomaticCapture(USBCamera cam02) {
// TODO Auto-generated method stub
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2016, 18:07
soundfx's Avatar
soundfx soundfx is offline
Registered User
AKA: Aaron J
FRC #3238 (Cyborg Ferrets)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Anacortes, WA
Posts: 17
soundfx is an unknown quantity at this point
Re: USB Camera Problems Please Help!!

My team got ours to work using the USBCamera to set the camera name and starting automatic capture with the USBCamera object. This code placed in robot init worked for us with camera already declared as a USBCamera.

camera = new USBCamera("cam0");
CameraServer.getInstance().setQuality(50);
CameraServer.getInstance().startAutomaticCapture(c amera);
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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