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. :smiley:

Also, we are programming in java.

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.

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.

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?

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.