$ 0 0 I have the image shown below. How could I detect only the contours of the 4 squares that are inside? I have tried doing it, but I only managed to detect the squares that have contours within them, but I need to know it the other way around.