Untitled
unknown
plain_text
8 months ago
478 B
3
Indexable
import os
import uuid
import subprocess
import time
path = str(os.getcwd()) + "/Desktop/"
def takePic(imageName):
command = "raspistill -o Images/"+ imageName +".jpg -w 640 -h 480 -vf -t 30" ##Image/imageName olacak!
try:
subprocess.run(command, shell=True, check=True)
print("Foto?raf ba?ar?yla çekildi.")
except subprocess.CalledProcessError as e:
print("Hata:", e)
while True:
takePic(str(uuid.uuid4()))
time.sleep(2)
Editor is loading...
Leave a Comment