Guest User

Untitled

a guest
Jan 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #PROCEDURE TO TAKE PHOTO WITH DEFAULT CAMERA ON RASPBERRY PI
  2. import subprocess
  3. import time
  4. def pyraspistill():
  5. #COMMENT THE QUESTION OUT FOR AUTOMATION BUT THEN CHECK OUT sys
  6. name = str(input("What would you like to call the image:nn"))
  7. subprocess.call(['/usr/bin/raspistill','-o',name + str(time.time()) + ".jpg"])
  8. pyraspistill()
  9.  
  10. picture
  11. Traceback (most recent call last):
  12. File "camera.py", line 8, in <module>
  13. pyraspistill()
  14. File "camera.py", line 6, in pyraspistill
  15. name = str(input("What would you like to call the image:nn"))
  16. File "<string>", line 1, in <module>
  17. NameError: name 'picture' is not defined
Add Comment
Please, Sign In to add comment