1. A method comprising: capturing an image of a scene by an image capturing unit of a device that includes an accelerometer; and determining an orientation of the device based, at least in part, on a determined location of a vanishing point in the captured image of the scene and at least one measurement obtained from the accelerometer.