title: How to read scanned table in Python using pytesseract?
body: <p>I'm trying to read data tables from an image file with pytesseract. My image is that one:
  <a href="https://i.stack.imgur.com/C5OYl.jpg" rel="nofollow noreferrer">p27-001</a></p>
  
  <p>Initially I tried to use the image_to_data method: </p>
  
  <pre><code>from PIL import Image
  import pytesseract
  
  tab_im = Image.open('p27-001.jpg')
  tab = pytesseract.image_to_data(tab_im)
  print(tab)
  </code></pre>
  
  <p>but I always get the following error:</p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tess_3se80zvv_out.tsv
  </code></pre>
  
  <p>So I decided to use the image_to_boxes method. To be sure I do not quite understand what this method does, but I got the following ouput:</p>
  
  <pre><code>X 119 1339 132 1351 0
  
  X 134 1340 146 1351 0
  
  ~ 120 1328 305 1332 0
  
  ~ 306 1328 384 1332 0
  
  ~ 385 1328 508 1332 0
  
  D 296 1339 308 1351 0
  
  I 310 1339 316 1351 0
  
  R 318 1339 329 1351 0
  
  E 331 1338 342 1351 0
  
  C 344 1338 353 1352 0
  
  ’ 355 1346 357 1351 0
  
  I 358 1339 363 1351 0
  
  ‘ 363 1347 366 1351 0
  
  ... continue
  </code></pre>
  
  <p>Anyone knows what it means? Is there another way to read this table in python?</p>
  
  <p>My intention is transform these data in a csv file.</p>