Go to Post "This is the year that everyone on CD is going to learn to spell." "This is the year that everyone on CD will make a serious effort to write grammatically correct sentences." "This is the year that everyone on CD will think BEFORE they post." ... nah. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 20-01-2010, 13:23
Ghtm Ghtm is offline
Registered User
FRC #3089
 
Join Date: Jan 2010
Location: Israel
Posts: 2
Ghtm is an unknown quantity at this point
Using the vision processing function of FIRST to find circles

Hello

As we all know, the vision processing software of FIRST allows us to find a black ring which is needed to find two round shapes (the vision target), so we have two questions:

a. How can we change the software so we can find a circle of any color?

b. How can we change the software so we can only find the outer circle (not a ring) without the inner round shapes?

Both are supposed to be simple to change the software, as the more complicated functions are already inside (the actual search function).

Thank you
Team 3089

Last edited by Ghtm : 20-01-2010 at 13:32.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2010, 20:05
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: Using the vision processing function of FIRST to find circles

b. How can we change the software so we can only find the outer circle (not a ring) without the inner round shapes?

a.
The algorithm actually works on a monochrome image -- an image with only one byte per pixel. When used on the luminance plane of a color image, it detects edges between bright and dark pixels. In other words, dark blue and bright yellow should work quite well too.

If you wanted to detect red, it might make sense to extract the red plane instead. Or if you have very specific colors, you can build an expression of RGB which will map to large numbers for one color, and small for the other and run the image through that function first. If you have specific colors, please ask if you want assistance.

b.
The algorithm actually find the edge between the light and dark shape. In the FIRST target, there are two edges that the target controls, and possibly more if the target happens to be placed in front of a dark backdrop. If you find multiple circles, you can execute a follow-up step to sample some pixels that intersect the circle. For example, you could use the circle center and radius to extract a line profile from say 90%radius to 110% radius*1.5. You can then examine the pixels just inside and just outside to see which is bright and which is dark.

I hope that helps. If needed, ask more questions.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classmate vision software error CaptainMorton FRC Control System 3 14-01-2010 10:28
Has Any Team Been Able to Find and Cap a Vision Tetra in Autonomous? Wayne C. General Forum 33 24-02-2005 12:38
Is using vision Key this year? JamesBrown Programming 18 04-02-2005 18:07


All times are GMT -5. The time now is 22:42.

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