[Python] Fill Obstructed Shape With Color OpenCV

Discussão em 'Python' iniciado por Stack, Junho 15, 2025.

  1. Stack

    Stack Membro Participativo

    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?

    [​IMG][​IMG]

    Continue reading...

Compartilhe esta Página