title: my pytesseract is not working(i need help)
body: <p>my plan is to make a bot that will answer a bot on messenger</p>
  <p>the messenger bot messages are randomized number or a math questionaire bot</p>
  <p>so i want to make a bot that will answer the messenger bots qustions</p>
  <p>i made a code like this:</p>
  <pre><code>import pyautogui
  import pytesseract
  from PIL import Image
  </code></pre>
  <p>i want to take screenshot every 10 seconds</p>
  <pre><code>pyautogui.sleep(2)
  </code></pre>
  <p>sleep for two seconds to give me time to switch from pycharm to messenger</p>
  <pre><code>pyautogui.screenshot('x_value.png', confidence=0.8)
  img = Image.open('x_value.png')
  img = pytesseract.image_to_string(img)
  print(img)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/AFag2.png" rel="nofollow noreferrer">here is the taken screenshot by my bot</a></p>
  <p>here is the result:</p>
  <pre><code>Tee oxHj
  </code></pre>
  <p>i tried resizing the image using tuple but I still get the wrong result....i hope ypu guys help me so i can improve my skills....thank you</p>