Opencv python irregular square detection


I want to detect the part marked in the red square.
The two on the right were successful using findcontours.
However, the one on the left is recognized as a large lump.

Imgur

this can be solved by Template match,if needed,you can scale the template to be matched in mutli-scale image resolution!

1 Like

I tried template matching but it didn’t work.