CN106101552B - A kind of panoramic photographing method and mobile terminal - Google Patents

A kind of panoramic photographing method and mobile terminal Download PDF

Info

Publication number
CN106101552B
CN106101552B CN201610605514.9A CN201610605514A CN106101552B CN 106101552 B CN106101552 B CN 106101552B CN 201610605514 A CN201610605514 A CN 201610605514A CN 106101552 B CN106101552 B CN 106101552B
Authority
CN
China
Prior art keywords
frame
mobile terminal
panoramic photo
image
panoramic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610605514.9A
Other languages
Chinese (zh)
Other versions
CN106101552A (en
Inventor
熊晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610605514.9A priority Critical patent/CN106101552B/en
Publication of CN106101552A publication Critical patent/CN106101552A/en
Application granted granted Critical
Publication of CN106101552B publication Critical patent/CN106101552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明实施例公开了一种全景拍照方法及移动终端。所述方法应用于移动终端,所述方法包括:当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像;在所述摄像头持续采集图像的过程中,记录采集所述至少一帧图像中每帧图像时所述移动终端的方位信息;将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。由于本发明实施例所得的全景照片中,各帧图像携带有对应的方位信息,因此在显示生成的全景照片时,可以根据每帧图像携带的方位信息,确定全景照片的显示方式,进而控制全景图像的弯曲显示效果,使显示的全景图像更加符合实际景物,克服了图像弯曲失真的问题。

The embodiment of the invention discloses a panoramic photographing method and a mobile terminal. The method is applied to a mobile terminal, and the method includes: when receiving a panoramic photographing instruction input by a user of the mobile terminal, controlling the camera to continuously capture at least one frame of images; during the process of continuously capturing images by the camera, recording the orientation information of the mobile terminal when capturing each frame of the at least one frame of image; performing image splicing on the at least one frame of image to generate a panoramic photo, each frame of the panoramic photo carrying a corresponding orientation information. In the panoramic photos obtained in the embodiment of the present invention, each frame of images carries corresponding orientation information, so when displaying the generated panoramic photos, the display mode of the panoramic photos can be determined according to the orientation information carried by each frame of images, and then the panoramic photos can be controlled. The curved display effect of the image makes the displayed panoramic image more in line with the actual scene, and overcomes the problem of image bending and distortion.

Description

一种全景拍照方法及移动终端A kind of panoramic photographing method and mobile terminal

技术领域technical field

本发明实施例涉及图像处理技术领域,尤其涉及一种全景拍照方法及移动终端。Embodiments of the present invention relate to the technical field of image processing, and in particular, to a panoramic photographing method and a mobile terminal.

背景技术Background technique

随着终端技术的不断发展,摄像头已成为终端的基本配置之一,基于全景拍照可以获得视野更广的图像,因此很多终端配置有全景拍照功能。With the continuous development of terminal technology, the camera has become one of the basic configurations of the terminal. Based on panoramic photography, images with a wider field of view can be obtained. Therefore, many terminals are equipped with a panoramic photography function.

用户在进行全景拍照时,一般以某一点为中心扇形移动终端摄像头拍摄多张局部图片,终端将多张局部图片拼接成一张全景图片展示给用户。由于全景图片是用户定点扇形拍摄的,而并非是与景物保持平行移动拍摄的,因此所得的全景图片存在图像弯曲失真,无法得到真实的景物拍摄效果的问题。When the user takes a panoramic photo, the camera of the fan-shaped mobile terminal generally takes a certain point as the center to take multiple partial pictures, and the terminal stitches the multiple partial pictures into one panoramic picture and displays it to the user. Since the panorama picture is taken by the user in a fixed-point fan shape, rather than moving in parallel with the scene, the resulting panorama picture has image distortion and cannot obtain the real scene shooting effect.

发明内容Contents of the invention

本发明实施例提供了一种全景拍照方法,以解决背景技术中存在的所得的全景图片中存在图像弯曲失真,无法得到真实的景物拍摄效果的问题。An embodiment of the present invention provides a panoramic photographing method to solve the problem in the background art that there is image curvature and distortion in the obtained panoramic picture, and a real scene photographing effect cannot be obtained.

第一方面,提供了一种全景拍照方法,所述方法包括:In a first aspect, a panoramic photographing method is provided, the method comprising:

当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像;When receiving a panoramic photographing instruction input by the user of the mobile terminal, controlling the camera to continuously capture at least one frame of images;

在所述摄像头持续采集图像的过程中,记录采集所述至少一帧图像中每帧图像时所述移动终端的方位信息;During the process of the camera continuously capturing images, recording the orientation information of the mobile terminal when capturing each frame of the at least one frame of images;

将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。Image splicing is performed on the at least one frame of images to generate a panoramic photo, and each frame of image in the panoramic photo carries corresponding orientation information.

第二方面,提供了一种移动终端,所述移动终端具有摄像头,包括:In a second aspect, a mobile terminal is provided, the mobile terminal has a camera, including:

图像采集模块,用于当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像;An image acquisition module, configured to control the camera to continuously acquire at least one frame of images when a panoramic photographing instruction input by the user of the mobile terminal is received;

方位信息记录模块,用于在所述图像采集模块控制所述摄像头持续采集图像的过程中,记录采集所述图像采集模块采集的至少一帧图像中每帧图像时所述移动终端的方位信息;An azimuth information recording module, configured to record the azimuth information of the mobile terminal when each frame of at least one frame of images collected by the image acquisition module is captured during the process of the image acquisition module controlling the camera to continuously acquire images;

全景照片生成模块,用于将所述图像采集模块采集的所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有所述方位信息记录模块记录的对应的方位信息。A panoramic photo generation module, configured to stitch the at least one frame of images collected by the image acquisition module to generate a panoramic photo, where each frame of the panoramic photo carries the corresponding information recorded by the orientation information recording module. orientation information.

依据本发明的实施例,在全景拍照过程中,使用摄像头持续采集至少一帧图像,同时记录采集每帧图像时移动终端的方位信息,将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。由于本发明实施例所得的全景照片中,各帧图像携带有对应的方位信息,因此在显示生成的全景照片时,可以根据每帧图像携带的方位信息,确定全景照片的显示方式,进而控制全景图像的弯曲显示效果,使显示的全景图像更加符合实际景物,克服了图像弯曲失真的问题。According to an embodiment of the present invention, during the panoramic photographing process, the camera is used to continuously collect at least one frame of images, and at the same time record the orientation information of the mobile terminal when capturing each frame of images, and perform image splicing on the at least one frame of images to generate a panoramic photo, Each frame of image in the panoramic photo carries corresponding orientation information. In the panoramic photos obtained in the embodiment of the present invention, each frame of image carries corresponding orientation information, so when displaying the generated panoramic photos, the display mode of the panoramic photos can be determined according to the orientation information carried by each frame of images, and then the panoramic photos can be controlled. The curved display effect of the image makes the displayed panoramic image more in line with the actual scene, and overcomes the problem of image bending and distortion.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.

图1是本发明一个实施例的全景拍照方法的流程图;Fig. 1 is the flow chart of the panoramic photographing method of an embodiment of the present invention;

图2是本发明另一个实施例的全景拍照方法的流程图;Fig. 2 is a flow chart of a panoramic photographing method according to another embodiment of the present invention;

图3是本发明一个实施例的移动终端的框图;Fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;

图4是本发明另一个实施例的移动终端的框图;Fig. 4 is a block diagram of a mobile terminal according to another embodiment of the present invention;

图5是本发明另一个实施例的移动终端的框图;Fig. 5 is a block diagram of a mobile terminal according to another embodiment of the present invention;

图6是本发明另一个实施例的移动终端的框图。FIG. 6 is a block diagram of a mobile terminal according to another embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

实施例1Example 1

图1是本发明一个实施例的全景拍照方法的流程图。图1所示的全景拍照方法包括:Fig. 1 is a flow chart of a panoramic photographing method according to an embodiment of the present invention. The panoramic photographing method shown in Fig. 1 comprises:

步骤101、当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像。Step 101. When receiving a panoramic photographing instruction input by a user of the mobile terminal, control the camera to continuously capture at least one frame of images.

本发明实施例中,移动终端包括手机、平板、笔记本电脑等。In the embodiment of the present invention, the mobile terminal includes a mobile phone, a tablet, a notebook computer, and the like.

移动终端上安装有摄像头,可以通过摄像头进行照片拍摄和视频录制,配置较高的移动终端可以通过摄像头进行全景拍摄,并对拍摄的多帧图像进行拼接,从而得到视角较广的全景照片。The mobile terminal is equipped with a camera, which can be used to take photos and record videos. A mobile terminal with a higher configuration can take panoramic shots through the camera, and stitch multiple frames of images to obtain a panoramic photo with a wider viewing angle.

用户可以在移动终端装载的相机软件的某一菜单中选择全景拍照入口,使移动终端进入全景拍照模式。移动终端接收到用户输入的全景拍照指令后,控制摄像头针对目标景物持续采集至少一帧图像。The user can select a panorama photography entry in a certain menu of the camera software loaded on the mobile terminal, so that the mobile terminal enters the panorama photography mode. After the mobile terminal receives the panoramic photographing instruction input by the user, it controls the camera to continuously collect at least one frame of images for the target scene.

步骤102、在所述摄像头持续采集图像的过程中,记录采集所述至少一帧图像中每帧图像时所述移动终端的方位信息。Step 102. During the process of the camera continuously capturing images, record the orientation information of the mobile terminal when capturing each frame of the at least one frame of images.

本发明实施例在使用摄像头持续采集图像的过程中,使用安装在移动终端内部的相关设备,记录采集每帧图像时移动终端的方位信息,其中,移动终端的方位信息可以包括多种形式,例如方向信息、位移信息、位置信息等。In the embodiment of the present invention, in the process of using the camera to continuously capture images, related equipment installed inside the mobile terminal is used to record the orientation information of the mobile terminal when capturing each frame of image, wherein the orientation information of the mobile terminal can include various forms, such as Direction information, displacement information, location information, etc.

移动终端可以在定点位置拍照全景,也可以移动地拍照全景。当移动终端在定点位置拍摄全景时,可以使用安置于移动终端内部的指南针采集移动终端的方向信息;当移动终端移动地拍照全景时,可以使用指南针采集移动终端的方向信息,同时使用陀螺仪或GPS定位装置采集移动终端的位移信息或位置信息,还可以使用其他适用装置采集移动终端的方位信息。The mobile terminal can take pictures of panoramas at a fixed point, and can also take pictures of panoramas while moving. When the mobile terminal takes a panorama at a fixed point, the compass placed inside the mobile terminal can be used to collect the direction information of the mobile terminal; The GPS positioning device collects displacement information or location information of the mobile terminal, and other applicable devices can also be used to collect orientation information of the mobile terminal.

进一步,对采集的每帧图像及采集每帧图像时移动终端的方位信息进行记录,将每帧图像和对应记录的方位信息进行组合保存。Further, each frame of image collected and the orientation information of the mobile terminal when each frame of image is collected are recorded, and each frame of image and the corresponding recorded orientation information are combined and saved.

步骤103、将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。Step 103: Perform image splicing on the at least one frame of images to generate a panoramic photo, and each frame of image in the panoramic photo carries corresponding orientation information.

完成对全景的拍照后,采集到至少一帧图像,将采集的至少一帧图像进行图像拼接,生成全景照片。在生成的全景照片中,各帧图像携带有对应的方位信息。对多帧图像的拼接操作是现有技术,本发明在此不再做赘述。After the panorama is photographed, at least one frame of image is collected, and at least one frame of the collected image is stitched to generate a panoramic photo. In the generated panoramic photo, each frame of image carries corresponding orientation information. The splicing operation of multi-frame images is a prior art, and the present invention will not repeat it here.

由于所得的全景照片中,各帧图像携带有对应的方位信息,因此可以根据各帧图像所携带的方位信息即拍摄各帧图像时移动终端的方位信息,控制全景照片的显示效果,使全景照片的显示效果更加符合实际景物。Because in the resulting panoramic photo, each frame of image carries corresponding orientation information, it is possible to control the display effect of the panoramic photo according to the orientation information carried by each frame of image, that is, the orientation information of the mobile terminal when each frame of image is taken, and make the panoramic photo The display effect is more in line with the actual scene.

依据本发明的实施例,在全景拍照过程中,使用摄像头持续采集至少一帧图像,同时记录采集每帧图像时移动终端的方位信息,将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。由于本发明实施例所得的全景照片中,各帧图像携带有对应的方位信息,因此在显示生成的全景照片时,可以根据每帧图像携带的方位信息,确定全景照片的显示方式,进而控制全景图像的弯曲显示效果,使显示的全景图像更加符合实际景物,克服了图像弯曲失真的问题。According to an embodiment of the present invention, during the panoramic photographing process, the camera is used to continuously collect at least one frame of images, and at the same time record the orientation information of the mobile terminal when capturing each frame of images, and perform image splicing on the at least one frame of images to generate a panoramic photo, Each frame of image in the panoramic photo carries corresponding orientation information. In the panoramic photos obtained in the embodiment of the present invention, each frame of image carries corresponding orientation information, so when displaying the generated panoramic photos, the display mode of the panoramic photos can be determined according to the orientation information carried by each frame of images, and then the panoramic photos can be controlled. The curved display effect of the image makes the displayed panoramic image more in line with the actual scene, and overcomes the problem of image bending and distortion.

实施例2Example 2

图2是本发明另一个实施例的全景拍照方法的流程图。图2所示的全景拍照方法包括:Fig. 2 is a flow chart of a panoramic photographing method according to another embodiment of the present invention. The panoramic photographing method shown in Figure 2 includes:

步骤201、当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像。Step 201. When receiving a panoramic photographing instruction input by the user of the mobile terminal, control the camera to continuously capture at least one frame of images.

步骤202、在所述摄像头持续采集图像的过程中,记录采集所述至少一帧图像中每帧图像时所述移动终端的方位信息。Step 202. During the process of the camera continuously capturing images, record the orientation information of the mobile terminal when capturing each frame of the at least one frame of images.

方位信息可以包括方向信息和位移信息中的一种或多种。在使用摄像头持续采集图像的过程中,可以根据移动终端是否发生位置移动,选择性地记录采集每帧图像时移动终端的方向信息,或者移动终端的方向信息和位移信息。The orientation information may include one or more of direction information and displacement information. In the process of using the camera to continuously capture images, the direction information of the mobile terminal when capturing each frame of image, or the direction information and displacement information of the mobile terminal can be selectively recorded according to whether the mobile terminal moves.

步骤203、将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。Step 203: Perform image stitching on the at least one frame of images to generate a panoramic photo, and each frame of image in the panoramic photo carries corresponding orientation information.

在采集图像的过程中,若移动终端未发生位置移动,则全景照片中的每帧图像携带有拍摄该帧图像时移动终端的方向信息;若移动终端发生移动,通常移动终端与景物保持平行移动,则全景照片中的每帧图像携带有拍摄该帧图像时移动终端的方向信息和位移信息。In the process of collecting images, if the position of the mobile terminal does not move, each frame of image in the panoramic photo carries the direction information of the mobile terminal when the frame of image is taken; if the mobile terminal moves, usually the mobile terminal keeps moving parallel to the scene , each frame of image in the panorama photo carries direction information and displacement information of the mobile terminal when the frame of image is captured.

步骤204、接收所述移动终端用户输入的对所述全景照片的查看指令。Step 204, receiving an instruction for viewing the panoramic photo input by the user of the mobile terminal.

用户可以通过点击图库中的全景照片缩图,查看全景照片;或在其他位置查看全景照片。Users can view the panorama by clicking the thumbnail of the panorama in the gallery; or view the panorama in other locations.

步骤205、获取所述移动终端的显示屏的屏幕类型。Step 205, acquire the screen type of the display screen of the mobile terminal.

本发明实施例中,屏幕类型包括柔性屏和非柔性屏,非柔性屏即为平面不可变形的屏幕。In the embodiment of the present invention, the screen type includes a flexible screen and a non-flexible screen, and the non-flexible screen is a plane non-deformable screen.

在接收到对全景照片的查看指令后,需要先确定移动终端的显示屏是柔性屏还是面不可变形的屏幕。After receiving the instruction to view the panoramic photo, it is necessary to first determine whether the display screen of the mobile terminal is a flexible screen or a non-deformable screen.

步骤206、基于所述屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片。Step 206. Based on the screen type, determine a display mode of the panoramic photo, and display the panoramic photo according to the display mode.

基于显示屏的屏幕类型不同,相应地,全景照片的显示方式不同。Panoramas are displayed differently depending on the type of screen on which the display is based.

若显示屏的屏幕类型为柔性屏,则基于采集的至少一帧图像中每帧图像所携带的方位信息,即基于采集每帧图像时移动终端的方位信息,确定该柔性屏的每个屏幕区域的弯曲程度;进一步控制该柔性屏按照每个屏幕区域的弯曲程度进行弯曲;最后将全景照片显示在弯曲后的柔性屏上。If the screen type of the display screen is a flexible screen, each screen area of the flexible screen is determined based on the orientation information carried by each frame of image in at least one frame of image collected, that is, based on the orientation information of the mobile terminal when each frame of image is collected The degree of bending; further control the flexible screen to bend according to the degree of bending of each screen area; finally display the panoramic photo on the curved flexible screen.

具体地,可以在柔性屏内侧安装多个驱动装置,根据由每帧图像所携带的方位信息确定的每个屏幕区域的弯曲程度,根据确定的弯曲程度控制对应的驱动装置的移动,例如前后移动,从而实现对柔性屏的弯曲控制。在弯曲后的柔性屏上显示的全景照片更加接近实际景物。Specifically, multiple driving devices can be installed inside the flexible screen, and according to the degree of curvature of each screen area determined by the orientation information carried by each frame of image, the movement of the corresponding driving device is controlled according to the determined degree of curvature, such as forward and backward movement , so as to realize the bending control of the flexible screen. The panoramic photos displayed on the curved flexible screen are closer to the actual scene.

控制柔性屏弯曲后,可以计算弯曲后的柔性屏的中心位置,相对于其他位置,移动终端用户在中心位置上进行观看可以获得更加真实的全景展示效果。After the bending of the flexible screen is controlled, the center position of the bent flexible screen can be calculated. Compared with other positions, mobile terminal users can obtain a more realistic panoramic display effect when watching at the center position.

若显示屏的屏幕类型为平面不可变形的屏幕,则基于采集的至少一帧图像中每帧图像所携带的方位信息,确定用于显示全景图像的立体模型;进一步将全景照片显示在确定的立体模型上。If the screen type of the display screen is a plane non-deformable screen, then based on the orientation information carried by each frame of image in at least one frame of image collected, determine the stereo model for displaying the panoramic image; further display the panoramic photo in the determined stereo on the model.

现有技术中,为使拍摄的照片具有立体显示效果,会将照片显示在立体模型上,进一步显示给用户。立体模型通常为空间结构,包括指示水平方向的X轴、指示高度方向的Y轴和指示前后方向的Z轴。本发明实施例可以根据每帧图像所携带的方位信息,调整Z轴数据的大小,实现对立体模型的调整,从而实现对全景图像的显示效果的控制。In the prior art, in order to make the photographed photos have a three-dimensional display effect, the photographs are displayed on a three-dimensional model and further displayed to the user. The three-dimensional model is generally a spatial structure, including an X axis indicating a horizontal direction, a Y axis indicating a height direction, and a Z axis indicating a front-to-back direction. The embodiment of the present invention can adjust the size of the Z-axis data according to the orientation information carried by each frame of image to realize the adjustment of the three-dimensional model, thereby realizing the control of the display effect of the panoramic image.

在摄像头持续采集图像的过程中,还可以记录持续拍摄的至少一帧图像中每帧图像的景深信息。相应地,本步骤可以包括:若显示屏的屏幕类型为柔性屏,则基于持续采集的至少一帧图像中每帧图像的景深信息,确定全景照片中与景深信息对应的图像区域的层次信息,即不同图像区域的前后位置关系;进一步在显示全景照片的过程中,基于确定的层次信息,控制柔性屏进行变形。本发明实施例可以根据每帧图像的景深信息对柔性屏进行弯曲控制,从而使显示的全景图像更加接近实际景物。In the process of continuously capturing images by the camera, the depth of field information of each frame of images in at least one frame of continuously captured images may also be recorded. Correspondingly, this step may include: if the screen type of the display screen is a flexible screen, then based on the depth of field information of each frame of image in at least one frame of image continuously collected, determine the level information of the image area corresponding to the depth of field information in the panoramic photo, That is, the front-to-back positional relationship of different image areas; further, in the process of displaying the panoramic photo, based on the determined layer information, the flexible screen is controlled to deform. The embodiments of the present invention can control the bending of the flexible screen according to the field depth information of each frame of image, so that the displayed panoramic image is closer to the actual scene.

在显示全景照片的过程中,还可以接收移动终端用户在全景照片上的点击操作,例如针对某一图像区域的单击操作,若单击操作所在图像区域包含景深信息,则基于景深信息,对单击操作所在图像区域执行与景深信息对应的景深效果处理。具体地,接收移动终端用户在图像区域的单击操作,基于景深信息,该图像区域内的图像变得清晰,相应地,其他图像区域的图像变得模糊。上述方法可以满足用户对局部图像的查看需求,是查看的局部图像更加清晰。In the process of displaying the panoramic photo, it is also possible to receive the click operation of the mobile terminal user on the panoramic photo, such as a click operation for a certain image area. If the image area where the click operation is located contains depth information, based on the depth information, the Click the image area where the operation is performed to perform depth-of-field effect processing corresponding to the depth-of-field information. Specifically, a click operation of the mobile terminal user on the image area is received, based on the depth of field information, the image in the image area becomes clear, and correspondingly, the images in other image areas become blurred. The above method can satisfy the user's requirement for viewing partial images, and makes the viewed partial images clearer.

依据本发明的实施例,在全景拍照过程中,使用摄像头持续采集至少一帧图像,同时记录采集每帧图像时移动终端的方位信息,将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。由于本发明实施例所得的全景照片中,各帧图像携带有对应的方位信息,因此在显示生成的全景照片时,可以根据每帧图像携带的方位信息,确定全景照片的显示方式,进而控制全景图像的弯曲显示效果,使显示的全景图像更加符合实际景物,克服了图像弯曲失真的问题。According to an embodiment of the present invention, during the panoramic photographing process, the camera is used to continuously collect at least one frame of images, and at the same time record the orientation information of the mobile terminal when capturing each frame of images, and perform image splicing on the at least one frame of images to generate a panoramic photo, Each frame of image in the panoramic photo carries corresponding orientation information. In the panoramic photos obtained in the embodiment of the present invention, each frame of image carries corresponding orientation information, so when displaying the generated panoramic photos, the display mode of the panoramic photos can be determined according to the orientation information carried by each frame of images, and then the panoramic photos can be controlled. The curved display effect of the image makes the displayed panoramic image more in line with the actual scene, and overcomes the problem of image bending and distortion.

实施例3Example 3

图3是本发明一个实施例的移动终端的框图。图3所示的移动终端包括:FIG. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal shown in Figure 3 includes:

图像采集模块301,用于当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像。The image acquisition module 301 is configured to control the camera to continuously acquire at least one frame of images when receiving a panoramic photographing instruction input by the user of the mobile terminal.

方位信息记录模块302,用于在所述图像采集模块控制所述摄像头持续采集图像的过程中,记录采集所述图像采集模块采集的至少一帧图像中每帧图像时所述移动终端的方位信息。The orientation information recording module 302 is configured to record the orientation information of the mobile terminal when the image acquisition module controls each frame of image in at least one frame of images acquired by the image acquisition module during the process of the image acquisition module controlling the continuous acquisition of images by the camera .

全景照片生成模块303,用于将所述图像采集模块采集的所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有所述方位信息记录模块记录的对应的方位信息。The panoramic photo generation module 303 is configured to stitch the at least one frame of images collected by the image acquisition module to generate a panoramic photo, and each frame of the panoramic photo carries the corresponding information recorded by the orientation information recording module. location information.

参照图4,在图3基础上,对移动终端的其他模块、模块包含的子模块及其作用进行说明。Referring to FIG. 4 , on the basis of FIG. 3 , other modules of the mobile terminal, submodules included in the modules and their functions are described.

图4是本发明另一个实施例的移动终端的框图。图4所示的移动终端包括:Fig. 4 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal shown in Figure 4 includes:

图像采集模块401,用于当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像。The image acquisition module 401 is configured to control the camera to continuously acquire at least one frame of images when receiving a panoramic photographing instruction input by the user of the mobile terminal.

方位信息记录模块402,用于在所述图像采集模块控制所述摄像头持续采集图像的过程中,记录采集所述图像采集模块采集的至少一帧图像中每帧图像时所述移动终端的方位信息。The orientation information recording module 402 is configured to record the orientation information of the mobile terminal when the image acquisition module controls each frame of image in at least one frame of images acquired by the image acquisition module during the process of the image acquisition module controlling the continuous acquisition of images by the camera .

全景照片生成模块403,用于将所述图像采集模块采集的所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有所述方位信息记录模块记录的对应的方位信息。The panoramic photo generating module 403 is configured to perform image splicing on the at least one frame of images collected by the image acquisition module to generate a panoramic photo, and each frame of the image in the panoramic photo carries a corresponding location information.

查看指令接收模块404,用于在所述全景照片拼接模块将所述至少一帧图像进行图像拼接,生成照片的步骤之后,接收所述移动终端用户输入的对所述全景照片的查看指令。The viewing instruction receiving module 404 is configured to receive a viewing instruction for the panoramic photo input by the user of the mobile terminal after the step of stitching the at least one frame of images by the panoramic photo stitching module to generate a photo.

屏幕类型获取模块405,用于获取所述移动终端的显示屏的屏幕类型。The screen type acquiring module 405 is configured to acquire the screen type of the display screen of the mobile terminal.

全景照片显示模块406,用于基于所述屏幕类型获取模块获取的屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片。The panoramic photo display module 406 is configured to determine the display mode of the panoramic photo based on the screen type acquired by the screen type acquisition module, and display the panoramic photo according to the display mode.

本发明实施例中,优选地,所述全景照片显示模块406包括:In the embodiment of the present invention, preferably, the panoramic photo display module 406 includes:

弯曲程度确定子模块4061,用于若所述屏幕类型获取模块获取的屏幕类型为柔性屏,则基于所述至少一帧图像中每帧图像所携带的方位信息,确定所述柔性屏的每个屏幕区域的弯曲程度;The bending degree determining sub-module 4061 is configured to determine each screen of the flexible screen based on the orientation information carried in each frame of the at least one frame of image if the screen type acquired by the screen type acquiring module is a flexible screen. The degree of curvature of the screen area;

弯曲控制子模块4062,用于控制所述柔性屏按照所述弯曲程度确定子模块确定的每个屏幕区域的弯曲程度进行弯曲;A bending control submodule 4062, configured to control the flexible screen to bend according to the bending degree of each screen area determined by the bending degree determining submodule;

第一全景照片展示子模块4063,用于将所述全景照片显示在由所述弯曲控制子模块控制得到的弯曲后的柔性屏上。The first panoramic photo display submodule 4063 is configured to display the panoramic photo on the curved flexible screen controlled by the bending control submodule.

本发明实施例中,优选地,所述全景照片显示模块406包括:In the embodiment of the present invention, preferably, the panoramic photo display module 406 includes:

立体模型确定子模块4064,用于若所述屏幕类型获取模块获取的屏幕类型为平面不可变形的屏幕,则基于所述至少一帧图像中每帧图像所携带的方位信息,确定用于显示所述全景图像的立体模型;The three-dimensional model determination sub-module 4064 is configured to determine, based on the orientation information carried in each frame of the at least one frame of images, the screen used to display the Stereoscopic model of the panoramic image;

第二全景照片展示子模块4065,用于将所述全景照片显示在由所述立体模型确定子模块确定的立体模型上。The second panorama photo display sub-module 4065 is used to display the panorama photo on the stereo model determined by the stereo model determination sub-module.

本发明实施例中,优选地,所述移动终端还包括:In the embodiment of the present invention, preferably, the mobile terminal further includes:

景深信息记录模块407,用于在所述图像采集模块控制所述摄像头持续采集图像的过程中,记录所述至少一帧图像中每帧图像的景深信息。The depth-of-field information recording module 407 is configured to record the depth-of-field information of each frame of the at least one frame of image during the process of the image acquisition module controlling the camera to continuously acquire images.

本发明实施例中,优选地,所述全景照片显示模块406包括:In the embodiment of the present invention, preferably, the panoramic photo display module 406 includes:

层次信息确认子模块4066,用于若所述屏幕类型获取模块获取的屏幕类型为柔性屏,则基于所述至少一帧图像中每帧图像的景深信息,确定所述全景照片中与所述景深信息对应的图像区域的层次信息;The layer information confirmation sub-module 4066 is configured to determine the depth of field in the panoramic photo based on the depth of field information of each frame of image in the at least one frame of image if the screen type obtained by the screen type obtaining module is a flexible screen. Hierarchical information of the image area corresponding to the information;

变形控制子模块4067,用于在显示所述全景照片的过程中,基于所述层次信息确认子模块确认的层次信息,控制所述柔性屏进行变形。The deformation control sub-module 4067 is configured to control the flexible screen to deform based on the layer information confirmed by the layer information confirmation sub-module during the process of displaying the panoramic photo.

本发明实施例中,优选地,所述移动终端还包括:In the embodiment of the present invention, preferably, the mobile terminal further includes:

点击操作接收模块408,用于在所述全景照片显示模块按照所述显示方式显示所述全景照片的步骤之后,在显示所述全景照片的过程中,接收所述移动终端用户在所述全景照片上的点击操作;The click operation receiving module 408 is used for receiving the panoramic photo displayed by the mobile terminal user during the process of displaying the panoramic photo after the panoramic photo display module displays the panoramic photo according to the display mode. click action on

景深效果处理执行模块409,用于若所述点击操作接收模块接收的点击操作所在图像区域包含所述景深信息,则基于所述景深信息,对所述点击操作所在图像区域执行与所述景深信息对应的景深效果处理。The depth-of-field effect processing execution module 409 is configured to, if the image area where the click operation is received by the click operation receiving module contains the depth-of-field information, then based on the depth-of-field information, perform the same operation as the depth-of-field information on the image area where the click operation is located. Corresponding depth of field effect processing.

本发明实施例中,优选地,所述方位信息包括方向信息和位移信息。In the embodiment of the present invention, preferably, the orientation information includes direction information and displacement information.

依据本发明的实施例,在全景拍照过程中,使用摄像头持续采集至少一帧图像,同时记录采集每帧图像时移动终端的方位信息,将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。由于本发明实施例所得的全景照片中,各帧图像携带有对应的方位信息,因此在显示生成的全景照片时,可以根据每帧图像携带的方位信息,确定全景照片的显示方式,进而控制全景图像的弯曲显示效果,使显示的全景图像更加符合实际景物,克服了图像弯曲失真的问题。According to an embodiment of the present invention, during the panoramic photographing process, the camera is used to continuously collect at least one frame of images, and at the same time record the orientation information of the mobile terminal when capturing each frame of images, and perform image splicing on the at least one frame of images to generate a panoramic photo, Each frame of image in the panoramic photo carries corresponding orientation information. In the panoramic photos obtained in the embodiment of the present invention, each frame of image carries corresponding orientation information, so when displaying the generated panoramic photos, the display mode of the panoramic photos can be determined according to the orientation information carried by each frame of images, and then the panoramic photos can be controlled. The curved display effect of the image makes the displayed panoramic image more in line with the actual scene, and overcomes the problem of image bending and distortion.

实施例4Example 4

图5是本发明另一个实施例的移动终端的框图。图5所示的移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504和用户接口503。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统505,所述移动终端500还包括摄像头506。FIG. 5 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 500 shown in FIG. 5 includes: at least one processor 501 , a memory 502 , at least one network interface 504 and a user interface 503 . Various components in the mobile terminal 500 are coupled together through the bus system 505 . It can be understood that the bus system 505 is used to realize connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in FIG. 5 , various buses are marked as a bus system 505 , and the mobile terminal 500 also includes a camera 506 .

其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 503 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.

可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本发明实施例描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read-only memory (Read-OnlyMemory, ROM), programmable read-only memory (ProgrammableROM, PROM), erasable programmable read-only memory (ErasablePROM, EPROM), electrically erasable Programming read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (Random Access Memory, RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), Double data rate synchronous dynamic random access memory (DoubleDataRateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct memory bus random access Memory (Direct Rambus RAM, DRRAM). The memory 502 of the systems and methods described in embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some implementations, the memory 502 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022 .

其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。Among them, the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 5022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 5022 .

在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像;在所述摄像头持续采集图像的过程中,记录采集所述至少一帧图像中每帧图像时所述移动终端的方位信息;将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。In the embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application program 5022, the processor 501 is configured to During this time, the camera is controlled to continuously collect at least one frame of images; during the process of the camera continuously collecting images, the orientation information of the mobile terminal when capturing each frame of the at least one frame of images is recorded; the at least one Image splicing is performed on the frame images to generate a panoramic photo, and each frame of image in the panoramic photo carries corresponding orientation information.

上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecific IntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 501 or instructions in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates Or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the above method in combination with its hardware.

可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD ), Field-Programmable Gate Array (Field-Programmable GateArray, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application, or a combination thereof.

对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (such as procedures, functions, etc.) that execute the functions described in the embodiments of the present invention. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,处理器501还用于在所述将所述至少一帧图像进行图像拼接,生成照片的步骤之后,接收所述移动终端用户输入的对所述全景照片的查看指令;Optionally, the processor 501 is further configured to receive an instruction for viewing the panoramic photo input by the user of the mobile terminal after the step of stitching the at least one frame of images to generate a photo;

获取所述移动终端的显示屏的屏幕类型;Obtain the screen type of the display screen of the mobile terminal;

基于所述屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片。Based on the screen type, a display manner of the panoramic photo is determined, and the panoramic photo is displayed according to the display manner.

可选地,处理器501还用于:若所述屏幕类型为柔性屏,则基于所述至少一帧图像中每帧图像所携带的方位信息,确定所述柔性屏的每个屏幕区域的弯曲程度;Optionally, the processor 501 is further configured to: if the screen type is a flexible screen, determine the curvature of each screen area of the flexible screen based on the orientation information carried in each frame of the at least one image frame degree;

控制所述柔性屏按照所述每个屏幕区域的弯曲程度进行弯曲;controlling the flexible screen to bend according to the bending degree of each screen area;

将所述全景照片显示在弯曲后的所述柔性屏上。The panoramic photo is displayed on the curved flexible screen.

可选地,处理器501还用于:若所述屏幕类型为平面不可变形的屏幕,则基于所述至少一帧图像中每帧图像所携带的方位信息,确定用于显示所述全景图像的立体模型;Optionally, the processor 501 is further configured to: if the screen type is a plane non-deformable screen, based on the orientation information carried in each frame of the at least one frame of image, determine an image for displaying the panoramic image. Diorama;

将所述全景照片显示在所述立体模型上。The panorama is displayed on the diorama.

可选地,处理器501还用于:在所述摄像头持续采集图像的过程中,记录所述至少一帧图像中每帧图像的景深信息。Optionally, the processor 501 is further configured to: record the depth-of-field information of each frame of the at least one frame of images during the process of the camera continuously capturing images.

可选地,处理器501还用于:若所述屏幕类型为柔性屏,则基于所述至少一帧图像中每帧图像的景深信息,确定所述全景照片中与所述景深信息对应的图像区域的层次信息;Optionally, the processor 501 is further configured to: if the screen type is a flexible screen, based on the depth of field information of each frame of image in the at least one frame of image, determine the image corresponding to the depth of field information in the panoramic photo Hierarchical information of the region;

在显示所述全景照片的过程中,基于所述层次信息,控制所述柔性屏进行变形。In the process of displaying the panoramic photo, the flexible screen is controlled to deform based on the layer information.

可选地,处理器501还用于:在显示所述全景照片的过程中,接收所述移动终端用户在所述全景照片上的点击操作;Optionally, the processor 501 is further configured to: receive a click operation on the panoramic photo by the user of the mobile terminal during the process of displaying the panoramic photo;

若所述点击操作所在图像区域包含所述景深信息,则基于所述景深信息,对所述点击操作所在图像区域执行与所述景深信息对应的景深效果处理。If the image area where the click operation is located includes the depth of field information, then based on the depth of field information, perform depth of field effect processing corresponding to the depth of field information on the image area where the click operation is located.

可选地,处理器501还用于:所述方位信息包括方向信息和位移信息。Optionally, the processor 501 is further configured to: the orientation information includes direction information and displacement information.

移动终端500能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 500 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.

依据本发明的实施例,在全景拍照过程中,使用摄像头持续采集至少一帧图像,同时记录采集每帧图像时移动终端的方位信息,将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。由于本发明实施例所得的全景照片中,各帧图像携带有对应的方位信息,因此在显示生成的全景照片时,可以根据每帧图像携带的方位信息,确定全景照片的显示方式,进而控制全景图像的弯曲显示效果,使显示的全景图像更加符合实际景物,克服了图像弯曲失真的问题。According to an embodiment of the present invention, during the panoramic photographing process, the camera is used to continuously collect at least one frame of images, and at the same time record the orientation information of the mobile terminal when capturing each frame of images, and perform image splicing on the at least one frame of images to generate a panoramic photo, Each frame of image in the panoramic photo carries corresponding orientation information. In the panoramic photos obtained in the embodiment of the present invention, each frame of image carries corresponding orientation information, so when displaying the generated panoramic photos, the display mode of the panoramic photos can be determined according to the orientation information carried by each frame of images, and then the panoramic photos can be controlled. The curved display effect of the image makes the displayed panoramic image more in line with the actual scene, and overcomes the problem of image bending and distortion.

实施例5Example 5

图6是本发明另一个实施例的移动终端的结构示意图。具体地,图6中的移动终端600可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等。Fig. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 600 in FIG. 6 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图6中的移动终端600包括射频(RadioFrequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(WirelessFidelity)模块680和电源690,所述移动终端600还包括摄像头650。Mobile terminal 600 in Fig. 6 comprises radio frequency (RadioFrequency, RF) circuit 610, memory 620, input unit 630, display unit 640, processor 660, audio frequency circuit 670, WiFi (WirelessFidelity) module 680 and power supply 690, described mobile terminal 600 also includes a camera 650 .

其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端600的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 630 can be used to receive number or character information input by the user, and generate signal input related to the user setting and function control of the mobile terminal 600 . Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631 . The touch panel 631, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 631 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 631 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端600的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED)等形式来配置显示面板641。Wherein, the display unit 640 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 600 . The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 631 can cover the display panel 641 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 660 to determine the type of the touch event, and then the processor 660 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.

其中处理器660是移动终端600的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端600的各种功能和处理数据,从而对移动终端600进行整体监控。可选的,处理器660可包括一个或多个处理单元。Wherein the processor 660 is the control center of the mobile terminal 600, utilizes various interfaces and lines to connect the various parts of the whole mobile phone, by running or executing the software programs and/or modules stored in the first memory 621, and calling the software programs and/or modules stored in the second memory 621. The data in the memory 622 executes various functions of the mobile terminal 600 and processes data, so as to monitor the mobile terminal 600 as a whole. Optionally, the processor 660 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/或该第二存储器622内的数据,处理器660用于当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像;在所述摄像头持续采集图像的过程中,记录采集所述至少一帧图像中每帧图像时所述移动终端的方位信息;将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。In the embodiment of the present invention, by calling the software programs and/or modules stored in the first memory 621 and/or the data in the second memory 622, the processor 660 is configured to When commanding panoramic photography, control the camera to continuously capture at least one frame of images; record the orientation information of the mobile terminal when capturing each frame of images in the at least one frame of images during the continuous capture of images by the camera; Image splicing is performed on the at least one frame of images to generate a panoramic photo, and each frame of image in the panoramic photo carries corresponding orientation information.

可选地,处理器660还用于:在所述将所述至少一帧图像进行图像拼接,生成照片的步骤之后,接收所述移动终端用户输入的对所述全景照片的查看指令;Optionally, the processor 660 is further configured to: after the step of stitching the at least one frame of images to generate a photo, receive an instruction for viewing the panoramic photo input by the user of the mobile terminal;

获取所述移动终端的显示屏的屏幕类型;Obtain the screen type of the display screen of the mobile terminal;

基于所述屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片。Based on the screen type, a display manner of the panoramic photo is determined, and the panoramic photo is displayed according to the display manner.

可选地,处理器660还用于:若所述屏幕类型为柔性屏,则基于所述至少一帧图像中每帧图像所携带的方位信息,确定所述柔性屏的每个屏幕区域的弯曲程度;Optionally, the processor 660 is further configured to: if the screen type is a flexible screen, determine the curvature of each screen area of the flexible screen based on the orientation information carried in each frame of the at least one image frame degree;

控制所述柔性屏按照所述每个屏幕区域的弯曲程度进行弯曲;controlling the flexible screen to bend according to the bending degree of each screen area;

将所述全景照片显示在弯曲后的所述柔性屏上。The panoramic photo is displayed on the curved flexible screen.

可选地,处理器660还用于:若所述屏幕类型为平面不可变形的屏幕,则基于所述至少一帧图像中每帧图像所携带的方位信息,确定用于显示所述全景图像的立体模型;Optionally, the processor 660 is further configured to: if the screen type is a plane non-deformable screen, based on the orientation information carried by each frame image in the at least one frame image, determine the Diorama;

将所述全景照片显示在所述立体模型上。The panorama is displayed on the diorama.

可选地,处理器660还用于:在所述摄像头持续采集图像的过程中,记录所述至少一帧图像中每帧图像的景深信息。Optionally, the processor 660 is further configured to: record the depth-of-field information of each frame of the at least one frame of images during the process of the camera continuously capturing images.

可选地,处理器660还用于:若所述屏幕类型为柔性屏,则基于所述至少一帧图像中每帧图像的景深信息,确定所述全景照片中与所述景深信息对应的图像区域的层次信息;Optionally, the processor 660 is further configured to: if the screen type is a flexible screen, based on the depth of field information of each frame of image in the at least one frame of image, determine the image corresponding to the depth of field information in the panoramic photo Hierarchical information of the region;

在显示所述全景照片的过程中,基于所述层次信息,控制所述柔性屏进行变形。In the process of displaying the panoramic photo, the flexible screen is controlled to deform based on the layer information.

可选地,处理器660还用于:在显示所述全景照片的过程中,接收所述移动终端用户在所述全景照片上的点击操作;Optionally, the processor 660 is further configured to: receive a click operation of the mobile terminal user on the panoramic photo during the process of displaying the panoramic photo;

若所述点击操作所在图像区域包含所述景深信息,则基于所述景深信息,对所述点击操作所在图像区域执行与所述景深信息对应的景深效果处理。If the image area where the click operation is located includes the depth of field information, then based on the depth of field information, perform depth of field effect processing corresponding to the depth of field information on the image area where the click operation is located.

可选地,处理器660还用于:所述方位信息包括方向信息和位移信息。Optionally, the processor 660 is further configured to: the orientation information includes direction information and displacement information.

可见,依据本发明的实施例,在全景拍照过程中,使用摄像头持续采集至少一帧图像,同时记录采集每帧图像时移动终端的方位信息,将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息。由于本发明实施例所得的全景照片中,各帧图像携带有对应的方位信息,因此在显示生成的全景照片时,可以根据每帧图像携带的方位信息,确定全景照片的显示方式,进而控制全景图像的弯曲显示效果,使显示的全景图像更加符合实际景物,克服了图像弯曲失真的问题。It can be seen that, according to the embodiment of the present invention, during the panorama photographing process, the camera is used to continuously collect at least one frame of images, and at the same time record the orientation information of the mobile terminal when capturing each frame of images, and stitch the at least one frame of images to generate a panorama Each frame of image in the panoramic photo carries corresponding orientation information. In the panoramic photos obtained in the embodiment of the present invention, each frame of image carries corresponding orientation information, so when displaying the generated panoramic photos, the display mode of the panoramic photos can be determined according to the orientation information carried by each frame of images, and then the panoramic photos can be controlled. The curved display effect of the image makes the displayed panoramic image more in line with the actual scene, and overcomes the problem of image bending and distortion.

由于所述移动终端实施例基本相应于前述图1-图2所示的方法实施例,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此就不赘述了。Since the embodiment of the mobile terminal basically corresponds to the method embodiment shown in the above-mentioned Figures 1-2, the details in the description of this embodiment can be referred to the relevant descriptions in the above-mentioned embodiments, and will not be repeated here. up.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (16)

1.一种全景拍照方法,应用于具有摄像头的移动终端,其特征在于,所述方法包括:1. A panoramic photographing method, applied to a mobile terminal with a camera, characterized in that the method comprises: 当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像;When receiving a panoramic photographing instruction input by the user of the mobile terminal, controlling the camera to continuously capture at least one frame of images; 在所述摄像头持续采集图像的过程中,记录采集所述至少一帧图像中每帧图像时所述移动终端的方位信息;During the process of the camera continuously capturing images, recording the orientation information of the mobile terminal when capturing each frame of the at least one frame of images; 将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息;performing image splicing on the at least one frame of images to generate a panoramic photo, and each frame of image in the panoramic photo carries corresponding orientation information; 其中,所述将所述至少一帧图像进行图像拼接,生成照片的步骤之后,所述方法还包括:Wherein, after the step of performing image splicing on the at least one frame of images to generate a photo, the method further includes: 接收所述移动终端用户输入的对所述全景照片的查看指令;receiving an instruction to view the panoramic photo input by the user of the mobile terminal; 获取所述移动终端的显示屏的屏幕类型;Obtain the screen type of the display screen of the mobile terminal; 基于所述屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片;Based on the screen type, determine the display mode of the panoramic photo, and display the panoramic photo according to the display mode; 所述基于所述屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片的步骤,包括:The step of determining the display mode of the panoramic photo based on the screen type, and displaying the panoramic photo according to the display mode includes: 若所述屏幕类型为柔性屏,则基于所述至少一帧图像中每帧图像所携带的方位信息,确定所述柔性屏的每个屏幕区域的弯曲程度;If the screen type is a flexible screen, then determine the degree of curvature of each screen area of the flexible screen based on the orientation information carried in each frame of the at least one image; 控制所述柔性屏按照所述每个屏幕区域的弯曲程度进行弯曲;controlling the flexible screen to bend according to the bending degree of each screen area; 将所述全景照片显示在弯曲后的所述柔性屏上。The panoramic photo is displayed on the curved flexible screen. 2.根据权利要求1所述的方法,其特征在于,所述基于所述屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片的步骤,包括:2. The method according to claim 1, wherein the step of determining the display mode of the panoramic photo based on the screen type, and displaying the panoramic photo according to the display mode includes: 若所述屏幕类型为平面不可变形的屏幕,则基于所述至少一帧图像中每帧图像所携带的方位信息,确定用于显示所述全景图像的立体模型;If the screen type is a plane non-deformable screen, then based on the orientation information carried by each frame of the at least one frame of image, determine a stereo model for displaying the panoramic image; 将所述全景照片显示在所述立体模型上。The panorama is displayed on the diorama. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, characterized in that the method further comprises: 在所述摄像头持续采集图像的过程中,记录所述至少一帧图像中每帧图像的景深信息。In the process of continuously collecting images by the camera, the field depth information of each frame of the at least one frame of images is recorded. 4.根据权利要求3所述的方法,其特征在于,在显示所述全景照片的过程中,所述方法还包括:4. The method according to claim 3, characterized in that, in the process of displaying the panoramic photo, the method further comprises: 接收所述移动终端用户在所述全景照片上的点击操作;receiving the click operation of the mobile terminal user on the panoramic photo; 若所述点击操作所在图像区域包含所述景深信息,则基于所述景深信息,对所述点击操作所在图像区域执行与所述景深信息对应的景深效果处理。If the image area where the click operation is located includes the depth of field information, then based on the depth of field information, perform depth of field effect processing corresponding to the depth of field information on the image area where the click operation is located. 5.根据权利要求1所述的方法,其特征在于,所述方位信息包括方向信息和位移信息。5. The method according to claim 1, wherein the orientation information includes direction information and displacement information. 6.一种全景拍照方法,应用于具有摄像头的移动终端,其特征在于,所述方法包括:6. A panoramic photographing method, applied to a mobile terminal with a camera, characterized in that the method comprises: 当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像;When receiving a panoramic photographing instruction input by the user of the mobile terminal, controlling the camera to continuously capture at least one frame of images; 在所述摄像头持续采集图像的过程中,记录采集所述至少一帧图像中每帧图像时所述移动终端的方位信息;During the process of the camera continuously capturing images, recording the orientation information of the mobile terminal when capturing each frame of the at least one frame of images; 将所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有对应的方位信息;performing image splicing on the at least one frame of images to generate a panoramic photo, and each frame of image in the panoramic photo carries corresponding orientation information; 所述将所述至少一帧图像进行图像拼接,生成照片的步骤之后,所述方法还包括:After the step of performing image splicing on the at least one frame of images to generate a photo, the method further includes: 接收所述移动终端用户输入的对所述全景照片的查看指令;receiving an instruction to view the panoramic photo input by the user of the mobile terminal; 获取所述移动终端的显示屏的屏幕类型;Obtain the screen type of the display screen of the mobile terminal; 基于所述屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片;Based on the screen type, determine the display mode of the panoramic photo, and display the panoramic photo according to the display mode; 在所述摄像头持续采集图像的过程中,记录所述至少一帧图像中每帧图像的景深信息;In the process of continuous image acquisition by the camera, record the depth of field information of each frame of image in the at least one frame of image; 所述基于所述屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片的步骤,包括:The step of determining the display mode of the panoramic photo based on the screen type, and displaying the panoramic photo according to the display mode includes: 若所述屏幕类型为柔性屏,则基于所述至少一帧图像中每帧图像的景深信息,确定所述全景照片中与所述景深信息对应的图像区域的层次信息;If the screen type is a flexible screen, then based on the depth of field information of each frame of image in the at least one frame of image, determine the level information of the image area corresponding to the depth of field information in the panoramic photo; 在显示所述全景照片的过程中,基于所述层次信息,控制所述柔性屏进行变形。In the process of displaying the panoramic photo, the flexible screen is controlled to deform based on the layer information. 7.根据权利要求6所述的方法,其特征在于,在显示所述全景照片的过程中,所述方法还包括:7. The method according to claim 6, characterized in that, in the process of displaying the panoramic photo, the method further comprises: 接收所述移动终端用户在所述全景照片上的点击操作;receiving the click operation of the mobile terminal user on the panoramic photo; 若所述点击操作所在图像区域包含所述景深信息,则基于所述景深信息,对所述点击操作所在图像区域执行与所述景深信息对应的景深效果处理。If the image area where the click operation is located includes the depth of field information, then based on the depth of field information, perform depth of field effect processing corresponding to the depth of field information on the image area where the click operation is located. 8.根据权利要求6所述的方法,其特征在于,所述方位信息包括方向信息和位移信息。8. The method according to claim 6, wherein the orientation information includes direction information and displacement information. 9.一种移动终端,所述移动终端具有摄像头,其特征在于,包括:9. A kind of mobile terminal, described mobile terminal has camera, is characterized in that, comprises: 图像采集模块,用于当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像;An image acquisition module, configured to control the camera to continuously acquire at least one frame of images when a panoramic photographing instruction input by the user of the mobile terminal is received; 方位信息记录模块,用于在所述图像采集模块控制所述摄像头持续采集图像的过程中,记录采集所述图像采集模块采集的至少一帧图像中每帧图像时所述移动终端的方位信息;An azimuth information recording module, configured to record the azimuth information of the mobile terminal when each frame of at least one frame of images collected by the image acquisition module is captured during the process of the image acquisition module controlling the camera to continuously acquire images; 全景照片生成模块,用于将所述图像采集模块采集的所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有所述方位信息记录模块记录的对应的方位信息;A panoramic photo generation module, configured to stitch the at least one frame of images collected by the image acquisition module to generate a panoramic photo, where each frame of the panoramic photo carries the corresponding information recorded by the orientation information recording module. orientation information; 查看指令接收模块,用于在所述全景照片拼接模块将所述至少一帧图像进行图像拼接,生成照片的步骤之后,接收所述移动终端用户输入的对所述全景照片的查看指令;A viewing instruction receiving module, configured to receive a viewing instruction for the panoramic photo input by the mobile terminal user after the step of stitching the at least one frame of images by the panoramic photo stitching module to generate a photo; 屏幕类型获取模块,用于获取所述移动终端的显示屏的屏幕类型;a screen type acquiring module, configured to acquire the screen type of the display screen of the mobile terminal; 全景照片显示模块,用于基于所述屏幕类型获取模块获取的屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片;A panoramic photo display module, configured to determine the display mode of the panoramic photo based on the screen type acquired by the screen type acquisition module, and display the panoramic photo according to the display mode; 弯曲程度确定子模块,用于若所述屏幕类型获取模块获取的屏幕类型为柔性屏,则基于所述至少一帧图像中每帧图像所携带的方位信息,确定所述柔性屏的每个屏幕区域的弯曲程度;The bending degree determination sub-module is configured to determine each screen of the flexible screen based on the orientation information carried by each frame of the image in the at least one frame of images if the screen type acquired by the screen type acquisition module is a flexible screen degree of curvature of the area; 弯曲控制子模块,用于控制所述柔性屏按照所述弯曲程度确定子模块确定的每个屏幕区域的弯曲程度进行弯曲;a bending control submodule, configured to control the flexible screen to bend according to the bending degree of each screen area determined by the bending degree determining submodule; 第一全景照片展示子模块,用于将所述全景照片显示在由所述弯曲控制子模块控制得到的弯曲后的柔性屏上。The first panoramic photo display submodule is configured to display the panoramic photo on the curved flexible screen controlled by the bending control submodule. 10.根据权利要求9所述的移动终端,其特征在于,所述全景照片显示模块包括:10. The mobile terminal according to claim 9, wherein the panoramic photo display module comprises: 立体模型确定子模块,用于若所述屏幕类型获取模块获取的屏幕类型为平面不可变形的屏幕,则基于所述至少一帧图像中每帧图像所携带的方位信息,确定用于显示所述全景图像的立体模型;A three-dimensional model determination submodule, configured to determine, based on the orientation information carried in each frame of the at least one frame of images, the screen used to display the Stereo models of panoramic images; 第二全景照片展示子模块,用于将所述全景照片显示在由所述立体模型确定子模块确定的立体模型上。The second panoramic photo display submodule is configured to display the panoramic photo on the stereo model determined by the stereo model determination submodule. 11.根据权利要求9所述的移动终端,其特征在于,所述移动终端还包括:11. The mobile terminal according to claim 9, further comprising: 景深信息记录模块,用于在所述图像采集模块控制所述摄像头持续采集图像的过程中,记录所述至少一帧图像中每帧图像的景深信息。The depth-of-field information recording module is configured to record the depth-of-field information of each frame of the at least one frame of image during the process of the image acquisition module controlling the camera to continuously acquire images. 12.根据权利要求11所述的移动终端,其特征在于,所述移动终端还包括:12. The mobile terminal according to claim 11, further comprising: 点击操作接收模块,用于在所述全景照片显示模块按照所述显示方式显示所述全景照片的步骤之后,在显示所述全景照片的过程中,接收所述移动终端用户在所述全景照片上的点击操作;The click operation receiving module is used to receive the mobile terminal user's input on the panoramic photo during the process of displaying the panoramic photo after the panoramic photo display module displays the panoramic photo according to the display method. click operation; 景深效果处理执行模块,用于若所述点击操作接收模块接收的点击操作所在图像区域包含所述景深信息,则基于所述景深信息,对所述点击操作所在图像区域执行与所述景深信息对应的景深效果处理。A depth-of-field effect processing execution module, configured to, if the image area where the click operation is received by the click operation receiving module includes the depth-of-field information, perform an operation corresponding to the depth-of-field information on the image area where the click operation is located based on the depth-of-field information. Depth of field effect processing. 13.根据权利要求9所述的移动终端,其特征在于,所述方位信息包括方向信息和位移信息。13. The mobile terminal according to claim 9, wherein the orientation information includes direction information and displacement information. 14.一种移动终端,所述移动终端具有摄像头,其特征在于,包括:14. A kind of mobile terminal, described mobile terminal has camera, is characterized in that, comprises: 图像采集模块,用于当接收到所述移动终端用户输入的全景拍照指令时,控制所述摄像头持续采集至少一帧图像;An image acquisition module, configured to control the camera to continuously acquire at least one frame of images when a panoramic photographing instruction input by the user of the mobile terminal is received; 方位信息记录模块,用于在所述图像采集模块控制所述摄像头持续采集图像的过程中,记录采集所述图像采集模块采集的至少一帧图像中每帧图像时所述移动终端的方位信息;An azimuth information recording module, configured to record the azimuth information of the mobile terminal when each frame of at least one frame of images collected by the image acquisition module is captured during the process of the image acquisition module controlling the camera to continuously acquire images; 全景照片生成模块,用于将所述图像采集模块采集的所述至少一帧图像进行图像拼接,生成全景照片,所述全景照片中的每帧图像携带有所述方位信息记录模块记录的对应的方位信息;A panoramic photo generation module, configured to stitch the at least one frame of images collected by the image acquisition module to generate a panoramic photo, and each frame of the panoramic photo carries the corresponding information recorded by the orientation information recording module. orientation information; 查看指令接收模块,用于在所述全景照片拼接模块将所述至少一帧图像进行图像拼接,生成照片的步骤之后,接收所述移动终端用户输入的对所述全景照片的查看指令;A viewing instruction receiving module, configured to receive a viewing instruction for the panoramic photo input by the mobile terminal user after the step of stitching the at least one frame of images by the panoramic photo stitching module to generate a photo; 屏幕类型获取模块,用于获取所述移动终端的显示屏的屏幕类型;a screen type acquiring module, configured to acquire the screen type of the display screen of the mobile terminal; 全景照片显示模块,用于基于所述屏幕类型获取模块获取的屏幕类型,确定所述全景照片的显示方式,按照所述显示方式显示所述全景照片;A panoramic photo display module, configured to determine the display mode of the panoramic photo based on the screen type acquired by the screen type acquisition module, and display the panoramic photo according to the display mode; 景深信息记录模块,用于在所述图像采集模块控制所述摄像头持续采集图像的过程中,记录所述至少一帧图像中每帧图像的景深信息;A depth of field information recording module, configured to record the depth of field information of each frame of image in the at least one frame of image during the process of the image acquisition module controlling the camera to continuously acquire images; 所述全景照片显示模块包括:The panoramic photo display module includes: 层次信息确认子模块,用于若所述屏幕类型获取模块获取的屏幕类型为柔性屏,则基于所述至少一帧图像中每帧图像的景深信息,确定所述全景照片中与所述景深信息对应的图像区域的层次信息;The layer information confirmation sub-module is used to determine the depth of field information in the panoramic photo based on the depth of field information of each frame of the image in the at least one frame of image if the screen type obtained by the screen type acquisition module is a flexible screen Hierarchy information of the corresponding image area; 变形控制子模块,用于在显示所述全景照片的过程中,基于所述层次信息确认子模块确认的层次信息,控制所述柔性屏进行变形。The deformation control sub-module is configured to control the flexible screen to deform based on the layer information confirmed by the layer information confirmation sub-module during the process of displaying the panoramic photo. 15.根据权利要求14所述的移动终端,其特征在于,所述移动终端还包括:15. The mobile terminal according to claim 14, further comprising: 点击操作接收模块,用于在所述全景照片显示模块按照所述显示方式显示所述全景照片的步骤之后,在显示所述全景照片的过程中,接收所述移动终端用户在所述全景照片上的点击操作;The click operation receiving module is used to receive the mobile terminal user's input on the panoramic photo during the process of displaying the panoramic photo after the panoramic photo display module displays the panoramic photo according to the display method. click operation; 景深效果处理执行模块,用于若所述点击操作接收模块接收的点击操作所在图像区域包含所述景深信息,则基于所述景深信息,对所述点击操作所在图像区域执行与所述景深信息对应的景深效果处理。A depth-of-field effect processing execution module, configured to, if the image area where the click operation is received by the click operation receiving module contains the depth-of-field information, then based on the depth-of-field information, perform an operation corresponding to the depth-of-field information on the image area where the click operation is located. Depth of field effect processing. 16.根据权利要求14所述的移动终端,其特征在于,所述方位信息包括方向信息和位移信息。16. The mobile terminal according to claim 14, wherein the orientation information includes direction information and displacement information.
CN201610605514.9A 2016-07-27 2016-07-27 A kind of panoramic photographing method and mobile terminal Active CN106101552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610605514.9A CN106101552B (en) 2016-07-27 2016-07-27 A kind of panoramic photographing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610605514.9A CN106101552B (en) 2016-07-27 2016-07-27 A kind of panoramic photographing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106101552A CN106101552A (en) 2016-11-09
CN106101552B true CN106101552B (en) 2019-10-15

Family

ID=57479193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610605514.9A Active CN106101552B (en) 2016-07-27 2016-07-27 A kind of panoramic photographing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106101552B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791437B (en) * 2017-01-20 2020-02-14 维沃移动通信有限公司 Panoramic image shooting method and mobile terminal
WO2018157464A1 (en) * 2017-03-03 2018-09-07 华为技术有限公司 Image display method and electronic device
US11606222B2 (en) * 2018-08-02 2023-03-14 Lutron Technology Company Llc Camera-based commissioning and control of devices in a load control system
CN113947522B (en) * 2021-10-15 2025-09-26 北京有竹居网络技术有限公司 Panoramic image synthesis method, device and electronic equipment
CN114007056A (en) * 2021-10-28 2022-02-01 幻境虚拟现实科技(广州)有限公司 A method and device for generating a stereoscopic panoramic image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585412A (en) * 2003-08-23 2005-02-23 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal with camera and image taking method thereof
CN102572258A (en) * 2010-09-29 2012-07-11 卡西欧计算机株式会社 Image playback apparatus capable of playing back panoramic image
CN104363372A (en) * 2014-10-27 2015-02-18 广东欧珀移动通信有限公司 A picture processing method and terminal
CN104375713A (en) * 2013-08-14 2015-02-25 华为终端有限公司 Data processing method and mobile device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020025301A (en) * 2000-09-28 2002-04-04 오길록 Apparatus and Method for Furnishing Augmented-Reality Graphic using Panoramic Image with Supporting Multiuser
US7456823B2 (en) * 2002-06-14 2008-11-25 Sony Corporation User interface apparatus and portable information apparatus
JP5428210B2 (en) * 2008-06-11 2014-02-26 ソニー株式会社 Information processing apparatus, imaging system, recording control method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585412A (en) * 2003-08-23 2005-02-23 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal with camera and image taking method thereof
CN102572258A (en) * 2010-09-29 2012-07-11 卡西欧计算机株式会社 Image playback apparatus capable of playing back panoramic image
CN104375713A (en) * 2013-08-14 2015-02-25 华为终端有限公司 Data processing method and mobile device
CN104363372A (en) * 2014-10-27 2015-02-18 广东欧珀移动通信有限公司 A picture processing method and terminal

Also Published As

Publication number Publication date
CN106101552A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
US10136069B2 (en) Apparatus and method for positioning image area using image sensor location
CN105959553B (en) A kind of switching method and terminal of camera
CN106534685A (en) Panoramic image generation method and mobile terminal
CN106101552B (en) A kind of panoramic photographing method and mobile terminal
CN106791450B (en) A kind of photographing method and mobile terminal
CN106101553B (en) A camera method and mobile terminal
CN107172361B (en) Method and mobile terminal for panoramic shooting
CN106060386A (en) Preview image generation method and mobile terminal
CN106027900A (en) Photographing method and mobile terminal
WO2019001152A1 (en) Photographing method and mobile terminal
CN107172346B (en) Virtualization method and mobile terminal
CN106713747A (en) Focusing method and mobile terminal
CN106998428A (en) The image pickup method and mobile terminal of a kind of mobile terminal
CN105959565A (en) Panoramic photographing method and mobile terminal
CN105827952A (en) Photographing method for removing specified object and mobile terminal
CN105979156A (en) Panoramically photographing method and mobile terminal
CN105827946A (en) Panoramic image generating method, panoramic image playing method and mobile terminal
KR102072509B1 (en) Group recording method, machine-readable storage medium and electronic device
CN106791437B (en) Panoramic image shooting method and mobile terminal
CN106331484B (en) Focusing method and mobile terminal
CN107395997A (en) A kind of image pickup method and mobile terminal
CN106357961A (en) Photographing method and mobile terminal
CN106101544A (en) A kind of image processing method and mobile terminal
CN106161932B (en) A camera method and mobile terminal
CN106162150B (en) A kind of photographic method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant