Patent ID: 8456512

Claim:
An electronic device, comprising: a storage unit; a display unit; at least one processor; a digital camera unit; an electric compass to detect an azimuth of the digital camera unit of the electronic device; one or more programs stored in the storage unit and being executable by the at least one processor; a setup module to set a number of frames for capturing a 360° panoramic image of the digital camera unit; an initial module to receive an initial azimuth of the digital camera unit from the electronic compass, determine a step of rotation angle of the digital camera unit according to the number of frames, and determine rotation points of the digital camera unit according to the initial azimuth and the step of rotation angle of the digital camera unit for capturing the number of frames to generate the 360° panoramic image; a determination module to calculate a rotated angle of the digital camera unit according to a current azimuth of the digital camera unit and the initial azimuth of the digital camera unit and determine whether the digital camera unit rotates to one of the rotation points according to the rotated angle; and a camera control module to capture at least one image if the digital camera unit rotates to one of the rotation points.