- Code: Select all
cmd1 = "raspistill -t 2000 -o test.jpg"
cmd2 = "fbi test.jpg"
subprocess.Popen(cmd1.split()) # start image capture
time.sleep(2.7) # wait this long for the image to be captured
proc1 = subprocess.Popen(cmd2.split()) # display the result on framebuffer
time.sleep(2) # ... for this long...
proc1.kill() # and then quit
EDIT: maybe the right approach is to use 'Pygame' which can apparently use the framebuffer with or without X running. Checking out http://learn.adafruit.com/pi-video-outp ... ramebuffer ...ah yes, that works.