I'm using a pair of shutter glasses and hacked it so the RPI can control the glasses direct which is pretty simple.
I would like to switch between two images then toggle an output pin. So image 1 in frame 1 then image 2 in frame 2 then pin high or low then do it all again.
The thing I'm having difficulty with is how to show the images quick enough. Ideally I would like 120 frames per second but I'd be happy with 60 for now.
Some simple python code just to show what I'm thinking of is below.
Code: Select all
from PIL import Image im1 = Image.open("An Image for the left eye") im2 = Image.open("An image for the right eye") while AllGood: im1.show() im2.show() Toggel_Output print("done") quit