Detect an rgb color image?


i have been experimenting with opencv for a little bit now
i noticed that i cant matchTemplate with rgb, the haystack and needle must be grayscale format, but in my circumstance i really need color

is there a way to matchTemplate rgb/bgr with cv2 in python, or is there a different function entirely for finding matches with color?


please explain, why, show data, code …

you can try colorMatchTemplate()
(but you need opencv-contrib-python)

the haystack data i am working with is in very low resolution(natively, there is nothing i can do about this, unfortunately), and trying to match a needle in this resolution without color produces errors very often

only way to distinguish needle from similar artifacts is by color