Go to Post Math is always fun, especially when it's useful. - Guy Davidson [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 02-01-2016, 04:29 AM
Turing'sEgo Turing'sEgo is offline
Registered User
no team
 
Join Date: Jan 2016
Rookie Year: 2010
Location: Boulder
Posts: 47
Turing'sEgo can only hope to improve
Need help fine tuning vision algorithm

I want to get the outer 4 corners of the targets, but all the methods I've tried are not as accurate as I'd like. Anyone have any ideas as to how I can do that? Image of a few of my attempts
  #2   Spotlight this post!  
Unread 02-01-2016, 06:48 AM
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: Need help fine tuning vision algorithm

It looks to me like you have the outer edges. Have you tried to solve for the line intersections?

Greg McKaskle
  #3   Spotlight this post!  
Unread 02-01-2016, 07:32 AM
lphung lphung is offline
Registered User
FRC #5994
 
Join Date: Jan 2016
Location: Montreal
Posts: 19
lphung is an unknown quantity at this point
Re: Need help fine tuning vision algorithm

Hi,

I am not sure what is the vision library you are using. If you are using OpenCV, I could suggest using the function: convexHull.

http://docs.opencv.org/2.4/doc/tutor...hull/hull.html
  #4   Spotlight this post!  
Unread 02-01-2016, 12:22 PM
JCharlton's Avatar
JCharlton JCharlton is offline
Registered User
AKA: JC
no team
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Montreal
Posts: 119
JCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to behold
Re: Need help fine tuning vision algorithm

Nice work!

For more accuracy you might try using the Find Edge function (in LabView it's under the Machine Vision palette). Once you have a rough idea of the size and location of the targets, Find Edges can do great things. I'm sure OpenCV can do something similar.

Can you post your code?
__________________
"There is no problem so bad that you can’t make it worse." - via Chris Hadfield
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 03:45 PM.

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