Go to Post Best. Team. Update. Ever. - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2010, 21:45
taoistconvert's Avatar
taoistconvert taoistconvert is offline
Registered User
FRC #0662
 
Join Date: Jan 2008
Location: Colorado Springs CO
Posts: 2
taoistconvert is an unknown quantity at this point
Question Vision Tracking Camera picking up too much...

Hey, we could use your help with a semi-detrimental issue with our Axis vision tracking system.

We have loaded the FIRST sample code (2010ImageDemo) and have got it running on Classmate; however, the system is tracking down too many other shapes besides the target. This is causing our camera to run a lot slower than normal.

We would like to know if any other teams have had a problem with this, and if so, how they have gotten around it.

Thanks for your help
  #2   Spotlight this post!  
Unread 21-01-2010, 01:00
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,532
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Vision Tracking Camera picking up too much...

1. Lower the resolution you are taking pictures at.
2. Decimate the image to remove every other line (or more).
3. Change the actual tolerances of the example program - they have a lot of tolerances in there that can be modified when you dig into the program - experiement with them!
4. Realize that it will run much much faster when the program is deployed to the crio and not being run from your development computer.
  #3   Spotlight this post!  
Unread 21-01-2010, 09:30
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: Vision Tracking Camera picking up too much...

Actually, there should be a white paper on the FIRST site that discusses tuning and troubleshooting. To speed things up, fewer pixels is indeed a common approach, but keep in mind that as pixels get larger, they represent more stuff in the real world. They average lots of detail and capture it in a single pixel. That averaging tends to round off corners and generally make everything look fuzzier. This will naturally make it more difficult for the ellipse code to be accurate.

Another way to speed up the vision code is to raise the edge threshold. This defines the difference between light and dark that defines an edge. Set too low, and all sorts of small things in the image will need to be mathematically fit, then filtered for ellipses.

Anyway, it would also be helpful to know what speed it is running at. Slow is not very accurate for debugging. And the first thing you may want to do is make it accurate, then try to speed it up. Do you want fast and buggy, or slow and accurate?

Greg McKaskle
  #4   Spotlight this post!  
Unread 21-01-2010, 12:52
Bill Tompkins's Avatar
Bill Tompkins Bill Tompkins is offline
LRI/MAR Board of Directors/Engineer
AKA: Bill Tompkins
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Princeton, NJ
Posts: 10
Bill Tompkins is a splendid one to beholdBill Tompkins is a splendid one to beholdBill Tompkins is a splendid one to beholdBill Tompkins is a splendid one to beholdBill Tompkins is a splendid one to beholdBill Tompkins is a splendid one to behold
Re: Vision Tracking Camera picking up too much...

What changes were needed to either the enviroment or software to get your system to work. My camera is talking and I get a clean build with WindRiver but no image or tracking.

Bill
  #5   Spotlight this post!  
Unread 21-01-2010, 12:54
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Vision Tracking Camera picking up too much...

Quote:
Originally Posted by Greg McKaskle View Post
Actually, there should be a white paper on the FIRST site that discusses tuning and troubleshooting.

Greg McKaskle
That would be great to have, but I can't find it. Who should we poke to get it released?
  #6   Spotlight this post!  
Unread 21-01-2010, 21:51
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: Vision Tracking Camera picking up too much...

I spoke too soon. Due to a misunderstanding, it will be posted on the NI site shortly and will have a link from FIRST.

Greg McKaskle
  #7   Spotlight this post!  
Unread 24-01-2010, 14:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,817
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Vision Tracking Camera picking up too much...

It's posted now: http://joule.ni.com/nidu/cds/view/p/id/1568/lang/en

You can get to it through the FIRST 2010 Control System page as well.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #8   Spotlight this post!  
Unread 24-01-2010, 19:04
Michael DiRamio Michael DiRamio is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: St. Catharines, Ontario, Canada
Posts: 39
Michael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond repute
Re: Vision Tracking Camera picking up too much...

I'm concerned about the white paper's assumption that there won't be "Streaked lighting" obscuring parts of the target at events.

In previous years this has often been a problem - vision systems work reliably in development and do not work at competition due to the (very) bright lighting.

Any suggestions about approaching this? We've tried modifying the curve options to try allowing curves with a gap to still be considered closed, or allow open curves, but have had limited success.
  #9   Spotlight this post!  
Unread 24-01-2010, 22:19
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: Vision Tracking Camera picking up too much...

The streaking assumption was based on movies taken with cameras onboard robots. Also, the lights on official fields tend to be on the long side of the field facing center, thus not shining into the eyes of the coaches and drivers.

If you intend to turn on occlusion, be sure to limit it to 20% or less. Also beware that this will probably require lowering the ellipse score and perhaps the overall score.

Greg McKskle
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ball Capacity? How Much is Too Much? And Can You Use It For A Strategical Advantage? thefro526 Rules/Strategy 21 01-02-2009 02:56
camera / vision system too laggy martin417 FRC Control System 7 08-01-2009 23:16
Too much traction DarkFlame145 Technical Discussion 36 24-02-2008 21:08
71's Vision Tracking Problems Bill Beatty Rumor Mill 7 19-04-2005 17:41
how much is too much on the DRILL MOTORS? archiver 2001 11 23-06-2002 23:53


All times are GMT -5. The time now is 14:45.

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