Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try this:

  import numpy as np
  import cv2

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

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

  import numpy as np
  import cv2

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