title: 'Unsupported image object' error, with Tesseract (Mac)
body: <p>When I run</p>
  <pre><code>import pytesseract
  
  import cv2
  
  import matplotlib.pyplot as plt
  
  pytesseract.pytesseract.tesseract_cmd = r'/opt/local/bin/tesseract'
  
  img = cv2.imread('Demo.png') 
  
  plt.imshow(img)
  
  img2char = pytesseract.image_to_string(img)
  </code></pre>
  <p>everything works fine, including plt.imshow as I can see the Demo.png file, but then I get the following 'Unsupported image object error'</p>
  <p><a href="https://i.stack.imgur.com/R6Ou8.png" rel="nofollow noreferrer">screenshot of error message</a></p>
  <p>Does anyone know why that might be?</p>