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