I'm trying to make a rng from this website: http://jamesdotcom.com/?p=417. However when I run the following code:
captureImage = subprocess.Popen(
[
"fswebcam", "-r", "356x292", "-d", "/dev/video0",
"static.jpg", "--skip", "10"
],
stdout=devNull, stderr=devNull)
captureImage.communicate()
I get the following error message:
NameError: name 'subprocess' is not defined
What should I do? Thanks