LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vision: image geometric pattern match

Solved!
Go to solution

Hi all,

 

I m Try Geometric pattern matching for my application.

as a trial i m trying to do it with simple Rectangle drawing as Template.

But i m Getting Following Error . i m using labview 2014 64 bit.

error.JPG

i m attaching template,matching image and vi....

 

thanks in advance.....

Download All
0 Kudos
Message 1 of 9
(5,105 Views)

NI Vision is one of the most challenging Toolboxes in LabVIEW.  Before starting to work with it, I strongly recommend at least six months of experience using LabVIEW, with the ability to at least achieve some level of LabVIEW certification.

 

I see you have taken one of the Example Programs that come with LabVIEW and tried to adapt it to your particular query.  Do you notice any important difference between your Template/Image set and the example VI?  The VIs you are trying to use were intended for Machine Vision, namely finding and identifying (complex) parts that match a template, where too much symmetry can be a drawback.

 

Bob Schor

0 Kudos
Message 2 of 9
(5,076 Views)

thank you Mr.Bob Schor

 

Yes i accept NI Vision is little complex and tricky module....

I m working on labview for more then 6 month and i already developed Few Automation software and Arduino test jigs as a part of industrial Project. i think my skills on labview is some what good enough to start on machine vision.

But this is my first Machine vision vi. 

 

i didn't noticed any difference between labview example program template and my template, thats the Main reason for me to start this post ....

 

i really hope some one can help me here for my start up...

0 Kudos
Message 3 of 9
(5,075 Views)

Your template has many axes of symmetry, has a very large "hole", and your test Image did not look like replicas of the Template.  Try and find literature on Machine Vision and how pattern matching works ...

 

Bob Schor

 

 

0 Kudos
Message 4 of 9
(5,072 Views)

Hi @paripoorman

Based from the error that you have shown, it seems to me that you have inappropriately set-up your template.
I have been using NI Vision Assistant the whole time for my applications and I suggest you might do the same and let Vision Assistant automatically generate the VI for you. If you need greater flexibility and want higher control of your application, then start from that point and modify the generated VI.
As an example, I have used Vision Assistant to set-up a geometric matching template as can be seen on the image below. It is the vi for setting up the template alone and it is obviously more complicated than the sample code you provided.Capture.PNG

 

0 Kudos
Message 5 of 9
(5,070 Views)

Thank you @clnglenn

 

i too understood that i  inappropriately setup something in my template.....

i checked this vi with LV sample templates still i m having the same error...

actually i wanted to know that how to setup the template....

 

 

 

0 Kudos
Message 6 of 9
(5,046 Views)
Solution
Accepted by topic author paripoornan

@paripoorman
There are a number of considerations in setting up a template like ROI, features, contours, edges etc and a lot more settings. If you just based your code on the LabVIEW example, there is a chance that you might not get it working simply because the features on the example template is different from the features of your template.
As a beginner, I strongly recommend using Vision Assistant Express VI as a staring point before going to write on low-level VIs. It will help you do image processing without the need of having to write the code yourself.

0 Kudos
Message 7 of 9
(5,043 Views)

thank you @ clnglenn

 

Sure I will try with Vision assistant...

0 Kudos
Message 8 of 9
(5,033 Views)

If you succeed with Vision Assistant, I believe it has an option to "undergo metamorphosis" and turn itself into IMAQdx functions that you can study to see "how to do this directly with IMAQdx".  While I dislike Express VIs as "easy fixes to complex LabVIEW Situtations", they do (a) often work for simple tasks, and (b) by "Opening the Front Panel" (I think that is what this is called) and irrevocably changing your Express VI to a series of LabVIEW Functions (do this on a copy of your VI so you can "throw it away" if you don't like the results), it makes a great Teaching Tool for seeing how NI functions are designed to work together.

 

I should mention that, just now, I plugged a camera into my PC, fired up Vision Assistant to take an Image, do some simple stuff, and get the underlying code, but my Vision Assistant appears to be missing the "Acquire Image" function in both LabVIEW 2016 and 2018.  Oh, well ...

 

Bob Schor

0 Kudos
Message 9 of 9
(5,026 Views)