How to find photo inside image
I would like to find photo inside image. Below is an example:
I suppose that first I need to find edges. So I tried 2 approaches: Edge Canny detector:
Adaptive Threshold (with Gaussian smoothing):
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.
It's not clear what you actually want to do. Do you want to find this specific photo or do you want to rotate and crop a scanned image to extract all kinds of scanned photos?
I have same images with single (internal) photo. The photos inside images are different and they are on different background. But there is only single photo on every image. I want to crop the image to the internal photo.