主权项 |
1. An electronic device comprising:
a main body; a support coupled with the main body, the support rotatable about an axis of rotation between a plurality of positions including a first position and a second position; a first camera for generating first image data; a second camera for generating second image data, the second camera positioned in spaced relation to the first camera, the second camera mounted on the support away from the axis of rotation; an electric motor coupling the support to the main body at the axis of rotation that rotates the support about the axis of rotation; an orientation sensor for generating orientation data based on an orientation of the electronic device; and a controller coupled with the first camera and the second camera which:
causes the electric motor to rotate the support based on the orientation data to horizontally align the first camera and the second camera by:
determining whether the orientation of the electronic device is closer to a portrait orientation or a landscape orientation based on the orientation data;when the orientation of the electronic device is closer to the portrait orientation, causing the electric motor to place the support in the first position; andwhen the orientation of the electronic device is closer to the landscape orientation, causing the electric motor to place the support in the second position, andgenerates a stereoscopic image based on the first image data and the second image data,wherein the support extends between the first camera and the second camera, and wherein the portrait orientation is an orientation in which the height of the electronic device is longer than its width and wherein the landscape orientation is an orientation in which the width of the electronic device is longer than its height. |