title: How to tabulate text data that is extracted from image?
body: <p>I've used OpenCV and <code>pytesseract</code> to extract text from images, but I'm looking for a way to tabulate the text data, that is extracted into a TXT or CSV file. Currently, the output from Python is mixed up in a paragraph form.</p>
  <p>The input image:</p>
  <p>The code I've used so far:</p>
  <p><a href="https://i.stack.imgur.com/vfliE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vfliE.png" alt="Current code" /></a></p>
  <p>This is the output I'm getting now:</p>
  <p><a href="https://i.stack.imgur.com/8MzNt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8MzNt.png" alt="Current output" /></a></p>
  <p>The output I'm expecting would be:</p>
  <p><a href="https://i.stack.imgur.com/b7PiT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b7PiT.png" alt="Expected output" /></a></p>