hallo
bin jetzt echt am verzweifeln
hab den raspi b+
habe alles nach anleitungen eingerichtet
usb stick , WLan Stick, 3,5 Zoll TFT
geupdatet neue firmware
Habe den RasPi über Remutedesktopverbindung verbunden
Dort in der Idle das Programm aus einem Buch abgeschrieben
Das Programm startet, alle Print anweisungen werden ausgeführt dedoch nicht ein Bild gespeichert
Die LED der PiCam leuchtet auch nicht, der Ordner ist leer .
Über der SSH verbindung mit Putty und der eingabe raspistill -v -o test.jpg leuchtet wenigstens die LED
Wo das Bild dann gespeichert ist hab ich noch nicht gefunden
jedenfalls hier das Programm
Ich weiß nicht wo ich noch suchen soll
import os
import time
BASEDIR ='/home/pi/Desktop/photos/'
EX_LIST = ['off', 'auto', 'night']
AWB_LIST = ['off', 'auto', 'sun', 'cloud']
def deleteImages():
try:
os.remove('%simg_*.jpg' % BASEDIR)
except: pass
def takePhoto(ex, awb):
path = '%simg_%s_%s.jpg' % (BASEDIR, ex, awb)
command = 'raspistill -t300,-ex %s -awb %s -o %s -n'\
%(ex, awb, path)
os.system(command)
time.sleep(1)
print(" Foto ex=%s awg=%s " % (ex, awb))
print("Lösche alte fotos")
deleteImages()
print("starte fotos")
for ex in EX_LIST:
for awb in AWB_LIST:
takePhoto(ex, awb)
print("fertich")