Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple ROIs for Pattern matching

Hi,
I'm developing an aplication with NI-IMAQ. I'm taking two different template - as a ROI (plus CTRL) from one image - to learn. Then I want aplication to find both of them on image. My app for now can only find last. How can I find all of templates? As an example I'm using Pattern_Matching_Example.vi. Thanks for answers.
0 Kudos
Message 1 of 2
(3,044 Views)
You need to handle this as two completely separate searches. Train the two ROIs as separate patterns (two images), then search for each one separately. The pattern matching only works for a single rectangular ROI, so this is the only way to do it.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 2
(3,044 Views)