First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Feb 10 '16

strann gravatar image

Try this:

  import numpy as np
  import cv2

  skinCrCbHist = np.zeros((256, 256, 1), dtype = "uint8")
click to hide/show revision 2
No.2 Revision

In Python images are represented as NumPy arrays. Try this:

  import numpy as np
  import cv2

  skinCrCbHist = np.zeros((256, 256, 1), dtype = "uint8")