02-06-2022 11:36 AM
Hi,
I am trying to compare two images using the Golden template Inspection in Vision Examples.
I get the following error : MAQ Vision: (Hex 0xBFF60791) Invalid template descriptor.
The two images in my test code is identical. Also why is the template image shown in BW ?
Any ideas that can point me in the right direction?
Thanks
Solved! Go to Solution.
02-06-2022 08:43 PM
Hi
You may not learn the golden template information, and directly comparing the two "raw images".
Please note, comparing two image directly without template information only works in idea world. To perform the Golden Template Inspection in real world, we need consider the difference of image size, rotation, misalignment, Distortion, gray scale difference and noise etc. those information have to be learnt from the golden template before you perform the comparison.
the template information can be learnt in design phase or run-time phase.
To do it in design phase, please use vision template editor and save the template information with your .png template(see below):
to do it in run time phase, the IMAQ learn pattern and IMAQ learn Golden shall be used, I have quickly modified the example for this purpose as below:
Gaoke
02-08-2022 05:38 PM
Gaoke,
thank you so much for this information. I see that it is a lot more into it and I really learned from this.
One question still, why are the images (both template and source) shown in black/white?
Regards,
Hans
02-09-2022 07:17 PM
You are very welcome!
believe the black/white image caused by the pattern learnt was based on grayscale.
gaoke