Go to Post I have never before seen the words "smaller" and "Saturn V" used in the same sentence. Wow. :yikes: - DonRotolo [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 26-01-2009, 19:47
markulrich's Avatar
markulrich markulrich is offline
Head Captain and LabVIEW Programmer
FRC #2129 (Ultraviolet)
 
Join Date: Jan 2007
Rookie Year: 2003
Location: Minneapolis
Posts: 46
markulrich has a spectacular aura aboutmarkulrich has a spectacular aura about
Multiple Targets in "LabVIEW Sample two-color target tracking code"

Hey all,

My team doesn't have 2 vision targets and I couldn't tell by looking at the code; what happens if you have more than 1 distinct vision targets in front of the camera? (Does it return a rectangle covering both of them, or does it lock on to the bigger one, will the area percent include both, what if the 2 are switched, etc.)

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2009, 21:19
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: Multiple Targets in "LabVIEW Sample two-color target tracking code"

The way the example code was written, it will sort by size and then test the particles one at a time. If they overlap, the camera will likely likely see them as one, otherwise it will describe the largest.

If you'd like to get info on more than one, you can change the example to keep looping until you find as many as you like.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2009, 15:15
markulrich's Avatar
markulrich markulrich is offline
Head Captain and LabVIEW Programmer
FRC #2129 (Ultraviolet)
 
Join Date: Jan 2007
Rookie Year: 2003
Location: Minneapolis
Posts: 46
markulrich has a spectacular aura aboutmarkulrich has a spectacular aura about
Re: Multiple Targets in "LabVIEW Sample two-color target tracking code"

So if the targets weren't overlapping it would just select the larger target?
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2009, 16:09
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: Multiple Targets in "LabVIEW Sample two-color target tracking code"

It will describe the largest based upon the primary color threshold.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2009, 12:44
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: 123
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: Multiple Targets in "LabVIEW Sample two-color target tracking code"

Quote:
Originally Posted by markulrich View Post
Hey all,

My team doesn't have 2 vision targets ...

Thanks!
A little trick I did, cut some small squares from the fabrics and hold those closer to the lens. Gives you something to work with anyway.

jc
__________________
"There is no problem so bad that you can’t make it worse." - via Chris Hadfield
Reply With Quote
  #6   Spotlight this post!  
Unread 28-01-2009, 12:55
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Multiple Targets in "LabVIEW Sample two-color target tracking code"

You can see a video demonstration of the multi-target tracking in the middle of this video: http://www.youtube.com/watch?v=15nqy7hKixA
Reply With Quote
  #7   Spotlight this post!  
Unread 29-01-2009, 09:26
markulrich's Avatar
markulrich markulrich is offline
Head Captain and LabVIEW Programmer
FRC #2129 (Ultraviolet)
 
Join Date: Jan 2007
Rookie Year: 2003
Location: Minneapolis
Posts: 46
markulrich has a spectacular aura aboutmarkulrich has a spectacular aura about
Re: Multiple Targets in "LabVIEW Sample two-color target tracking code"

Very cool video! I saw that it was always able to pick the "enemy" target - what if you have 2 enemy targets infront, I assume it picks the larger one? (It doesn't just think there is a huge target and aim between them?)
Reply With Quote
  #8   Spotlight this post!  
Unread 29-01-2009, 11:52
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Multiple Targets in "LabVIEW Sample two-color target tracking code"

Quote:
Originally Posted by markulrich View Post
Very cool video! I saw that it was always able to pick the "enemy" target - what if you have 2 enemy targets infront, I assume it picks the larger one? (It doesn't just think there is a huge target and aim between them?)
At 1:15 there are two enemy targets, and it went for the larger one. It should be impossible to get 2 targets that are the same size and blend together, because of the dimensions of the trailer. And, if you get one trailer in the perfect position behind a trailer so they blend, it's unlikely to stay that way for very long.
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
Two Color Tracking Demo Bharat Nain Programming 43 25-01-2009 18:58
Two color tracking problem nadavsen2 Programming 3 19-01-2009 14:44
Camera locked in "tracking", but not tracking geeknerd99 Programming 1 18-02-2007 22:47
Green target has to "warm up"? Eldarion Programming 14 27-01-2006 12:52
Camera never finds target, stays at "Searching..." Mike Programming 12 22-01-2006 12:47


All times are GMT -5. The time now is 20:21.

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