09-01-2017 12:46 PM
Hello Labview Community,
This is my first time in the forum, and I'll try to explain myself well (btw, sorry for the bad english):
First of all, I'm working with Labview 2013 and with NI Vision Module 2013 (specifically the Color Pattern Matching from Vision Assistant Express), I'm trying to gather some match data (X,Y coords), lets say 5 samples, so I can later calculate an average of them (because I just need ONE coord from the object).
Once I have this average X,Y I want to show it on the screen (with Overlay Pattern Matching Results.vi) but I'm also stucked with this, because I don't know how to create the matches input on this VI.
I've tried to found solutions online but with no result... I hope you guys can help me.
Thanks in advance 🙂
09-01-2017 12:53 PM
Hi Lord Nox,
Can you upload what code you have so far? You can attach a zip file full of VIs so we can look at it. Also, since you are dealing with images, maybe you can make a simple drawing using MS Paint for what you are trying to extract and what you want to show on screen.
09-01-2017 01:05 PM
Here's my VI
I'm actually working with a webcam, and everything works fine, just that I want to just get one coord from the match instead of the severals I get because of the movement of the recognizing tool...
Thanks for the help
09-01-2017 02:42 PM
I've already "simulated" a Match array, it was just an Array with some Cluster inside, here's the picture.
But I still want to get the average from X different measures 😞
09-04-2017 05:14 PM
Hello lord_nox:
Please check the following information:
Title of the document: NI Vision Assistant Tutorial
http://www.ni.com/pdf/manuals/372228m.pdf
Also in case, you have questions about the specification of any Vi you can press Ctrl+H to get the context help, this pretty useful since will give more detail about the functions and required inputs.
09-05-2017 06:30 AM
The results is an array with clusters (in the cluster are clusters and scalars).
To first is to get the clusters from the array. Put an unbundle\unbundle by name in a for loop, and in the for loop you'll get the top level cluster. From that, unbundle the coordinates. The for loop will automatically build an array of values from the unbundled coordinates if you simply wire it through the for loop. Then you have an array of X and an array of Y coordinates. You can do the averaging on those arrays. I'm not sure if averaging the individual coordinates is scientifically correct, but it is the easiest for sure.