Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

How to detect only contours that are within another contour in opencv?

$
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.

enter image description here


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>