title: How to get confidence of each line using pytesseract
body: <p>I have successfully setup <em>Tesseract</em> and can translate the images to text...</p>
  
  <pre><code>text = pytesseract.image_to_string(Image.open(image))
  </code></pre>
  
  <p>However, I need to get the confidence value for every line. I cannot find a way to do this using <em>pytesseract</em>. Anyone know how to do this?</p>
  
  <p>I know this is possible using <em>PyTessBaseAPI</em>, but I cannot use that, I've spent hours attempting to set it up with no luck, so I need a way to do this using <em>pytesseract</em>.</p>