I have some images with section like the below, where a reddish or blueish line will be crossing over some light gray dots (192,192,192) RGB with a dark ring around it (96,96,96) RGB. I would like to fill the overlap with the "should be" colors -- fill the overlapped light gray with light gray again, and reform the encircling boundary. How can I achieve this using OpenCV or a similar Python library? Continue reading...