title: pytesseract output is so weird without any error
body: <p><a href="https://i.stack.imgur.com/24CoF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/24CoF.png" alt="enter image description here"></a>    </p>
  
  <pre><code>import pytesseract
  
  from PIL import Image, ImageEnhance, ImageFilter
  
  pytesseract.pytesseract.tesseract_cmd="C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe"
  im = Image.open("C:\\1.png") # the second one 
  im = im.filter(ImageFilter.MedianFilter())
  enhancer = ImageEnhance.Contrast(im)
  im = enhancer.enhance(2)
  im = im.convert('1')
  im.save('temp2.png')
  #im.show()
  text = pytesseract.image_to_string(Image.open('temp2.png'),config='-psm 8')
  print(text)
  </code></pre>
  
  <p>Hi to all</p>
  
  <p>I'm trying to extract text from image(captcha) so it's the code above i'am coding so far.
  I don't think there is any problem so far since there is any error when i run it. but output is so poor.</p>
  
  <p>when i run this it shows nothing but i change -psm 8 to -psm 5, it shows ';«'.</p>
  
  <p>Would you give me some advice to fix it?</p>