08-20-2015 04:51 PM
Hello,
I used pattern matching and it is amazing tool.
However, it does not support multiple templates. As I have too many template I am forced to use single tool multiple times.
It also increases the processing time as one tool will take 15 ms time on average.
Is there any way to include multiple templates for single pattern matching tool?
Thanks,
Solved! Go to Solution.
08-21-2015 01:45 AM
Hello,
you cannot avoid additional processing time, if you want to test for multiple patterns. Each template needs to be moved accross the image and NCC calculated. You could try to optimize the process by using parallel matching (not a single for loop for all templates) and increasing the pyramid levels.
Best regards,
K
08-21-2015 08:19 AM
Thank you Klemen.
In vision builder, there is concept of state diagram.
compiler will choose only one path at a time only.
state can have multiple ins and outs. if >2 outs, we can provide priority in case of condition for >1 path becomes true.
1. How can I run tools in parallel?
2. When using classification tool, Vision builder stops responding when training database is of >1000 images. Can this be avoided?
3. My application needs at least 100 templates. I am worried because VB may stop responding.
Thanks
08-21-2015 08:43 AM
OCR is a form of pattern matching that uses a large number of templates all at once. Depending on your application, you could try that approach.
If you can convert your images to binary, you can use the classification routines, which probably use algorithms very similar to OCR to rapidly identify a shape.
Bruce
08-21-2015 10:04 AM
Thank you Bruce.
My application doesn't allow me to use binary images.
I am required to find greyscale (sometimes color) template matching test images.
Thanks,
08-22-2015 10:19 AM
Perhaps you could do it in two steps. Find a way to reduce the number of candidates using a set of properties, then you only have to do a few searches to narrow it down to one.
Bruce
08-22-2015 10:28 AM
That is a good point Bruce.
But this is already second step, where further steps can be generated by pattern matching only.
BTW, is it possible to execute steps/states in parallel, in Vision builder?
I think no, because In vision builder, there is concept of state diagram. compiler will choose only one path at a time only.
08-22-2015 10:40 AM
I don't think you can do it in Vision Builder. This is a time when switching to LabVIEW would be productive. You can run several parallel searches in LabVIEW easily.
Bruce
08-22-2015 10:50 AM
The use of LabView will solve the issue.
Good recommandation.
Thanks Bruce.
01-07-2017 10:13 PM
Hi guy,
About this question how could you to sloved by LV.Currently, I have had stuck .
can you share.