Originally posted by wings I may have to reconsider using it. How does it determine the horizon? How does it handle a slope or grade?
It uses the on-board 3-D accelerometer sensor (used for SR) to determine the direction of gravity. Unless that sensor has been knocked out of alignment (which can happen), the direction of greatest measured acceleration should always be straight down. If it's off to the right or left, it's because the camera is tilted (or the camera is in an accelerating vehicle).
Note: it does not correct for optical illusions in the image itself which sometimes make an image from a perfectly level camera look tilted.