Go to Post Another lesson is don't post on Chief Delphi disappointed, stop and evaluate first. Emotions suck sometimes. :-) - sircedric4 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-02-2012, 19:28
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 490
tomy has a spectacular aura abouttomy has a spectacular aura about
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
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2012, 09:20
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,748
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: Cross Hairs on Camera in C++

Please search, I answered a similar post a month ago.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2012, 11:06
Chiller Chiller is offline
Registered User
AKA: Connor Christie
FRC #4095 (RoXI Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 118
Chiller is on a distinguished road
Re: Cross Hairs on Camera in C++

Quote:
Originally Posted by tomy View Post
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2012, 11:58
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 490
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Cross Hairs on Camera in C++

Find the center of the computer screen and put on it
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2012, 13:06
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
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.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2012, 17:28
r0b0man r0b0man is offline
Registered User
FRC #1308
 
Join Date: Jan 2012
Location: cleveland
Posts: 7
r0b0man is an unknown quantity at this point
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.
Reply With Quote
  #7   Spotlight this post!  
Unread 15-04-2012, 10:49
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
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
Reply With Quote
  #8   Spotlight this post!  
Unread 01-05-2012, 04:11
rainbowdash's Avatar
rainbowdash rainbowdash is offline
Director of Programming
AKA: Souvixada S.
FRC #1671 (Buchanan Bird Brains)
Team Role: Programmer
 
Join Date: Apr 2012
Rookie Year: 2005
Location: Clovis, CA
Posts: 28
rainbowdash is an unknown quantity at this point
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?
__________________
"Why change the code? Just reverse the polarity."
Reply With Quote
  #9   Spotlight this post!  
Unread 03-05-2012, 08:37
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
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
Reply With Quote
Reply


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 08:47.

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