Image::Magick allows to crop rows and columns, trimming the result can show if they are "empty".
$x = $p->Crop(geometry=>'439x4+166+167'); warn "$x" if "$x"; $x = $p->Trim(); warn "$x" if "$x"; print join ",",$p->Get(qw/columns rows page/);
output
Exception 310: geometry does not contain image `216.PNG' @ warning/att +ribute.c/GetImageBoundingBox/239 at /tmp/tst_im.pl line 36. 1,1,1238x1688-1-1
so a clever combination of crops and trims can quite effectively dissect a table into it's cells.
Of course one needs reasonable assumptions about the geometry.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Segmenting an image into table cells?
by LanX
in thread Segmenting an image into table cells?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |