|
Re: Invalid Template image
Hopefully just for dinner.
Sorry I couldn't help, but I had to run errands with my kids. Is the error coming from the Match Color Pattern or from the block that loads the image? It should tell you in the complete error message, and you can open the code and probe the error I/O to verify if you need to.
Backing up a few steps, Color Pattern Matching is pretty intensive and is likely to take quite awhile to complete on the cRIO. The monochrome pattern matching will also work if you do the threshold with your color and then match for a hollow rectangle. Both color and monochrome pattern matching require pattern templates to be on the controller, which is one of the reasons the white paper didn't use them.
The other approach, the one outlined in the white paper does a threshold using color or intensity to produce blobs. It then requests a number of measurements on those blobs and checks to see how rectangular, how hollow, what ratio the sides have, and other simple stuff like that. I'm not going to discourage you from exploring on your own, but there is a reason why Color Pattern Matching wasn't used in the example in the white paper.
Greg McKaskle
|