Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

detecting a photograph

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/master/samples/cpp/squares.cpp

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