tesseract character level details

173 views
Skip to first unread message

mit

unread,
Nov 23, 2020, 8:01:31 AM11/23/20
to tesseract-ocr
I am trying to get character level details of a file using
hocr_char_boxes=1 option.
But the output it generates seems to be overlapping between the characters.

  <div class='ocr_page' id='page_1' title='image "file-0.png"; bbox 0 0 1653 2336; ppageno 0'>
   <div class='ocr_carea' id='block_1_1' title="bbox 111 203 930 219">
    <p class='ocr_par' id='par_1_1' lang='eng' title="bbox 111 203 930 219">
     <span class='ocr_line' id='line_1_1' title="bbox 111 203 930 219; baseline -0.001 -3; x_size 20; x_descenders 5; x_ascenders 5">
      <span class='ocrx_word' id='word_1_1' title='bbox 111 204 135 216; x_wconf 96'>
             <span class='ocrx_cinfo' title='x_bboxes 111 204 117 216; x_conf 99.56546'>S</span>
             <span class='ocrx_cinfo' title='x_bboxes 111 204 119 216; x_conf 99.574463'>e</span>
             <span class='ocrx_cinfo' title='x_bboxes 120 207 135 216; x_conf 99.543205'>e</span></span>

How can two characters have the same starting point(For S: 'x_bboxes 111 204 117 216  and for e: x_bboxes 111 204 119 216 )

Tesseract details:

tesseract v4.1.0-elag2019
 leptonica-1.78.0
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0
 Found AVX2
 Found AVX
 Found SSE

Attached the image file.
file-0.png

mit

unread,
Nov 24, 2020, 12:27:07 AM11/24/20
to tesseract-ocr
Hi,

Anyone has update on this?

Thanks
Reply all
Reply to author
Forward
0 new messages