|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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! |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
||||
|
||||
|
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?
|
|
#4
|
|||
|
|||
|
Re: Multiple Targets in "LabVIEW Sample two-color target tracking code"
It will describe the largest based upon the primary color threshold.
Greg McKaskle |
|
#5
|
||||
|
||||
|
Re: Multiple Targets in "LabVIEW Sample two-color target tracking code"
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 |
|
#6
|
||||||
|
||||||
|
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
|
|
#7
|
||||
|
||||
|
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?)
|
|
#8
|
||||||
|
||||||
|
Re: Multiple Targets in "LabVIEW Sample two-color target tracking code"
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |