Go to Post There's a stark difference between bragging and taking pride in your work. While "Ha ha! We're better than you! We won seventeen regionals and you didn't!" would clearly fall in the former, listing your achievements would definitely fall in the latter. - artdutra04 [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 01-02-2012, 18:18
jaysun jaysun is offline
Registered User
no team
 
Join Date: Feb 2012
Rookie Year: 2000
Location: USA
Posts: 17
jaysun is an unknown quantity at this point
Rectangle Recognition

Hello,

How are you guys recognizing the retroreflective rectangle with the LabVIEW example?

For our team, the code keeps looping between recognizing the rectangle for less than a second and then deciding it's not a rectangle before recognizing it again. We only achieve these results by shining a bright LED flashlight from near the camera lens toward the rectangle.

Will a ring of LEDs work, or is there anything else you guys are using that might work?

Thanks.

Last edited by jaysun : 01-02-2012 at 18:57.
  #2   Spotlight this post!  
Unread 01-02-2012, 22:06
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 63
dvanvoorst is an unknown quantity at this point
Re: Rectangle Recognition

A ring of LED lights around the camera works great! If you use a particular color, such as red LEDs, then you can filter your image for red objects.
  #3   Spotlight this post!  
Unread 02-02-2012, 15:19
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Rectangle Recognition

A light ring is a great way to do it, though consider when you choose your color what colors are likely to be in the environment

If you are just using the stock example, take a look at the NI Vision Assistant, it's a handy tool for tuning the vision detection algorithm for your situation. You'll want to play around and find what works best for your lighting situation.

Theres alot of great information in the NI Vision white paper for how to setup the vision assistant as well, and be sure to tune the settings on your camera (like the brightness) to get the best results.
  #4   Spotlight this post!  
Unread 02-02-2012, 15:35
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Rectangle Recognition

Quote:
Originally Posted by dvanvoorst View Post
A ring of LED lights around the camera works great! If you use a particular color, such as red LEDs, then you can filter your image for red objects.
Don't use red!

The lights are red and blue, depending on the alliance...
  #5   Spotlight this post!  
Unread 02-02-2012, 16:43
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,753
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: Rectangle Recognition

But the red and blue alliance lights are relatively small. They are not 18" x 24" hollow rectangles. So, it shouldn't be difficult to use red or blue even in the presence of an alliance light, with your ring-light reflecting off of the diamond plate, and with a team with red and blue T-Shirts at the driving stations.

Greg McKaskle
  #6   Spotlight this post!  
Unread 02-02-2012, 17:43
KrazyCarl92's Avatar
KrazyCarl92 KrazyCarl92 is offline
Registered User
AKA: Carl Springli
FRC #5811 (The BONDS)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dayton, OH
Posts: 521
KrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond repute
Re: Rectangle Recognition

But why not just use a color that is not one of the alliance colors, say green LED lights...
__________________
[2017-present] FRC 0020 - The Rocketeers
[2016] FRC 5811 - BONDS Robotics
[2010-2015] FRC 0020 - The Rocketeers
  #7   Spotlight this post!  
Unread 02-02-2012, 18:50
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,753
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: Rectangle Recognition

Thinking about what is on the field and will show up in the image is a very good idea. If you can guarantee a unique color, it will allow for simpler processing. If you cannot guarantee it, and it breaks the simple targeting, and the options are to modify the color, or up the processing to use additional features.

Greg Mckaskle
  #8   Spotlight this post!  
Unread 02-02-2012, 18:51
ganchara ganchara is offline
Registered User
FRC #2523 (Hilltoppers)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: vermont
Posts: 28
ganchara is an unknown quantity at this point
Re: Rectangle Recognition

well, the site my team was planning on getting our ring led's from is sold out of 60mm diameter green ring LED's
  #9   Spotlight this post!  
Unread 02-02-2012, 20:52
KennyLives's Avatar
KennyLives KennyLives is offline
Grand Vizier of Pneumadynes
AKA: Kenneth Prouty
FRC #2122 (Team Tators)
Team Role: Mechanical
 
Join Date: Oct 2011
Rookie Year: 2010
Location: Boise
Posts: 44
KennyLives is an unknown quantity at this point
Re: Rectangle Recognition

Quote:
Originally Posted by dvanvoorst View Post
A ring of LED lights around the camera works great! If you use a particular color, such as red LEDs, then you can filter your image for red objects.
We use LED rings (Angel Eyes) from www.superbrightleds.com . They are perfect for this job.
__________________
No leaks. Ever.
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


All times are GMT -5. The time now is 18:55.

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