import cv while True: cv.CreateHist([40], cv.CV_HIST_ARRAY, [[0,255]], 1)