Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Microsoft USB Camera on DashBoard (http://www.chiefdelphi.com/forums/showthread.php?t=153945)

Keyla Nguenkam 19-01-2017 20:42

Microsoft USB Camera on DashBoard
 
We have been trying to figure out how to use an HD Microsoft Camera on the SmartDashboard with Java but it doesn't work. It only works when the SmartDashboard on Default.
The code we have for the Camera:

Code:

public void robotInit() {
new Thread(() -> {
UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();
camera.setResolution(640, 480);
CvSink cvSink = CameraServer.getInstance().getVideo();
CvSource outputStream = CameraServer.getInstance().putVideo("Blur", 640,
480);
Mat source = new Mat();
Mat output = new Mat();
while(true) {
cvSink.grabFrame(source);
Imgproc.cvtColor(source, output, Imgproc.COLOR_BGR2GRAY);
outputStream.putFrame(output);
}
}).start();
}
}

We got it from
https://s3.amazonaws.com/screensteps...pdf?1484868916
Everything works perfectly well when we use Default.
Thanks in advance,
Team4536

AustinShalit 19-01-2017 20:54

Re: Microsoft USB Camera on DashBoard
 
Have you tried disabling all firewalls and antivirus software?

Caleb Sykes 21-01-2017 14:17

Re: Microsoft USB Camera on DashBoard
 
Quote:

Originally Posted by AustinShalit (Post 1633723)
Have you tried disabling all firewalls and antivirus software?

We have now gotten the camera to display to the standard SmartDashboard, but we still cannot get it to display on SmartDashboard 2.0.

We can try disabling antivirus, but I doubt that is the root problem.

david.e.boles 21-01-2017 15:42

Re: Microsoft USB Camera on DashBoard
 
We got it to work by specifying the URL that it should be pulling from. I can't remember exactly what it was but I think it was on a different port, I think we found it either somewhere on the old SmartDashboard or the NI one.


All times are GMT -5. The time now is 21:40.

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