title: How to extract text or numbers from images using python
body: <p>I want to extract text (mainly numbers) from images like this</p>
  
  <p><a href="https://i.stack.imgur.com/mCZSX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mCZSX.png" alt="enter image description here"></a></p>
  
  <p>I tried this code </p>
  
  <pre><code>import pytesseract
  from PIL import Image
  
  pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
  img = Image.open('1.jpg')
  text = pytesseract.image_to_string(img, lang='eng')
  print(text)
  </code></pre>
  
  <p>but all i get is this 
  (hE PPAR)</p>