Log in

View Full Version : Cross Hairs on Camera in C++


tomy
18-02-2012, 19:28
Anyone know how to do this?

We are not going to do vision tracking instead our robot is low enough there we will line it up manually with our lazy susan. we need the camera to center on the bottom hoop. We need the center cross hairs to do this though on the laptop. we are not going to use tape we have tried that in the past and havent had good results

Greg McKaskle
19-02-2012, 09:20
Please search, I answered a similar post a month ago.

Greg McKaskle

Chiller
19-02-2012, 11:06
Anyone know how to do this?

We are not going to do vision tracking instead our robot is low enough there we will line it up manually with our lazy susan. we need the camera to center on the bottom hoop. We need the center cross hairs to do this though on the laptop. we are not going to use tape we have tried that in the past and havent had good results

Tape?

tomy
19-02-2012, 11:58
Find the center of the computer screen and put on it

dmitch
19-02-2012, 13:06
Our team took a hole punch to the sticky part of a pink post-it note and put it on the center of the bottom hoop. When our driver lines up with that dot in the square of the lower hoop we sink it in the top one every time. Cheap and much simpler than cross hairs.

r0b0man
19-02-2012, 17:28
It may not be that difficult to modify a labview dashboard example that overlays rectangles and have it permanently overlay a crosshair.

taichichuan
15-04-2012, 10:49
Greetings!

It's pretty easy to put an overlay on the camera image at the camera itself. Create a .bmp file of your crosshair in MSpaint or similar program. Log into the camera and select the image set up. There you will find an overlay function. Use that function to upload your .bmp to the camera's flash. The camera will automatically convert it to a .ovl. Then use the overlay function to set the X & Y position of the overlay and viola!

Good luck,

Mike

rainbowdash
01-05-2012, 04:11
Did you know you can move the crosshairs manually on- screen on the computer?
Or are you asking for something more complicated?

taichichuan
03-05-2012, 08:37
If you use the camera overlay approach, the simply give the camera a pixel location and the image is moved to that location. Very easy to sight in as long as the ball and shooter speed are consistent.

Mike