Bounds extraction [closed]
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
take a look at https://stackoverflow.com/a/45244800/...
Thanks! Is it correct that you suggest just fill everything around photos, remove photos and then extract boundaries from backgorund?