![]() |
Camera Target (x,y) Position
On the driver's station, there's the thing which shows whether the robot should turn left or right. I was wondering where in the LabVIEW 2010 default program I may be able to reference the coordinates of the ellipse the camera has found.
Code is being sifted through at this moment. I'll re-post if you need more info or if we can find the variable. Thanks in advance. |
Re: Camera Target (x,y) Position
I believe that the information you are looking for is within the TARGET INFO global variable.
Note that this can have more than one target within this array of clusters. The highest scoring target is always sorted to #0. We extract the target info by first indexing the array with a "0", then unbundling the cluster for the X and Y values |
Re: Camera Target (x,y) Position
1 Attachment(s)
I have located said reference.
It was a pain going through all of the clusters and indecies, so I turned it into a vi. I have attached it to this post. It should work with any code that runs the standard vision processing. It spits out (x,y) coordinates to your program. |
Re: Camera Target (x,y) Position
1 Attachment(s)
Quote:
|
Re: Camera Target (x,y) Position
OK Alan ... how'd you hack my computer? That's the exact code we have in our targetting routines.
:yikes: |
Re: Camera Target (x,y) Position
Quote:
Quote:
|
Re: Camera Target (x,y) Position
Oh, C. How you were so perfect. Why is my team convinced that LabVIEW offers so many advantages?
Bah, no matter. Unbundle by name is quite superior to the mess I produced. Thank you. |
Re: Camera Target (x,y) Position
Labview does not offer any hugely significant advantages over C (other than it being slightly easier to learn for complete coding newbies).
C does not really offer any hugely significant advantages over Labview. People enjoy arguing about it, but the simple fact is that you will always be more effective programming in a language you know. I will say that as a labview programmer I envy the C teams and their lightening fast compile times compared to mine. |
| All times are GMT -5. The time now is 04:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi