title: m is not a numpy array, neither a scalar
body: <pre><code>import cv2
  import numpy as np
  from PIL import Image
  
  img = Image.open("test.jpg")
  
  imgfilename = img.filename
  
  imgb,imgg,imgr = cv2.split(img)
  count = 0
  </code></pre>
  
  <p>I've been getting the following error when I try to run my code - this is the error I'm getting:</p>
  
  <pre><code> File "WB.py", line 9, in &lt;module&gt;
      imgb,imgg,imgr = cv2.split(img)
  TypeError: m is not a numpy array, neither a scalar
  </code></pre>