Patent ID: 7639935

Claim:
A method comprising: establishing, via an ultrasonic sensor provided in a device, a first distance between the device and a user of the device, where the user is different than a subject to be captured by the device; receiving, via the device, a first image of the subject; receiving, via an accelerometer sensor provided in the device, an acceleration associated with the device; determining, via the device, a second distance between the device and the user based on the acceleration, where the second distance is different than the first distance; determining, via the device, a difference between the first distance and the second distance; obtaining, via the device, a zoom value based on the determined difference; zooming, via the device, on the subject based on the zoom value; setting a focus, a shutter speed and an aperture size, associated with the device, based on the zoom value; and capturing, via the device, a second image of the subject, based on zooming on the subject and setting the focus, the shutter speed, and the aperture size.