def oneTick(): af = getSmoothedArray() bf = getSmoothedArray() if checkMotion(af, bf): for i in range(10): fname = str(time.time())+".jpg" getImage().save(fname) print "saved " + fname
def getSmoothedArray(): a = ImageToArray(getImage()) af = filterfft.filter(a, filterfft.gaussian(2)) return af