Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to find photo inside image

I would like to find photo inside image. Below is an example:

Original image

I suppose that first I need to find edges. So I tried 2 approaches: Edge Canny detector:

Canny detector

Adaptive Threshold (with Gaussian smoothing):

Adaptive threshold

As you can see the edges are not perfect. Any ideas how to improve edge detection. Or maybe there is a way to find photo from Canny detector in second image?

Thank you for any tips in advance.