Go to Post How are we as mentors and coaches presenting ourselves? We we are is who they will emulate. It is the nature of coaching, the nature of leading. - MysterE [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 21-01-2015, 19:02
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Not seeing MS Webcam images in default dashboard

We seem to have everything set up correctly and communications seem fine, but we are not seeing images from the MS Webcam on the Default dashboard. I select "Camera HW" (Camera SW also doesn't work) and click the green right arrow button and the counters change showing the frames per second, but we don't actually see an image in that big box on the left. We have tried both USB ports on the roboRIO, but no images.

Ideas? Other data I need to provide before you can tell me what simple thing we are doing wrong?

Thanks
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
  #2   Spotlight this post!  
Unread 21-01-2015, 19:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Not seeing MS Webcam images in default dashboard

  1. Don't click on the green arrow.
  2. Try pushing Reset on the roboRIO after the camera is plugged in.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 21-01-2015, 19:15
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Not seeing MS Webcam images in default dashboard

Our team was having trouble with the camera (albeit an axis camera) and our solution was to override the camera ip variable in the dashboard code and hardwire the ip of the camera. It should be inside the second loop, near the left.
__________________
2015 MAR District Champions




  #4   Spotlight this post!  
Unread 21-01-2015, 21:48
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Not seeing MS Webcam images in default dashboard

What language are you using?
Did the driverstation report you having robot code?
Did the blue light on the MS camera come on?
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
  #5   Spotlight this post!  
Unread 21-01-2015, 23:47
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: Not seeing MS Webcam images in default dashboard

  • We are using Java, but I was trying to use the Default dashboard. The Java dashboard won't come up at all, but that is probably a different issue. I'm reasonably sure all the software is installed correctly.
  • Driver's station does show communications and robot code. I can load up the example program and run autonomous from the dashboard and a motor connected to PWM 1 spins for 2 seconds as expected.
  • The blue light is not on on the MS Web Cam. It flashes a couple of times when you first plug it in.
  • Did push reset on the roboRIO after plugging in the webcam.
  • The camera is shown in the RoboRIO Webdashboard.

    What does clicking on the green arrow in the middle right do? Is it then trying to log the images? This is the only way I can get it to do anything. At least in that case the FPS number updates.
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
  #6   Spotlight this post!  
Unread 22-01-2015, 00:38
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: 175
markmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nice
Re: Not seeing MS Webcam images in default dashboard

Quote:
Originally Posted by adamdb View Post
Ideas?
This post helped us. We added the code in robotInit() (Iterative Robot) and we had a camera image displayed in the standard dashboard while the robot was connected to the driver station, even when disabled.

Last edited by markmcgary : 22-01-2015 at 00:46. Reason: Additional details.
  #7   Spotlight this post!  
Unread 22-01-2015, 08:15
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Not seeing MS Webcam images in default dashboard

The green arrow, red square, and red circle are for recording the video and smart dashboard values to a log file for later review. Triangle plays a recorded video, circle records the current feed in a new file. Square stops both other actions.

Greg McKaskle
  #8   Spotlight this post!  
Unread 22-01-2015, 10:09
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Not seeing MS Webcam images in default dashboard

ok, so it sounds like the RIO isn't opening the camera. We're labview so I can't diagnose anymore than that. Let us know if what markmcgary linked to works.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
  #9   Spotlight this post!  
Unread 23-01-2015, 07:48
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Not seeing MS Webcam images in default dashboard

So we were able to get our axis camera to show up on the dashboard yesterday by changing the name of it to axis-camera. However, we're having problems connecting to it through our code. We are getting a connection refusal when we access it as such:

Code:
AxisCamera camera = new AxisCamera("axis-camera");
Any ideas?
  #10   Spotlight this post!  
Unread 23-01-2015, 08:26
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Not seeing MS Webcam images in default dashboard

Did you try it with .local appended to your address name?

Greg McKaskle
  #11   Spotlight this post!  
Unread 23-01-2015, 08:50
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Not seeing MS Webcam images in default dashboard

Quote:
Originally Posted by Greg McKaskle View Post
Did you try it with .local appended to your address name?

Greg McKaskle
Yes I did. Both gave the same failure. I will get the exception on Saturday and post it.
  #12   Spotlight this post!  
Unread 24-01-2015, 11:47
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Not seeing MS Webcam images in default dashboard

Here is the exception we get when trying to run with

Code:
AxisCamera("axis-camera.local");
Code:
java.net.ConnectException: Network is unreachable
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at edu.wpi.first.wpilibj.vision.AxisCamera.createCameraSocket(AxisCamera.java:532)
	at edu.wpi.first.wpilibj.vision.AxisCamera.access$200(AxisCamera.java:28)
	at edu.wpi.first.wpilibj.vision.AxisCamera$1.run(AxisCamera.java:406)
	at java.lang.Thread.run(Thread.java:745)
  #13   Spotlight this post!  
Unread 24-01-2015, 14:28
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Not seeing MS Webcam images in default dashboard

Quote:
Originally Posted by notmattlythgoe View Post
So we were able to get our axis camera to show up on the dashboard yesterday by changing the name of it to axis-camera. However, we're having problems connecting to it through our code. We are getting a connection refusal when we access it as such:

Code:
AxisCamera camera = new AxisCamera("axis-camera");
Any ideas?
We've successfully used the AxisCamera class using both ip address and axis-camera.local using the Axis Camera Sample program.
  #14   Spotlight this post!  
Unread 24-01-2015, 14:49
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Not seeing MS Webcam images in default dashboard

Quote:
Originally Posted by Joe Ross View Post
We've successfully used the AxisCamera class using both ip address and axis-camera.local using the Axis Camera Sample program.
Have you had any success doing a color threshold of the image?
  #15   Spotlight this post!  
Unread 24-01-2015, 15:01
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Not seeing MS Webcam images in default dashboard

Quote:
Originally Posted by notmattlythgoe View Post
Have you had any success doing a color threshold of the image?
I was able to run the 2015 Vision Color Sample, which does a color threshold. I modified it (few lines of code) to get the data from the axis camera, rather then a file. It does a color threshold to find the yellow bin.
Closed Thread


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 00:43.

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