Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

real time image recognition

Hi

 

I have corrected the input path of my pattern png file and now I have the following error.

 

Error - 1074395247 occurred at IMAQ Match Pattern 3

Possible reasons:

IMAQ Vision: Invalid template descriptor

 

 

0 Kudos
Message 11 of 15
(1,724 Views)

Well,

You get this error because you probably provide an invalid template file.

you have to know that the template is a special image file.

It is in fact a png file that contains also some informations used by the matching function.

You have 3 options to get a valid template png file :

  • Use the one that you previously generate with vision assistant.
  • Create your own one within LabVIEW with the "IMAQ Learn Color Pattern" function and save it with the "IMAQ Write Image And Vision Info File" vi
  • You can also use the small editor provided by NI. See below:
  • editor.png
0 Kudos
Message 12 of 15
(1,718 Views)

Hi

 

I don't think so. The template file is correct.

0 Kudos
Message 13 of 15
(1,699 Views)

Hi

 

This is my new code. There is no errors now but the number of matches is always 0. I would like to mark the matches somehow (with red rectangle par example) but till the moment I have no success.

Please help me.

ColorPatternMatching.png

 

0 Kudos
Message 14 of 15
(1,687 Views)

Look at the pattern matching examples that load a template.  There are one or two steps for loading the template, which is usually done one time outside the loop.  There is also a step for setting up the pattern matching, if I remember correctly.  Inside the loop, you use the acquired image and template image to do the actual search.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 15 of 15
(1,675 Views)