title: TypeError: img data type = 17 is not supported
body: <p>I create red image and try to save it via cv2.imwrite</p>
  
  <pre><code>    import numpy as np
      import cv2
  
      RED = [0, 0, 255]
      IMAGE_SIZE = 100
  
      image = np.empty([IMAGE_SIZE, IMAGE_SIZE], dtype=type(RED))
      for i in range(IMAGE_SIZE):
          for j in range(IMAGE_SIZE):
             image[i, j] = RED
  
      cv2.imwrite("red.png", image)
  </code></pre>
  
  <p>But I get error </p>
  
  <pre><code>     File "C:/Users/Andrew/Desktop/Programms/image-processing-cource/Tracks.py", line 11, in save_image
  cv2.imwrite(name, image)
      TypeError: img data type = 17 is not supported
  </code></pre>
  
  <p>How to fix it? </p>
  
  <p>Thanks!</p>