1 #!/usr/bin/env python 2 3 import cv2.cv as cv 4 import math 5 import time 6 7 while True: 8 h = cv.CreateHist([40], cv.CV_HIST_ARRAY, [[0,255]], 1) 9