Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Cross Hairs on Camera in C++ (http://www.chiefdelphi.com/forums/showthread.php?t=103220)

tomy 02-18-2012 07:28 PM

Cross Hairs on Camera in C++
 
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 02-19-2012 09:20 AM

Re: Cross Hairs on Camera in C++
 
Please search, I answered a similar post a month ago.

Greg McKaskle

Chiller 02-19-2012 11:06 AM

Re: Cross Hairs on Camera in C++
 
Quote:

Originally Posted by tomy (Post 1129744)
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 02-19-2012 11:58 AM

Re: Cross Hairs on Camera in C++
 
Find the center of the computer screen and put on it

dmitch 02-19-2012 01:06 PM

Re: Cross Hairs on Camera in C++
 
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 02-19-2012 05:28 PM

Re: Cross Hairs on Camera in C++
 
It may not be that difficult to modify a labview dashboard example that overlays rectangles and have it permanently overlay a crosshair.

taichichuan 04-15-2012 10:49 AM

Re: Cross Hairs on Camera in C++
 
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 05-01-2012 04:11 AM

Re: Cross Hairs on Camera in C++
 
Did you know you can move the crosshairs manually on- screen on the computer?
Or are you asking for something more complicated?

taichichuan 05-03-2012 08:37 AM

Re: Cross Hairs on Camera in C++
 
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


All times are GMT -5. The time now is 04:17 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi