Go to Post I live for the offseason...that is, when i'm not living for the actual season. - Libby K [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 11-01-2012, 23:57
ssirovica's Avatar
ssirovica ssirovica is offline
Programming Captain
AKA: Sasha Sirovica
FRC #1458 (Red Ties)
Team Role: Programmer
 
Join Date: Sep 2011
Rookie Year: 2010
Location: Alamo
Posts: 26
ssirovica is an unknown quantity at this point
Image Tracking Simple Tutorial

Hey guys,

I am a rookie programming captain and it seems to me, and to the President of our club that vision tracking of the black reflective tape across the backboard of the hoops is necessary to be successful.

Unfortuantly all of the tutorials and information I have looked at seem extremely complicated. Such as: here , and here . All of this is above my mathematics level and seems way to theoretical. Can you please provide me with something more practical such as sample code, a simple tutorial, or anything else of that nature.

We plan to mount the camera on a Lazy Susan along with are launcher which can turn and aim at the hoops, if that helps.

Thanks for the help,
Sasha Sirovica
__________________
Computers run on smoke. When you let the smoke out the computer stops working.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2012, 04:45
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Image Tracking Simple Tutorial

Every other year FIRST has had sample code for all 3 languages for the vision task. I don't see any for C++ and Java yet, perhaps it is coming soon? I think last year's C++ and Java camera example came a little bit after kickoff.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2012, 08:40
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,752
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: Image Tracking Simple Tutorial

The second paper you mention describes the code released with LabVIEW. The math is pretty simple, just some ratios and a little bit of trigonometry. With an image of your target and a tape measure, you can use the NI Vision Assistant interactively to work through the paper and get comfortable with the math. Even better would be to do it with a teacher or mentor.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2012, 15:36
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: Image Tracking Simple Tutorial

The thing that makes the math more complicated is that with the circles, it became a matter of tracking something that was an ellipse (or something that was extremely close to one, close enough that the resolution of the camera didn't really pick up a change). With the rectangles, the problem becomes tracking an (to a degree) arbitrary quadrilateral. To have accurate measures, you need to know the four corners, which is hard to do using the automated NI vision stuff (or at least I am finding it to be).

The first paper you give is really cool, but unfortunately, is an algorithm for finding rectangles in a cooridor (with clear perspective lines). They state that the general perspective-transformed-rectangle finding problem, which we are trying to do, is very hard.
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 03:08.

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