Method for obtaining panoramic image and terminal

The invention discloses a method for obtaining a panoramic image. The method comprises the steps of photographing a first image after a panoramic photographing instruction triggered by a user is obtained; obtaining photographing parameters of the first image; determining movement guidance information according to a preset movement guidance strategy; displaying the movement guidance information on a terminal, thereby instructing a user to move the terminal according to the movement guidance information; photographing the preset number of images according to the photographing parameters of the first image after it is detected that the terminal is moved, wherein the preset number of images are the images of backgrounds at the left side and right side of a background corresponding to the first image; and seamlessly splicing the first image and the preset number of images according to a preset splicing scheme which takes the first image as a center, thereby obtaining the panoramic image. According to the method provided by the embodiment of the invention, the image at a center location can be highlighted when panoramic photographing is carried out, and the integrated effect of the panoramic image can be improved.