Given this image (from Sculley et al "Hidden Technical Debt in Machine Learning Systems"), how can the relative areas of the boxes be computed?
In particular, the text interferes with most morphological and other operators:
ImageLines didn't work even with "Segments"->True
options.
ImageCorners
identifies most - though not all - corners of rectangles (desired) but also tags most areas of text even with large minimum spacing parameter, eg 20.
corners = debt[0] // Binarize // ImageCorners[#, 2, 0, 20] &
The strategy, given only the box corners, would be to computationally fit them to rectangles and then solve for the areas.
Is there a more direct, feasible approach that does not require manual removal of text?