-
-
Save FirefoxMetzger/03d8cd05865bbc1c09e8e7f9fb6013f9 to your computer and use it in GitHub Desktop.
This gist accompanies the post: https://sebastianwallkoetter.wordpress.com/2021/03/04/webcam-in-python/
This file contains 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
import imageio as iio | |
import matplotlib.pyplot as plt | |
camera = iio.get_reader("<video0>") | |
screenshot = camera.get_data(0) | |
camera.close() | |
plt.imshow(screenshot) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment