|| 3.5 out of 5
IMAQ Pattern Matching Does Not Find All Objects
Primary Software Version:
Primary Software Fixed Version:
I have many objects in my image, and I need to find all of them. IMAQ Pattern Matching only returns a couple of items. What VIs are available to detect all items?
The IMAQ Advanced Setup Match Pattern 2 VI allows users to specify the search strategy of IMAQ Pattern Matching.
- Open the functions palette and place an IMAQ Advanced Setup Match Pattern 2 VI on the block diagram.
- Right-click and select Create»Control from the Advanced Rotation Match Options input on the IMAQ Advanced Setup Match Pattern 2 VI. The Advanced Rotation Match Options control is an array of values, for each initialized array cell the Pattern matching will become more specific to the users needs.
- To produce more results change the Setup Data Item to Search Strategy, you can then set the Item Value to 1. This is the conservative search option, it is processor intensive but very accurate, 2 is Balanced - it will find most objects, 3 is Aggressive which is very fast, but you may miss many of the objects.
- Double check that the Number of Matches Requested on IMAQ Match Pattern 2 is large enough.
Should you still fail to see all the items, check your camera and lighting settings. The Practical Guide to Machine Vision Lighting linked below contains information on how to easily improve your image, resulting in better pattern matching.
Related Links: Developer Zone Tutorial: A Practical Guide to Machine Vision Lighting - Part I