def gen_process(self):
        camera = pygame.camera.Camera(pygame.camera.list_cameras()[0])
        camera.start()
        while True:
            yield 1
            frame = camera.get_image()
            self.output(frame)
            time.sleep(1.0 / 50)
dataset/ETHPy150Open sparkslabs/guild/examples/blog/recording_webcam.py/Camera.gen_process/original