Go to Post If I run into some of your team's student coaches/drivers on the field of battle someday, I still might ask 'em what they're doing after high school. :) - Ken Patton [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2013, 12:24
toadoncart toadoncart is offline
Registered User
FRC #3834
 
Join Date: Feb 2012
Location: United States
Posts: 2
toadoncart is an unknown quantity at this point
Video Camera for Java

Hey All,

Our team's robot uses an AXIS video camera and it's been very laggy. My coach says i's because the router is getting signals from both the camera and the computer. Has anybody else had problems like this before?

Also, I wanted to customize the video camera view on the computer so that there is a little "box" or arrow that centers at where I'm shooting at. It's kind of like your typical shooting game where you have that little cursor looking thing that shows where you're aiming. Is that possible? We plan on adjusting the box thing to eventually cover the target area since our shooter is going to stay at a fixed inclination. Our team's programming is done on Java.

If anybody has experience doing this kind of stuff, please help us out! Thanks!
  #2   Spotlight this post!  
Unread 27-01-2013, 12:49
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Video Camera for Java

If the frame rate is too high, the image will lag. At 30 fps, we see nearly a second of delay between something moving in the camera's field of view and the image showing that motion. At 10 fps, there is no significant lag at all.

The Dashboard is programmed in LabVIEW. You can create a new Dashboard project and customize it however you like. There is no problem putting a crosshair image, or rectangles, or text, or whatever you like, on the video display. Look in the Vision and Motion >> Vision Utilities >> Overlay function subpalette for things that you can insert between the existing IMAQ Clear Overlay function in the Dashboard image loop and the indicator for the image.

The Axis camera also supports an in-camera overlay feature. I've never used it, so I don't have detailed instructions for you. Basically, you create a picture and send it to the camera with appropriate settings. The camera will add that picture on top of whatever it sends back as an image.
  #3   Spotlight this post!  
Unread 30-01-2013, 06:20
Negative 9 Negative 9 is offline
Registered User
FRC #0611
 
Join Date: Dec 2012
Location: Mclean, VA
Posts: 46
Negative 9 is an unknown quantity at this point
Re: Video Camera for Java

Quote:
Originally Posted by Alan Anderson View Post
If the frame rate is too high, the image will lag. At 30 fps, we see nearly a second of delay between something moving in the camera's field of view and the image showing that motion. At 10 fps, there is no significant lag at all.

The Dashboard is programmed in LabVIEW. You can create a new Dashboard project and customize it however you like. There is no problem putting a crosshair image, or rectangles, or text, or whatever you like, on the video display. Look in the Vision and Motion >> Vision Utilities >> Overlay function subpalette for things that you can insert between the existing IMAQ Clear Overlay function in the Dashboard image loop and the indicator for the image.

The Axis camera also supports an in-camera overlay feature. I've never used it, so I don't have detailed instructions for you. Basically, you create a picture and send it to the camera with appropriate settings. The camera will add that picture on top of whatever it sends back as an image.
Is there a way to program the dashboard using Java?
  #4   Spotlight this post!  
Unread 30-01-2013, 07:46
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,751
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: Video Camera for Java

Absolutely, it is called SmartDashboard and available from WPILib.

Greg McKaskle
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 02:13.

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