[Python] shrink and enlarge contour image with Python OpenCV

Discussão em 'Python' iniciado por Stack, Agosto 23, 2025.

  1. Stack

    Stack Membro Participativo

    I have an image with an object like below:

    [​IMG]

    I can detect the contour and get a mask with only ball region, but my ROI is the edge region, that means I need a bigger and a smaller mask which combine to get this:

    [​IMG]

    so my question is: how can I shrink/enlarge the mask of contour around contour's center?

    Continue reading...

Compartilhe esta Página