Bounds extraction [closed]

asked 2018-01-23 12:42:27 -0500

Truefiber gravatar image

updated 2018-01-23 12:55:29 -0500

I'm currently working on an application that should mark portraits strictly one mark per one portrait. So currently I'm stuck with proper bounding of extracted contours. Here are Canny images. I tried to get bounding rectangles from contours, but then I have too many rectangles and I have to merge/filter them some how to achieve one to one correlation. Also, I tried to approx contours to polygons and filter only polygons with 4 points, but in this case photo frames which are visible on Canny are not approxed to 4 points polygons (i've tried different ranges of epsilon from 1 to 10 percents). I would appreciate for any ideas how come up with those boundaries Ex1 Ex2

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:09:12.582067


sturkmen gravatar imagesturkmen ( 2018-01-23 13:39:56 -0500 )edit

Thanks! Is it correct that you suggest just fill everything around photos, remove photos and then extract boundaries from backgorund?

Truefiber gravatar imageTruefiber ( 2018-01-24 01:53:25 -0500 )edit