Go to Post Your not a robot (and they aren't perfect either) - Conor Ryan [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 06-02-2015, 17:03
Jeremy2145's Avatar
Jeremy2145 Jeremy2145 is offline
Registered User
FRC #2145
 
Join Date: Sep 2014
Location: Michigan
Posts: 7
Jeremy2145 is an unknown quantity at this point
Microsoft Lifecam HD-3000 in Java

What do you need to do to stream the Microsoft Lifecam HD-3000 to the Smartdashboard?
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2015, 17:19
markmcgary's Avatar
markmcgary markmcgary is online now
Software Mentor
FRC #4322 (Clockwork Oranges)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Fullerton, CA
Posts: 179
markmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nice
Re: Microsoft Lifecam HD-3000 in Java

We are running Java and this post helped us. We added the code in robotInit() (Iterative Robot) and we had a Lifecam HD-3000 USB camera image displayed in the standard dashboard while the robot was connected to the driver station, even when disabled.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2015, 17:30
Jeremy2145's Avatar
Jeremy2145 Jeremy2145 is offline
Registered User
FRC #2145
 
Join Date: Sep 2014
Location: Michigan
Posts: 7
Jeremy2145 is an unknown quantity at this point
Re: Microsoft Lifecam HD-3000 in Java

After adding that into the robotinit() it gives an error on "new CameraServer();" saying that "the constructor CameraServer() is not visible." Any ideas?
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2015, 17:36
markmcgary's Avatar
markmcgary markmcgary is online now
Software Mentor
FRC #4322 (Clockwork Oranges)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Fullerton, CA
Posts: 179
markmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nice
Re: Microsoft Lifecam HD-3000 in Java

It appears that CameraServer is (now) a Singleton class. Try this:

Code:
    	CameraServer camera = CameraServer.getInstance();
    	camera.setQuality(50);
    	camera.startAutomaticCapture("cam0");
-or-

Code:
    	CameraServer.getInstance().setQuality(50);
    	CameraServer.getInstance().startAutomaticCapture("cam0");
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2015, 11:25
Tyfighter98's Avatar
Tyfighter98 Tyfighter98 is offline
Software Lead
FRC #3255 (Super NURDs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: California
Posts: 17
Tyfighter98 is an unknown quantity at this point
This post might help as well. http://goo.gl/gVoLH6
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 18:02.

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