detecting a photograph [closed]

asked 2016-12-24 13:51:25 -0600

atv gravatar image

Hi all, I'm trying to detect a photograph, maybe up to 3 or 4 at a time. I tried using https://github.com/opencv/opencv/blob...

But it works a bit too good (detecting lots of rectangles everywhere). If i hold up a book it identifies rectangles on the book, but not the book itself. Sometimes it does, but very rarely (Same for photograph). Is there any way of finding the closest contours to the screen? Or should i adjust the threshold (tried that).

Maybe i should go for blob detection ?

Thanks for your suggestions. atv

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-09-24 19:02:17.920709

Comments

would you add some samples of images of what you are trying to detect , this will help to get the problem and try to find the solution

essamzaky gravatar imageessamzaky ( 2016-12-25 08:09:59 -0600 )edit

Well i'm trying to detect photographs on a live webcam. I noticed that it detects the photograph on the back fine (all white) but not the front where the picture is.

atv gravatar imageatv ( 2016-12-25 13:44:13 -0600 )edit
sturkmen gravatar imagesturkmen ( 2016-12-26 14:14:11 -0600 )edit

Yes, that detects a border around a photograph, but it seems to find a rectangle everywhere. Any way i can tune the parameters maybe?

atv gravatar imageatv ( 2016-12-26 17:15:50 -0600 )edit