Skip to content

Instantly share code, notes, and snippets.

@FirefoxMetzger
Last active March 8, 2022 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FirefoxMetzger/03d8cd05865bbc1c09e8e7f9fb6013f9 to your computer and use it in GitHub Desktop.
Save FirefoxMetzger/03d8cd05865bbc1c09e8e7f9fb6013f9 to your computer and use it in GitHub Desktop.
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