Go to Post Come on baby, do the logomotion with me. - JaneYoung [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 06-02-2010, 13:48
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
imaqDetectCircles

After fiddling with MonoImage's DetectEllipses (which is a wrapper around imaqDetectEllipses, albeit a poor one.. but that's for another day) I found that there is also a imaqDetectCircles function. I've found that this function returns a lot less false positives. Has anyone else had similar results? Target recognition is still not working 100% as one would hope, but hopefully with adjusting the CurveOptions and ShapeDetectionOptions parameters it should become satisfactory.
  #2   Spotlight this post!  
Unread 06-02-2010, 21:02
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: imaqDetectCircles

You are correct that IMAQ has an ellipse, circle and even a rectangle detection routine, and of course they are there for you to use.

As for whether this is a good idea or not, it should work pretty well assuming you are lined up directly in front of the target. As the robot moves to the side, the circle gets squished and becomes an ellipse. As the angle, changes, the circle score will fall until it is no longer reported as a valid circle.

As for the false positives, you may want to check out the white paper on the NI site. The quick things to improve the situation is to change the threshold so that weaker edges are ignored. Also, the medium sized image tends to have a much sharper edge. Small images blend the pixels and are essentially blurred. Blurred shapes make corners disappear and many shapes become more circular, and at the same time, the circle's edge is less crisp and the score falls.

Greg McKaskle
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 10:06.

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