while True: img.initialize() img.waitNext(1000) time.sleep(0.1)