Overview
This VI creates a Vision Template programmatically in LabVIEW from a selected image file. This example can be useful because the template file that is created can be used in Vision Assistant.
Description
Once the desired image is loaded into LabVIEW, the user defines a ROI on the image for which the template file will be created from. The ROI template is then extracted and saved as a PNG file with the Vision Pattern Information included with it. The Vision Assistant Express VI is then used to look for matches of the newly created template in the UUT image.
Steps to Implement or Execute Code
Requirements
Software
LabVIEW 8.6 or later
IMAQ (part of Vision Acquisition Software) - Compatibility Link
Vision Development Module - Compatibility Link
Additional Images or Video
**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**
Il codice di esempio scaricato dall'Example Code Exchange nella NI Community è concesso in licenza con la licenza MIT.
This vi is saved in version 8.6 and not 8.5 as stated
muy buen aporte gracias
what is the uut image?
We are unable to make this work as is.
We get error -1074396077 "incompatible file type" from "IMAQ Learn pattern 2.vi".
Do you have any suggestions?
Same here...
Have you found the source of error ?
Thanks
what file formats of image will this vi program above supports. when i loaded a jpg image an converted png to jpg in the IMQ WRITE FILE it is not supporting the image. displays cannot read.
what migt be wrong with my JPEG files?
Hi,
The vi is a bit outdated. I fixed it (no more error) removing the type input from the "IMAQ create" and updating the vi using this example:
LabView\examples\Pattern Matching\Pattern Matching (All).vi
It is a default labview example but it works well and it is helpful to understand how the pattern matching works.
Hope it helps,
Cheers