I looked through the api, stackoverflow and google, and didn't find anything. Is there a way in the API to access the camera that faces the eye? I would like to be able to tell if the user's eye is open or closed...is this possible with this version of the GDK?
Is that what the built in wink-to-take-a-picture app is doing?
AFAIK, you cannot currently determine open/closed, however there are some eye gestures that are supported, assuming that you have the latest version of Glass hardware.
From here, you can see the supported gestures:
Also, on that page, they explain how you have to listen to the
com.google.glass.action.EYE_GESTURE
intent to receive the events:Check out winky's MainActivity.java for an example.
Here's another eye gesture example which interacts with eye gestures.