<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Segmentation of Handwritten and Printed Arabic Documents</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ghazouani Fethi</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tunis</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tunisia Email: gfethi@yahoo.fr</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Maddouri Mondher FST</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tunis</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tunisia Email: mondher.maddouri@fst.rnu.tn</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Maddouri Snoussi Samia</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tunis</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tunisia Email: samia_maddouri@yahoo.f</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute for Communications Technology</institution>
          ,
          <addr-line>Braunschweig</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <fpage>23</fpage>
      <lpage>24</lpage>
      <abstract>
        <p>-on this paper, we proposed a new text line segmentation of handwritten and typewriting Arabic document images that uses the Outer Isothetic Cover (OIC) algorithm of a digital object. In the first step, we use this method to segment the composed document into text blocs. In the second step, for each text bloc we will extract the text lines. Finally, line text will be segmented into words or into pieces of Arabic word (PAWs). The first results obtained in the current stage of the proposed method over a dozen texts are encouraging. We have also tested this method on documents written in Latin scripts.</p>
      </abstract>
      <kwd-group>
        <kwd />
        <kwd>handwritten and modern document</kwd>
        <kwd>text line segmentation</kwd>
        <kwd>document image</kwd>
        <kwd>pieces of Arabic words</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>INTRODUCTION
The first step in the automatic document recognition is
the segmentation of the text image into text line. The
objectives of this step is to assign each component of the
text to the appropriate line; to make it possible to prepare
the data for further processing such as normalization,
word segmentation and feature extraction.</p>
      <p>The segmentation of handwritten text is complicated by
the variation of the distance interline and the undulation
of baselines generate different orientations of the text.
The characters in two lines of text may touch or overlap.
This considerably complicates the segmentation line. In
Arabic script, these situations are frequently due to the
presence of ascending and descending characters. The
massive presence of diacritical symbols often generates
false lines.</p>
      <p>Most work on the segmentation of a page in line is
based on a decomposition of the image into connected
components. After the separation of lines, we focus on
the separation of words for each line, then segmenting
each word in pieces (parts) of words.</p>
      <p>In the framework of this article, we focus essentially
on image segmentation of Arabic documents into blocks
of text and lines. Then we apply our method to the
segmentation of Latin documents.</p>
      <p>In the following, we present some technique applied to
the segmentation of documents into text lines. Then we
present our approach to the segmentation of Arabic
handwritings and printed documents into blocks, text
lines and words or parts of words.</p>
      <p>The results of our segmentation method are shown
subsequently, by tests on historical and modern
documents.</p>
      <p>Finally we end our article with a conclusion and
perspectives that show a possible extension of the
proposed approach.</p>
      <p>II.</p>
      <p>
        Several works have been proposed for the segmentation
of documents. For example, Bennasri and al. have
proposed a method to extract lines of text Arabic script,
using the projection [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]: First the document is divided into
multiple columns to correct the problem of sinuosity.
Then, the starting points of all lines are detected using the
minimum partial projection of the profile. Then, a contour
tracking part of each line is carried out: first in the
direction of writing, then in the opposite direction.
      </p>
      <p>
        Nicolaou et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] proposed a technique to segment the
lines of Latin manuscripts using tracers (axes) minima.
These minima are estimated using the vertical projection
histogram. This method was tested on a sub-database of
ICDAR 2007 consists of 20 documents containing 476
lines and 80 documents containing 1771 lines. This
technique achieved an extraction rate that is equal 98.6%.
Another approach to the extraction lines Arabic
manuscripts of ancient texts was proposed by Zahour and
al. in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Initially, the document is divided into columns
of equal size. Then, each column of the document is
segmented into three types of text blocks: small blocks
which generally represent the diacritical symbols,
medium blocks that correspond to body text and large
blocks reflect the overlap of words between adjacent
lines.
      </p>
      <p>
        There are also methods of segmentation using the
Hough transformed. This technique is widely used for
extraction of text lines [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. For example in [6], the Hough
transform is used with a method of grouping connected
components. For this, the connected components are
extracted and then the contours and edges of these
components are detected.
      </p>
      <p>Louloudis et al. proposed in [7], a technique for the
extraction of lines and words of ancient Greek
manuscripts. The Hough transform is applied to
connected components using the centroids of rectangles
encompassing their points as voters. These rectangles are
estimated by calculating the average size of characters in
the document. The proposed system was tested on the
basis of documents ICDAR 2007 which is divided into 80
documents containing 1773 lines and 40 ancient
manuscripts containing 1095 lines. The extraction rate of
lines is 97%.</p>
      <p>
        Another method used for segmentation is the snake or
the contour. With this technique Bukhari et al. proposed a
method for extracting parameterized snake lines of
handwritten documents [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. The proposed system was
tested on the basis of documents ICDAR 2007 which is
divided into 80 documents containing 1770 lines. The
extraction rate of line is 96.3%.
      </p>
      <p>
        Du et al. used the Mumford-Shah model [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] for the
extraction of the lines of Latin manuscripts [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. The
proposed system was tested on 100 Chinese documents,
96documents and 100 Indian Korean documents. The
extraction rate of lines is 98% for Chinese documents,
98% for Indian documents and 96% for Korean
documents.
      </p>
      <p>
        A new method proposed by Vasant Manohar et al. in
[
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], this method involves grouping text lines segmented
by a set of methods for segmentation of handwritten texts
line in an undirected graph. The graph nodes correspond
to connected components and the edge connecting pairs
of connected components.
      </p>
      <p>III.</p>
      <p>PROPOSED WORK</p>
      <p>
        The proposed method realizes the segmentation of
handwritten and/or printed text lines, into words and into
pieces of words. It is based on the algorithm for the
construction of the isothetic covers of a digital object [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>We thought to find a new segmentation method of
document images. We started by construct the Outer
Isethetic Cover (OIC) of documents. So, we made a
change to this algorithm in order to segment a document
into blocks of text, if the document is composed of text
blocks, each block is then segmented into a set of lines
then each line will be segmented into words and/or pieces
of words.</p>
      <p>A. Construction of the Outer Isothetic Cover (OIC)</p>
      <p>In order to segment to segment document, we construct
the outer isothetic covers of the corresponding document
image after its binarization. To do this, we impose an
isothetic set of grid size g on the binarized image.</p>
      <p>Let Q1, Q2, Q3, and Q4 be the four quadrants incident at
a grid point p(i, j), as shown in Fig. 1. The grid point p is
decided to be a vertex depending on how many of the
quadrants have object containment. Interestingly, there
arise 24 = 16 different arrangements considering object
containments of these four quadrants, which can be
reduced to five cases. Let Cq (q = 0, 1, · · · , 4) denote the
case of all the arrangements for which q out of 4 squares
are occupied by the object. If p belongs to Case C1, then it
is a 900 vertex of the isothetic polygon; and if it is a 2700
vertex, it belongs to C3. For Case C2, if the diagonal
quadrants are occupied, then p is considered as a 2700
vertex; otherwise, p is a nonvertex grid point lying on
some edge of the polygon.</p>
      <p>
        For case C0, p is just an ordinary grid point lying
outside the polygon, whereas, for case C4, p is a grid point
lying inside the polygon [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        So, in order to draw to draw polygon correspond of text
blocks, of text lines and of multiple words. We have
modified the algorithm TIPS [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. With a proper grid size
g, each polygon is constructed.
      </p>
      <p>First, the document is binarized. Then the grid points
are traversed in the raw-major order until a 90° vertex
(‘start vertex’) is found. Subsequent grid points are
classified, marked as ‘visited’, and the direction is
determined from each such grid point until the start vertex
is reached. This completes the outer isothetic cover
corresponding to an object (text blocks, text lines or
word). The procedure is iterated over the remaining set of
unvisited grid points until the next 90° vertex is found,
which subsequently derives the polygon corresponding to
another object. Finally, all the grid points are visited and
the algorithm reports the vertex sequences of all the
isothetic polygons corresponding to the text blocks, to text
lines or words in the input document.</p>
      <p>Setting the grid size g: In order that each isothetic
polygon corresponds to each object and hence results in a
sequence of vertices, specifying an appropriate grid size is
necessary. So, for each case of segmentation, the grid size
g is chosen after a set of tests on a set of document
images.</p>
    </sec>
    <sec id="sec-2">
      <title>B. Segmentation of the document in text blocks</title>
      <p>A document can be composed by one or more
paragraphs (or blocks of text). These text blocks can be
arranged in parallel horizontally or vertically (Figure 2).</p>
      <p>In this case, we thought to divide the document into
parts of texts designed to simplify further processing i.e.
segmentation of the text lines.</p>
      <p>The extraction of these text blocks is made by varying
the size of the grid g, the more the size g is large, the more
between them. Contrary to the Latin script, a line can be
segmented into word or into characters.</p>
      <p>IV.</p>
      <p>EXPREMENTS AND RESULTS
In order to evaluate the results of our approach, we have
the results are better. The figure 2 shows the results for
document segmentation into blocks of text by changing
the grid size g for handwritten Arabic texts.</p>
    </sec>
    <sec id="sec-3">
      <title>C. Segmentation of (block) text in lines</title>
      <p>A text or text block can be segmented into text lines. By
changing the grid size g, we have applied our approach to
segment a text into texts line. At the difference to segment
a document to text blocks, the same algorithm is applied
with the operator of mathematical morphology (the
closure) in order to obtain the entire polygon line. The
results are shown in Fig. 4.</p>
      <p>D. Segmentation of line into words and/or into pieces of
word :</p>
      <p>Then we have used the algorithm to extract words
from line. A line can be segmented into words and/or
parts of word Arabic manuscript (printed respectively).
This is because the Arabic writing is recursive. The word
can be composed by parts of words (Pieces of Arabic
Words (PAWs)) and sometimes there is enough space
tested this algorithm on a variety of documents of two
types of scripts: handwriting and printed. Handwritten
Arabic documents composed by text blocks were
segmented into blocks; the result is shown in Figure 1. As
for the handwritten script, we have applied our method on
documents printed Arabic and Latin;</p>
      <p>The first database is a collection of 200 forms written
by 200 different native writers. The writers were asked to
write a paragraph of an Arabic text including up to 10
sentences. There were no restrictions for the writing. This
database is an extension of the standard benchmarking
IfN/ENIT database. The second collection of Arabic
handwritten documents includes scans from historical
documents collected during a research project in the IfN.
The printed Latin text is from the Google Books (version
7, August 2007)</p>
      <p>Then we tried to do the segmentation text blocks into
text lines. The result of the segmentation of handwritten
Arabic text is shown below. In the same way, we are
showing in the following figures the result of such
segmentation for printed Arabic and Latin script:</p>
      <p>The last step of our method is to extract the connected
components from the line. The result of handwritten
Arabic text line segmentation into words or parts of words
has been shown in Fig. 3. In the same step we are applied
our method on a printed text line Arabic and Latin.</p>
      <p>CONCLUSION</p>
      <p>
        In this paper we presented some techniques of
segmentation methods. Then we proposed a new
segmentation method for document images handwritten
and printed script. The idea of this method is inspired
from the algorithm of construction of isothetic covers of a
digital object [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. So we have shown that the results of
such segmentation depend of the variation of the grid size
g. Then, to segment composed documents into text blocks,
we used a large value of g. And to extract the line text
from blocks and the words or pieces of words from text
line, we have reduced the grid size g.
      </p>
      <p>The results of our method are preferment for proper
images document, especially for the type of printed texts
document. This because in this type of script, the
characters of two lines can neither touches nor overlaps.
Instead of the handwritten, these situations exist
frequently, which will sometimes give incorrect results.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Biswas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Bhowmick</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.B.</given-names>
            <surname>Bhattacharya</surname>
          </string-name>
          ,
          <article-title>Construction of isothetic covers of a digital object: A combinatorial approach</article-title>
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Bennasri</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zahour</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          et Taconet,
          <string-name>
            <surname>B.</surname>
          </string-name>
          (
          <year>1999</year>
          ).
          <article-title>Extraction des lignes d'un texte manuscrit arabe</article-title>
          .
          <source>Vision Interface</source>
          '
          <fpage>99</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Nicolaou</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          et Gatos,
          <string-name>
            <surname>B.</surname>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>Handwritten text line segmentation by shredding text into its lines</article-title>
          .
          <source>International Conference on Document Analysis and Recognition.</source>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Zahour</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Likforman-Sulem</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boussellaa</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          et Taconet,
          <string-name>
            <surname>B.</surname>
          </string-name>
          (
          <year>2007</year>
          ).
          <article-title>Text line segmentation of historical arabic documents</article-title>
          .
          <source>In 9th Int.Conf. on Document Analysis and Recognition.</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Duda</surname>
            ,
            <given-names>R. O.</given-names>
          </string-name>
          et Hart,
          <string-name>
            <surname>P. E.</surname>
          </string-name>
          (
          <year>1972</year>
          ).
          <article-title>Use of the hough transformation to detect lines and curves in pictures</article-title>
          .
          <source>Commun</source>
          . ACM.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <surname>Malleron</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eglin</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Emptoz</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dord-Crouslé</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          et Régnier,
          <string-name>
            <surname>P.</surname>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>Text lines and snippets extraction for 19th century handwriting documents layout analysis</article-title>
          .
          <source>International Conference on Document Analysis and Recognition.</source>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <surname>Malleron</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eglin</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Emptoz</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dord-Crouslé</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          et Régnier,
          <string-name>
            <surname>P.</surname>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>Text lines and snippets extraction for 19th century handwriting documents layout analysis</article-title>
          .
          <source>International Conference on Document Analysis and Recognition.</source>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Bukhari</surname>
            ,
            <given-names>S. S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shafait</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          et Breuel,
          <string-name>
            <surname>T. M.</surname>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>Scriptindependent handwritten textlines segmentation using active contours</article-title>
          .
          <source>In ICDAR09.</source>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Du</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pan</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          et Bui, T. D. (
          <year>2009</year>
          ).
          <article-title>Text line segmentation in handwritten documents using mumford-shah model</article-title>
          .
          <source>Pattern Recognition.</source>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Mumford</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          et Shah,
          <string-name>
            <surname>J.</surname>
          </string-name>
          (
          <year>1989</year>
          ).
          <article-title>Optimal approximation by piecewise smooth functional and associated variational problems</article-title>
          .
          <source>Commun. Pure Appl</source>
          . Math.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Vasant</surname>
            <given-names>Manohar</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Shiv N.</given-names>
            <surname>Vitaladevuni</surname>
          </string-name>
          , Huaigu Cao, Rohit Prasad, and
          <article-title>Prem NatarajanGraph Clustering-based Ensemble Method for Handwritten Text Line Segmentation</article-title>
          .
          <source>ICDAR</source>
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>