def capture_timelapse(self, count, interval):
        filename = self.get_new_photo_filename('_{0:03d}_{1:03d}')
        with picamera.PiCamera() as camera:
            camera.resolution = (1024, 768)
            camera.hflip = True
            camera.vflip = True
            camera.start_preview()
            time.sleep(2)  # wait for camera to warm up
            for i in range(count):
                camera.capture(self.camid + '/' + filename.format(i, count))
                time.sleep(interval)
        return filename.format(0, count)
Sets the number of instances to run for a version of a module.
dataset/ETHPy150Open miguelgrinberg/oreilly-flask-apis-video/camera/camera.py/PiCamera.capture_timelapse--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/request_info.py/_LocalFakeDispatcher.set_num_instances