Skip to content

Instantly share code, notes, and snippets.

@thepycoder
Created May 18, 2021 10:31
Show Gist options
  • Save thepycoder/f86fc16623e5d76e0e30ec05271d3bba to your computer and use it in GitHub Desktop.
Save thepycoder/f86fc16623e5d76e0e30ec05271d3bba to your computer and use it in GitHub Desktop.
def pipe_to_virtual_webcam(self):
with pyvirtualcam.Camera(width=854, height=480, fps=30) as cam:
print(f'Using virtual camera: {cam.device}')
while self.is_running:
frame = self.webcam_queue.get()
cam.send(frame)
cam.sleep_until_next_frame()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment