A mobile terminal comprising: a main body; a first camera (121 a) provided on a front side of the main body; a display; a second camera provided on a rear side of the main body; a sensing unit configured to sense an extent of movement of the main body; and a controller configured to: control the first and second cameras (121a, 121b) to capture images as the main body is moved within a prescribed range, wherein the first camera is controlled to capture a plurality of first images as the main body is rotated within the prescribed range, and the second camera is controlled to capture a plurality of second images as the main body is rotated within the prescribed range, and wherein, when the main body is moved beyond the prescribed range, the first and second cameras (121a, 121b) are controlled to stop capturing images and the first plurality of images from the first camera and the plurality of second images from the second camera are connected to generate a first and a second panorama picture; wherein, based on a user input, the controller is configured to control the display to output the at least one of the first and second generated panorama pictures as a two-dimensional picture in a prescribed shape or a three-dimensional picture in a prescribed shape, characterized in that the display is divided into a first region and a second region and the controller is configured to output the first panorama picture to the first region and the second panorama picture to the second region; wherein the first panorama picture is generated by connecting user images captured by the first camera and the second panorama picture is generated by connecting background images captured by the first and second cameras (121a, 121b). a main body; a first camera (121 a) provided on a front side of the main body; a display; a second camera provided on a rear side of the main body; a sensing unit configured to sense an extent of movement of the main body; and a controller configured to: control the first and second cameras (121a, 121b) to capture images as the main body is moved within a prescribed range, wherein the first camera is controlled to capture a plurality of first images as the main body is rotated within the prescribed range, and the second camera is controlled to capture a plurality of second images as the main body is rotated within the prescribed range, and wherein, when the main body is moved beyond the prescribed range, the first and second cameras (121a, 121b) are controlled to stop capturing images and the first plurality of images from the first camera and the plurality of second images from the second camera are connected to generate a first and a second panorama picture; control the first and second cameras (121a, 121b) to capture images as the main body is moved within a prescribed range, wherein the first camera is controlled to capture a plurality of first images as the main body is rotated within the prescribed range, and the second camera is controlled to capture a plurality of second images as the main body is rotated within the prescribed range, and wherein, when the main body is moved beyond the prescribed range, the first and second cameras (121a, 121b) are controlled to stop capturing images and the first plurality of images from the first camera and the plurality of second images from the second camera are connected to generate a first and a second panorama picture;