Go to Post So, volunteer Field Resetters are to meet in the school's weight room for training? :D - Roger [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 28-02-2011, 15:19
Skragnoth Skragnoth is online now
Registered User
AKA: Clayton
FRC #0133 (BERT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2000
Location: Standish, ME
Posts: 15
Skragnoth has a spectacular aura aboutSkragnoth has a spectacular aura about
Camera Output Overlay

Does anyone know how to enable a vertical line overlay down the center of the camera output on the default driver station dashboard?

Our team is using the Axis camera to assist the driver in manually lining up with the deployment tower.

I suppose if all else fails, we can tape a line down the middle of the output on our classmate display.

Also, we are programming in java.
  #2   Spotlight this post!  
Unread 28-02-2011, 15:39
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Camera Output Overlay

you can't do it with the default driver station, but you can:
modify it (its written in LabVIEW)
write your own
use ZomB

if you use ZomB, drag a camera view on. Then create an image with the overlay you want (leave background transparent). Drag an image control on, and set the source to the image. Reposition it on top of the camera view. Save and deploy! you could also put the image as the background brush of an alert control and make it disappear/appear at will.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #3   Spotlight this post!  
Unread 28-02-2011, 15:46
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Camera Output Overlay

If you want to modify the default dashboard, it's not that hard.

Just create a Dashboard project in LabVIEW, and it will give you all of the code. You can find where it gets the image, and use the Overlay VI's to create an overlay rectangle (you could also use a line, but lines are 1px wide and hard to see).

You can't do it on the cRio because the image is never stored in a form you can work with before it is sent out to the dashboard. It is acquired from the camera (raw), and sent off to the dashboard, and then decoded into an actual image. The dashboard gets the raw data, and decodes it for its own use.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #4   Spotlight this post!  
Unread 14-03-2011, 10:32
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: Camera Output Overlay

I have heard of some Java teams writing their own Dashboard with JFrame's. So if you're capable of that, go for it!

I'm not too experienced in LabVIEW, but I am going to try making my own when our second cRIO gets here (which will hopefully be soon!) LabVIEW can't be too hard to learn, can it?
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
  #5   Spotlight this post!  
Unread 14-03-2011, 10:39
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,112
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: Camera Output Overlay

LabVIEW is very easy to learn. But watch out: the more you think you know about programming, the harder it can be. Be ready to forget everything first, and accept the dataflow programming paradigm as its own thing.
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 10:39.

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