def capture_timelapse(self, count, interval):
        filename = self.get_new_photo_filename('_{0:03d}_{1:03d}')
        for i in range(count):
            open(self.camid + '/' + filename.format(i, count), 'wb').write(
                self.fake_shot)
            time.sleep(interval)
        return filename.format(0, count)
Capture a time lapse.
dataset/ETHPy150Open miguelgrinberg/oreilly-flask-apis-video/camera/camera.py/FakeCamera.capture_timelapse