Go to Post Our team has a forum..... chiefdelphi.com Ok I had to say it. - Mike Martus [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 13-01-2014, 20:47
RaxusPrime's Avatar
RaxusPrime RaxusPrime is offline
Driver and Programming Captain
AKA: Brennen Martin
FRC #3883 (DataBits)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Cottage Grove, Minnesota
Posts: 15
RaxusPrime is on a distinguished road
Multiple Target Targeting

Hey guys! I have a question that I've been wondering since last year when I started programming vision tracking. How do you see two different targets (left or right target specifically) and keep then unique from each other? I've read the usfirst programming guide on the vision programming and I saw that the lab-view version of the vision tracking can determine if the target is left or right. How do you do this? Any help would be very helpful .



By the way I have unbundled the target info array so I'm up to that point.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2014, 01:17
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Multiple Target Targeting

I gave this thread some time so someone of more knowledge on the topic of computer vision in labview could help, but....that doesn't seem to be the case.

You could find the centers of the two targets, 1 and 2, and check to see if the x component of 1 < x component of 2. I'm not sure how easily it would be to extract the center from a target, but...that is the way to do it. Then, when you know which one has the lower x component, you could save off that variable as left and the other as right.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2014, 08:37
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,751
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: Multiple Target Targeting

The LV code uses the shape, or rather the relative location of the vertical and horizontal elements to identify a hot left, hot right, or not hot target. In retrospect, that would have been a better way to encode the results.

If you look at the ranking code, you will see it call Rank HV combos. This is where it looks through the list of particles, pairs them up, and classifies them as left or right.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2014, 20:29
RaxusPrime's Avatar
RaxusPrime RaxusPrime is offline
Driver and Programming Captain
AKA: Brennen Martin
FRC #3883 (DataBits)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Cottage Grove, Minnesota
Posts: 15
RaxusPrime is on a distinguished road
Re: Multiple Target Targeting

Quote:
Originally Posted by Greg McKaskle View Post
The LV code uses the shape, or rather the relative location of the vertical and horizontal elements to identify a hot left, hot right, or not hot target. In retrospect, that would have been a better way to encode the results.

If you look at the ranking code, you will see it call Rank HV combos. This is where it looks through the list of particles, pairs them up, and classifies them as left or right.

Greg McKaskle
Alright cool I think I see where you're coming from, the HV Combo is in one of the sub-VI's right?

Quote:
Originally Posted by faust1706 View Post
I gave this thread some time so someone of more knowledge on the topic of computer vision in labview could help, but....that doesn't seem to be the case.

You could find the centers of the two targets, 1 and 2, and check to see if the x component of 1 < x component of 2. I'm not sure how easily it would be to extract the center from a target, but...that is the way to do it. Then, when you know which one has the lower x component, you could save off that variable as left and the other as right.
Well I really appreciate the help, I didn't think of putting it like that. And I know that the center variable is one of the variables that is unbundled from target info, I'll look into it. Thanks again for your input!
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2014, 06:29
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,751
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: Multiple Target Targeting

I think the subVI is called Rank HV Combos.

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


All times are GMT -5. The time now is 09:57.

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