Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   USB Camera Problems Please Help!! (http://www.chiefdelphi.com/forums/showthread.php?t=142340)

matthewdenny 22-01-2016 15:46

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

soundfx 23-01-2016 18:07

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


All times are GMT -5. The time now is 10:17.

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