Friends, I have a working OpenCV code that uses templatemacthing to recognize games items. I need help to improve the code. Its working well, but I estimate that 10% of cases when the background of template isn't ideal it will not work.
1: template. The ideal of image to recognize.
2: Image that may be not regocnized because the mix of colors in background.
3: the fullscreen that show the transparent background.
4: other example of image that may be not recognized on first try.