A method and device are provided for segmenting an image of pixels into a
number of fields. First the method finds field separators using the
background of the image, in particular white areas between, for instance,
text fields. The segmenting includes constructing: a tessellation grid of
lines and nodes formed by extending the field separators along at least
one separation direction (in practice, horizontal and vertical) to an
outer border of the image, and a set of basic rectangles enclosed by the
lines of the tesselation grid of field separators and extended field
separators. Finally the fields are constructed by consolidating basic
rectangles that are adjacent without being separated by a field
separator.