Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #PROCEDURE TO TAKE PHOTO WITH DEFAULT CAMERA ON RASPBERRY PI
- import subprocess
- import time
- def pyraspistill():
- #COMMENT THE QUESTION OUT FOR AUTOMATION BUT THEN CHECK OUT sys
- name = str(input("What would you like to call the image:nn"))
- subprocess.call(['/usr/bin/raspistill','-o',name + str(time.time()) + ".jpg"])
- pyraspistill()
- picture
- Traceback (most recent call last):
- File "camera.py", line 8, in <module>
- pyraspistill()
- File "camera.py", line 6, in pyraspistill
- name = str(input("What would you like to call the image:nn"))
- File "<string>", line 1, in <module>
- NameError: name 'picture' is not defined
Add Comment
Please, Sign In to add comment