Created
May 18, 2021 10:31
-
-
Save thepycoder/f86fc16623e5d76e0e30ec05271d3bba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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