Go to Post When you are at the regional no one cares if you are a rookie. You are a part of the family. - scitecteach [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 19-01-2017, 20:42
Keyla Nguenkam Keyla Nguenkam is offline
Registered User
FRC #4536
 
Join Date: Jan 2017
Location: US
Posts: 1
Keyla Nguenkam is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2017, 20:54
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 144
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: Microsoft USB Camera on DashBoard

Have you tried disabling all firewalls and antivirus software?
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2017, 14:17
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is online now
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,062
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: Microsoft USB Camera on DashBoard

Quote:
Originally Posted by AustinShalit View Post
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2017, 15:42
david.e.boles david.e.boles is offline
Bringer of Whales and Petunias
AKA: david476
FRC #5940 (BREAD)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2011
Location: San Francisco, CA
Posts: 30
david.e.boles is on a distinguished road
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.
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 12:58.

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