I am currently working on a python program that records a part of my screen (800x600 pixels) at about 20 frames per second with openCV. After some processing the result is displayed in a different window, but I struggle with the processing part:
I would like to eliminate all kinds of greyish colors. That means I would like to turn all pixels black where the three RGB values are equal (or similar). It seems like looping through every pixel is quite slow and won't handle the target of 20fps. This topic helped a lot for reducing the color of my input by using masks but won't work for eliminating grey.
Is there a good way to accomplish that?