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.
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
Set the destination path for the template to be created
Specify the path to the image from which the template will be extracted from
Specify the path of the UUT image
Run the VI once to load the image
Select the desired Region of Interest (ROI) on the "UUT Image" indicator
Run the VI again
LabVIEW 8.6 or later
IMAQ (part of Vision Acquisition Software) - Compatibility Link