CN108881733B - Panoramic shooting method and mobile terminal - Google Patents
Panoramic shooting method and mobile terminal Download PDFInfo
- Publication number
- CN108881733B CN108881733B CN201811001060.XA CN201811001060A CN108881733B CN 108881733 B CN108881733 B CN 108881733B CN 201811001060 A CN201811001060 A CN 201811001060A CN 108881733 B CN108881733 B CN 108881733B
- Authority
- CN
- China
- Prior art keywords
- image
- camera module
- display area
- mobile terminal
- angle
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/698—Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/741—Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Stereoscopic And Panoramic Photography (AREA)
Abstract
本发明提供了一种全景拍摄方法及移动终端,移动终端包括可折叠的第一显示屏,第一显示屏包括第一显示区域和第二显示区域,第一显示区域的背面设置有第一摄像头模组,第二显示区域的背面设置有第二摄像头模组;该方法包括:在第一显示区域和第二显示区域之间的第一夹角满足预设条件时,通过第一、第二摄像头模组分别获取第一和第二图像;接收用户控制第一显示区域向第二显示区域移动的第一输入;响应于第一输入,在第一夹角减小的过程中,通过第一摄像头模组获取第一图像序列;根据第一图像、第二图像以及第一图像序列进行图像拼接,生成第一全景图像。本发明可增加拍摄角度与图像清晰度,提升全景拍摄效果。
The present invention provides a panorama shooting method and a mobile terminal. The mobile terminal includes a foldable first display screen, the first display screen includes a first display area and a second display area, and a first camera is arranged on the back of the first display area. module, the back of the second display area is provided with a second camera module; the method includes: when the first angle between the first display area and the second display area satisfies a preset condition, The camera module obtains the first and second images respectively; receives the first input that the user controls the first display area to move to the second display area; in response to the first input, in the process of reducing the first included angle, the The camera module acquires the first image sequence; performs image stitching according to the first image, the second image and the first image sequence to generate a first panoramic image. The invention can increase the shooting angle and image clarity, and improve the panoramic shooting effect.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种全景拍摄方法及移动终端。The present invention relates to the field of communication technologies, and in particular, to a panorama shooting method and a mobile terminal.
背景技术Background technique
随着电子技术的不断发展,人们对移动终端的全景拍摄要求越来越高,现有移动终端在全景拍摄时,大部分是通过手工旋转成像设备来进行拍摄,这样就很难保证成像设备在旋转过程中始终保持在同一水平高度上,而且受环境影响,成像设备在旋转移动过程中也很容易出现抖动。With the continuous development of electronic technology, people have higher and higher requirements for panoramic shooting of mobile terminals. Most of the existing mobile terminals are used to manually rotate the imaging device for panoramic shooting, so it is difficult to ensure that the imaging device is in the During the rotation process, it is always kept at the same level, and due to the influence of the environment, the imaging device is also prone to jitter during the rotation and movement.
因此现有的全景拍摄过程存在以下缺陷:Therefore, the existing panoramic shooting process has the following defects:
由于移动为动态过程,摄像头模组在进行全景拍摄时曝光时间不够,全景图像清晰度不够,像素不高且容易断层;全景拍摄过程中,移动终端旋转的速度与旋转时在水平方向的上下抖动幅度不易控制,容易影响拍摄效果。Since the movement is a dynamic process, the exposure time of the camera module during panorama shooting is not enough, the resolution of the panorama image is not enough, the pixels are not high, and it is easy to be broken; during the panorama shooting process, the rotation speed of the mobile terminal and the vertical shake in the horizontal direction during rotation The amplitude is not easy to control, and it is easy to affect the shooting effect.
目前移动终端行业大部分都是单面屏,利用后置摄像头进行全景拍摄时,需要用户手持移动终端,以人的腰部、立足点为轴心,移动摄像头模组进行全景拍摄,这种姿势由于力臂长,在移动旋转时容易产生抖动,并且拍摄的角度范围比较小。At present, most of the mobile terminal industry is a single-sided screen. When using the rear camera for panoramic shooting, the user needs to hold the mobile terminal, take the waist and foothold of the person as the axis, and move the camera module to perform panoramic shooting. This posture is due to The arm is long, it is easy to shake when moving and rotating, and the shooting angle range is relatively small.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种全景拍摄方法及移动终端,以解决现有技术中全景拍摄时易出现图像清晰度差、拍摄时发生抖动影响拍摄以及拍摄角度范围受限的问题。Embodiments of the present invention provide a panorama shooting method and a mobile terminal, so as to solve the problems in the prior art that the panorama shooting is prone to poor image definition, shaking during shooting affects shooting, and the shooting angle range is limited.
为了解决上述问题,本发明实施例是这样实现的:In order to solve the above problems, the embodiments of the present invention are implemented as follows:
第一方面,本发明实施例提供一种全景拍摄方法,应用于移动终端,移动终端包括可折叠的第一显示屏,第一显示屏包括第一显示区域和第二显示区域,第一显示区域的背面设置有第一摄像头模组,第二显示区域的背面设置有第二摄像头模组;该方法包括:In a first aspect, an embodiment of the present invention provides a panorama shooting method, which is applied to a mobile terminal. The mobile terminal includes a foldable first display screen. The first display screen includes a first display area and a second display area. The first display area The back of the display area is provided with a first camera module, and the back of the second display area is provided with a second camera module; the method includes:
在第一显示区域和第二显示区域之间的第一夹角满足预设条件时,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像;When the first included angle between the first display area and the second display area satisfies the preset condition, obtaining the first image through the first camera module and obtaining the second image through the second camera module;
接收用户控制第一显示区域向第二显示区域移动的第一输入;receiving a first input from a user controlling the first display area to move to the second display area;
响应于第一输入,在第一夹角减小的过程中,通过第一摄像头模组获取第一图像序列;In response to the first input, in the process of reducing the first included angle, acquiring the first image sequence through the first camera module;
根据第一图像、第二图像以及第一图像序列进行图像拼接,生成第一全景图像。Image stitching is performed according to the first image, the second image and the first image sequence to generate a first panoramic image.
第二方面,本发明实施例提供一种移动终端,移动终端包括可折叠的第一显示屏,第一显示屏包括第一显示区域和第二显示区域,第一显示区域的背面设置有第一摄像头模组,第二显示区域的背面设置有第二摄像头模组;移动终端还包括:In a second aspect, an embodiment of the present invention provides a mobile terminal, the mobile terminal includes a foldable first display screen, the first display screen includes a first display area and a second display area, and the back of the first display area is provided with a first display screen. A camera module, the back of the second display area is provided with a second camera module; the mobile terminal further includes:
第一获取模块,用于在第一显示区域和第二显示区域之间的第一夹角满足预设条件时,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像;The first acquisition module is used to acquire the first image through the first camera module and acquire the second image through the second camera module when the first angle between the first display area and the second display area satisfies the preset condition. image;
第一接收模块,用于接收用户控制第一显示区域向第二显示区域移动的第一输入;a first receiving module, configured to receive a first input from a user to control the movement of the first display area to the second display area;
第二获取模块,用于响应于第一输入,在第一夹角减小的过程中,通过第一摄像头模组获取第一图像序列;a second acquisition module, configured to acquire the first image sequence through the first camera module during the process of reducing the first included angle in response to the first input;
第一生成模块,用于根据第一图像、第二图像以及第一图像序列进行图像拼接,生成第一全景图像。The first generating module is configured to perform image stitching according to the first image, the second image and the first image sequence to generate a first panoramic image.
第三方面,本发明实施例还提供一种移动终端,包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现上述的全景拍摄方法的步骤。In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to realize the above-mentioned panorama shooting method. step.
第四方面,本发明实施例提供一种计算机可读存储介质,计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时实现上述的全景拍摄方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned panoramic shooting method are implemented.
本发明技术方案,在拆叠式显示屏的折叠角度满足预设条件时,利用第一摄像头模组和第二摄像头模组进行拍摄,然后根据背面设置第一摄像头模组的显示区域的转动利用第一摄像头模组进行连续拍摄,将两个摄像头模组拍摄所获取的图像进行合成处理生成全景图像,可以使得用户通过便捷可靠的操作获取全景图像,且在拍摄过程中不易发生抖动,增加了拍摄角度与图像清晰度,极大提升了全景拍摄的效果,保证了用户拍摄图像的乐趣与体验。The technical solution of the present invention is that when the folding angle of the detachable display screen satisfies the preset conditions, the first camera module and the second camera module are used for shooting, and then the rotation of the display area in which the first camera module is arranged on the back is used. The first camera module performs continuous shooting, and synthesizes the images captured by the two camera modules to generate a panoramic image, which enables users to obtain panoramic images through convenient and reliable operations, and is less prone to shaking during the shooting process, increasing the number of images. The shooting angle and image clarity greatly improve the effect of panoramic shooting and ensure the fun and experience of shooting images for users.
附图说明Description of drawings
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
图1a表示本发明实施例第一显示屏示意图一;FIG. 1a shows a schematic diagram 1 of a first display screen according to an embodiment of the present invention;
图1b表示本发明实施例第一显示屏示意图二;Fig. 1b shows a second schematic diagram of the first display screen according to the embodiment of the present invention;
图1c表示本发明实施例第一显示区域背面设置第一摄像头模组示意图;Fig. 1c shows a schematic diagram of a first camera module disposed on the back of the first display area according to an embodiment of the present invention;
图1d表示本发明实施例第二显示区域背面的移动终端后壳设置第二摄像头模组示意图;Fig. 1d shows a schematic diagram of setting a second camera module on the rear shell of the mobile terminal on the back of the second display area according to the embodiment of the present invention;
图2表示本发明实施例全景拍摄方法示意图;2 shows a schematic diagram of a panoramic shooting method according to an embodiment of the present invention;
图3表示本发明实施例第二显示屏及第一摄像头模组示意图;3 shows a schematic diagram of a second display screen and a first camera module according to an embodiment of the present invention;
图4表示本发明实施例一种移动终端示意图;FIG. 4 shows a schematic diagram of a mobile terminal according to an embodiment of the present invention;
图5表示本发明实施例移动终端硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明实施例提供一种全景拍摄方法,应用于移动终端,如图1a至图1d所示,移动终端包括可折叠的第一显示屏1,第一显示屏1包括第一显示区域11和第二显示区域12,第一显示区域11的背面设置有第一摄像头模组111,第二显示区域12的背面设置有第二摄像头模组121;如图2所示,该方法包括:An embodiment of the present invention provides a panorama shooting method, which is applied to a mobile terminal. As shown in FIG. 1a to FIG. 1d, the mobile terminal includes a foldable
步骤201、在第一显示区域和第二显示区域之间的第一夹角满足预设条件时,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像。Step 201: When the first included angle between the first display area and the second display area satisfies a preset condition, acquire the first image through the first camera module and acquire the second image through the second camera module.
本发明实施例应用于包括折叠式显示屏的移动终端,具体可参见图1a至图1d所示,第一显示屏1为折叠屏,包括第一显示区域11和第二显示区域12,其中第一显示区域11和第二显示区域12的面积之和等于折叠屏的总面积。第一摄像头模组111位于第一显示区域11的背面,与第一显示区域11相对设置,第二摄像头模组121位于第二显示区域12的背面,与第二显示区域12相对设置。The embodiment of the present invention is applied to a mobile terminal including a foldable display screen. For details, please refer to FIG. 1a to FIG. 1d. The sum of the areas of the
折叠屏的折叠角度在零度到180度之间,在折叠屏的折叠角度为零时,第一显示区域11与第二显示区域12相贴合,在折叠屏的折叠角度为180度时,第一显示区域11与第二显示区域12形成一平面。The folding angle of the folding screen is between zero degrees and 180 degrees. When the folding angle of the folding screen is zero, the
移动终端在折叠屏处于折叠状态下,需要检测第一显示区域和第二显示区域之间的第一夹角,在确定第一夹角满足预设条件时,移动终端可以控制第一显示区域背面的第一摄像头模组以及第二显示区域背面的第二摄像头模组执行拍摄过程,由于当前状态下移动终端处于静止状态,因此通过第一摄像头模组和第二摄像头模组可以获取较为清晰的图像。When the mobile terminal is in a folded state, the mobile terminal needs to detect the first angle between the first display area and the second display area. When it is determined that the first angle meets the preset condition, the mobile terminal can control the back of the first display area. The first camera module and the second camera module on the back of the second display area perform the shooting process. Since the mobile terminal is in a static state in the current state, the first camera module and the second camera module can obtain relatively clear images. image.
其中在确定第一夹角满足预设条件时进行拍摄,是为了保证第一摄像头模组与第二摄像头模组能够以各自对应的水平拍摄视角进行取景,且根据取景拍摄得到的图像可以实现拼接。在通过第一摄像头模组和第二摄像头模组进行静态拍摄,获取第一图像和第二图像之后,需要继续执行步骤202。The purpose of shooting when it is determined that the first included angle meets the preset conditions is to ensure that the first camera module and the second camera module can use their corresponding horizontal shooting angles for framing, and the images captured according to the framing can be stitched together. . After static photography is performed by the first camera module and the second camera module to obtain the first image and the second image, step 202 needs to be continued.
步骤202、接收用户控制第一显示区域向第二显示区域移动的第一输入。Step 202: Receive a first input from the user for controlling the movement of the first display area to the second display area.
在利用第一摄像头模组和第二摄像头模组进行静态拍摄,分别获取第一图像以及第二图像之后,可以接收用户控制第一显示区域向第二显示区域移动的第一输入,此时第一显示区域与第二显示区域之间的第一夹角减小。After the first camera module and the second camera module are used for static photography, and the first image and the second image are obtained respectively, the first input from the user to control the movement of the first display area to the second display area can be received. The first included angle between a display area and the second display area decreases.
步骤203、响应于第一输入,在第一夹角减小的过程中,通过第一摄像头模组获取第一图像序列。Step 203: In response to the first input, in the process of reducing the first included angle, acquire the first image sequence through the first camera module.
在接收到用户控制第一显示区域向第二显示区域移动的第一输入时,响应于第一输入保持第一摄像头模组开启,关闭第二摄像头模组。可以在第一夹角减小的过程中,由第一摄像头模组进行连续拍摄,根据第一摄像头模组的动态拍摄过程获取第一图像序列。When receiving a first input from the user controlling the first display area to move to the second display area, keeping the first camera module on and turning off the second camera module in response to the first input. During the process of decreasing the first included angle, the first camera module may perform continuous shooting, and the first image sequence may be acquired according to the dynamic shooting process of the first camera module.
需要说明的是,在第一摄像头模组和第二摄像头模组进行静态拍摄时,第一摄像头模组和第二摄像头模组均对应有盲区,在第一摄像头模组保持开启第二摄像头模组关闭,且由第一摄像头模组在第一夹角减小的过程中进行动态拍摄之后,可以扩大取景范围,提高全景拍摄的效果。It should be noted that, when the first camera module and the second camera module perform static shooting, both the first camera module and the second camera module have blind spots, and the second camera module is kept open in the first camera module. After the group is closed and the dynamic shooting is performed by the first camera module in the process of reducing the first included angle, the viewing range can be expanded and the effect of panoramic shooting can be improved.
例如,第一摄像头模组和第二摄像头模组所对应的水平拍摄视角均为50度,则在第一夹角满足预设条件的状态下,由第一摄像头模组和第二摄像头模组以各自对应的水平拍摄视角进行取景之后,仍然存在大于或者等于260度的拍摄盲区。此时通过转动第一显示区域,控制第一显示区域向第二显示区域的方向转动,减小第一夹角的角度,在转动的过程中利用第一摄像头模组进行动态拍摄,可以扩大取景范围。For example, if the horizontal shooting angles corresponding to the first camera module and the second camera module are both 50 degrees, then in the state that the first included angle satisfies the preset condition, the first camera module and the second camera module After framing with their corresponding horizontal shooting angles, there is still a shooting blind spot greater than or equal to 260 degrees. At this time, by rotating the first display area, controlling the first display area to rotate in the direction of the second display area, reducing the angle of the first included angle, and using the first camera module to perform dynamic shooting during the rotation process, the viewfinder can be enlarged scope.
其中,第一夹角的角度值最小可减小至零度,当第一夹角的角度变化为零时,第一显示区域与第二显示区域接触,此时虽扩大了取景范围,但仍无法实现360度取景。例如针对第一摄像头模组和第二摄像头模组所对应的水平拍摄视角均为50度的情况,此时第一摄像头模组的盲区为65度(90度-50度/2),相应的第二摄像头的盲区为65度(90度-50度/2),即在第一摄像头模组和第二摄像头模组静态拍摄完成,且第一摄像头模组在第一夹角变化至零的过程中进行动态拍摄之后,对应的取景盲区为130度,即在此过程中两个摄像头模组组合后可以实现230度的取景,相较于静态拍摄的过程扩大了取景范围。Among them, the minimum angle value of the first included angle can be reduced to zero degrees. When the angle of the first included angle changes to zero, the first display area is in contact with the second display area. At this time, although the viewing range is enlarged, it still cannot Realize 360-degree viewing. For example, in the case where the horizontal shooting angles corresponding to the first camera module and the second camera module are both 50 degrees, the blind area of the first camera module is 65 degrees (90 degrees-50 degrees/2), and the corresponding The blind area of the second camera is 65 degrees (90 degrees-50 degrees/2), that is, the static shooting of the first camera module and the second camera module is completed, and the first camera module changes to zero at the first angle. After dynamic shooting during the process, the corresponding blind spot for framing is 130 degrees, that is, the combination of the two camera modules can achieve 230-degree framing during this process, which expands the framing range compared to the static shooting process.
步骤204、根据第一图像、第二图像以及第一图像序列进行图像拼接,生成第一全景图像。Step 204: Perform image stitching according to the first image, the second image and the first image sequence to generate a first panoramic image.
在获取第一摄像头模组静态拍摄的第一图像、第二摄像头模组静态拍摄的第二图像,以及第一摄像头模组在第一夹角减小过程中进行动态拍摄获取的第一图像序列之后,可以根据第一图像、第二图像以及第一图像序列进行拼接,根据拼接结果生成第一全景图像。Obtaining the first image statically shot by the first camera module, the second image statically shot by the second camera module, and the first image sequence obtained by the first camera module performing dynamic shooting during the first angle reduction process Afterwards, stitching may be performed according to the first image, the second image and the first image sequence, and a first panoramic image may be generated according to the stitching result.
本发明实施例提供的方案,可以利用第一摄像头模组和第二摄像头模组前进行拍摄,然后根据背面设置第一摄像头模组的显示区域的转动利用第一摄像头模组进行连续拍摄,将两个摄像头模组拍摄所获取的图像进行合成处理生成全景图像,可以使得用户通过便捷可靠的操作获取全景图像,且在拍摄过程中不易发生抖动,增加了拍摄角度与图像清晰度,极大提升了全景拍摄的效果。In the solution provided by the embodiment of the present invention, the first camera module and the second camera module can be used for shooting in front, and then the first camera module can be used for continuous shooting according to the rotation of the display area where the first camera module is arranged on the back. The images captured by the two camera modules are synthesized and processed to generate a panoramic image, which enables users to obtain panoramic images through convenient and reliable operations, and is less prone to shaking during the shooting process, increasing the shooting angle and image clarity, greatly improving The effect of panoramic shooting.
在本发明实施例中,在第一显示区域和第二显示区域之间的第一夹角满足预设条件时,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像的步骤,包括:检测第一夹角的角度值;在第一夹角的角度值位于预设角度范围内的情况下,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像;其中,预设角度范围中的最小角度为使得第一摄像头模组和第二摄像头模组以各自水平拍摄视角进行无重叠取景、获取拼接图像的角度。In the embodiment of the present invention, when the first angle between the first display area and the second display area satisfies the preset condition, the first image is acquired by the first camera module and the second image is acquired by the second camera module The step of image includes: detecting the angle value of the first included angle; when the angle value of the first included angle is within the preset angle range, acquiring the first image through the first camera module and passing the second camera module Acquiring a second image; wherein, the minimum angle in the preset angle range is the angle at which the first camera module and the second camera module perform non-overlapping framing at respective horizontal shooting angles of view and obtain a stitched image.
在通过第一摄像头模组和第二摄像头模组进行静态拍摄之前,需要通过陀螺仪检测第一显示区域和第二显示区域之间的第一夹角的角度值,在确定第一夹角的角度值之后,需要判断第一夹角的角度值是否位于预设角度范围内,在第一夹角的角度值位于预设角度范围内的情况下,确定第一夹角满足预设条件,此时可以通过第一摄像头模组和第二摄像头模组进行静态拍摄。Before static photography is performed by the first camera module and the second camera module, the angle value of the first angle between the first display area and the second display area needs to be detected by the gyroscope. After the angle value, it is necessary to judge whether the angle value of the first included angle is within the preset angle range, and if the angle value of the first included angle is within the preset angle range, it is determined that the first included angle satisfies the preset condition. At the same time, static shooting can be performed through the first camera module and the second camera module.
这里的预设角度范围中的最小角度为能够保证两个摄像头模组以各自的水平拍摄视角进行无重叠取景、且得到的图像可以进行拼接的角度,预设角度范围为使得两个摄像头模组以各自的水平拍摄视角进行拍摄、得到可拼接图像的角度范围。例如预设角度范围中的最小角度值为133度,在第一夹角为133度时,恰好可以使得两个摄像头模组以各自的水平拍摄视角进行无重叠取景、且得到的图像可以拼接。这里的预设角度范围可以设定为133度至138度,当第一夹角等于133度或者138度或者位于两者之间时,可以确定第一夹角满足预设条件。当然针对第一夹角的角度值大于133度且小于或者等于138度的情况,两个摄像头模组的取景范围存在重叠,在拼接时需要裁剪去重叠区域。需要说明的是,预设角度范围可以根据实际情况进行设定,上述仅仅为一种所列举的实施情况。The minimum angle in the preset angle range here is the angle that can ensure that the two camera modules can use their respective horizontal shooting angles for non-overlapping framing, and the obtained images can be stitched together, and the preset angle range is such that the two camera modules can be The range of angles within which images can be stitched by shooting at their respective horizontal shooting angles. For example, the minimum angle value in the preset angle range is 133 degrees. When the first angle is 133 degrees, the two camera modules can be used for non-overlapping framing at their respective horizontal shooting angles, and the obtained images can be stitched together. The preset angle range here may be set to be 133 degrees to 138 degrees, and when the first included angle is equal to 133 degrees or 138 degrees or located between the two, it can be determined that the first included angle satisfies the preset condition. Of course, for the case where the angle value of the first included angle is greater than 133 degrees and less than or equal to 138 degrees, the viewing ranges of the two camera modules overlap, and the overlapping area needs to be cropped during splicing. It should be noted that, the preset angle range can be set according to the actual situation, and the above is only an enumerated implementation situation.
通过对第一夹角的角度值进行检测,可以确定在满足要求的前提下利用第一摄像头模组和第二摄像头模组进行拍摄,保证拍摄图像的可用性和有效性。By detecting the angle value of the first included angle, it can be determined that the first camera module and the second camera module are used for shooting on the premise that the requirements are met, so as to ensure the availability and validity of the captured image.
其中,在第一夹角的角度值不在预设角度范围内时,还包括输出用于提示用户调整第一夹角的角度值的提示信息。即若第一夹角的角度值不符合预设条件,移动终端可以通过第一显示区域或者第二显示区域输出提示信息,提示信息中可以包含如何调整第一夹角的角度值的信息,便于用户根据提示信息快速准确的进行角度调整。Wherein, when the angle value of the first included angle is not within the preset angle range, the method further includes outputting prompt information for prompting the user to adjust the angle value of the first included angle. That is, if the angle value of the first included angle does not meet the preset conditions, the mobile terminal may output prompt information through the first display area or the second display area, and the prompt information may include information on how to adjust the angle value of the first included angle, which is convenient for The user can quickly and accurately adjust the angle according to the prompt information.
在本发明实施例中,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像之后,该方法还包括:通过第一显示区域显示第一摄像头模组获取的第一图像,以及通过第二显示区域显示第二摄像头模组获取的第二图像。In the embodiment of the present invention, after obtaining the first image through the first camera module and obtaining the second image through the second camera module, the method further includes: displaying the first image obtained by the first camera module through the first display area. and displaying the second image obtained by the second camera module through the second display area.
在利用两个摄像头模组进行静态拍摄之后,由于第一摄像头模组设置于第一显示区域的背面,可以响应于拍摄过程通过第一显示区域显示第一摄像头模组拍摄的第一图像。由于第二摄像头模组设置于第二显示区域的背面,可以响应于拍摄过程通过第二显示区域显示第二摄像头模组拍摄的第二图像,通过进行图像显示,可以实现图像预览,便于提高用户的视觉体验。After using the two camera modules for static shooting, since the first camera module is disposed on the back of the first display area, the first image captured by the first camera module can be displayed through the first display area in response to the shooting process. Since the second camera module is arranged on the back of the second display area, the second image captured by the second camera module can be displayed through the second display area in response to the shooting process. visual experience.
在通过第一摄像头模组获取第一图像序列之后,该方法还包括:通过第一显示区域显示第一摄像头模组获取的第一图像序列。在第一显示区域向第二显示区域移动,第一夹角的角度值减小的过程中,通过第一摄像头模组动态拍摄获取第一图像序列之后,可以由第一显示区域对第一摄像头模组拍摄的第一图像序列进行显示,便于用户的实时观看。After obtaining the first image sequence through the first camera module, the method further includes: displaying the first image sequence obtained by the first camera module through the first display area. In the process that the first display area moves to the second display area and the angle value of the first angle decreases, after the first image sequence is acquired by dynamic shooting by the first camera module, the first camera can be monitored by the first display area. The first image sequence captured by the module is displayed, which is convenient for users to watch in real time.
在本发明实施例中,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像之前,还包括:接收用户在第一显示屏内输入的全景拍摄模式启动指令;根据启动指令开启第一摄像头模组和第二摄像头模组。In the embodiment of the present invention, before obtaining the first image through the first camera module and obtaining the second image through the second camera module, the method further includes: receiving a panoramic shooting mode activation instruction input by the user in the first display screen; The startup instruction enables the first camera module and the second camera module.
在确定第一夹角满足预设条件,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像之前,需要接收用户在第一显示屏内输入的全景拍摄模式启动指令,基于启动指令移动终端进入全景拍摄模式,分别启动第一摄像头模组和第二摄像头模组。在启动第一摄像头模组、第二摄像头模组之后,可以检测第一夹角是否满足预设条件,当然也可以在确定第一夹角满足预设条件时,移动终端输出启动第一摄像头模组和第二摄像头模组的提示信息,用户根据提示信息直接启动第一摄像头模组和第二摄像头模组,执行拍摄过程。Before it is determined that the first angle satisfies the preset conditions, the first image is obtained through the first camera module and the second image is obtained through the second camera module, it is necessary to receive the panoramic shooting mode activation instruction input by the user in the first display screen , based on the activation instruction, the mobile terminal enters the panoramic shooting mode, and activates the first camera module and the second camera module respectively. After the first camera module and the second camera module are activated, it can be detected whether the first included angle satisfies the preset condition. Of course, when it is determined that the first included angle satisfies the preset condition, the mobile terminal outputs the output to activate the first camera module. The prompt information of the group and the second camera module, the user directly starts the first camera module and the second camera module according to the prompt information, and executes the shooting process.
在本发明实施例中,在通过第一摄像头模组获取第一图像序列之后,还包括:接收用户控制移动终端沿预设方向移动的第二输入,预设方向为沿第一显示区域的移动轨迹继续移动的方向;响应于第二输入,在移动终端移动至预设位置过程中,通过第一摄像头模组获取第二图像序列,其中当移动终端移动至预设位置时,第一摄像头模组和第二摄像头模组完成360度取景;根据第一图像、第二图像、第一图像序列以及第二图像序列进行图像拼接,生成第二全景图像。In this embodiment of the present invention, after acquiring the first image sequence through the first camera module, the method further includes: receiving a second input from the user for controlling the mobile terminal to move along a preset direction, where the preset direction is movement along the first display area The direction in which the trajectory continues to move; in response to the second input, in the process of moving the mobile terminal to the preset position, a second image sequence is obtained through the first camera module, wherein when the mobile terminal moves to the preset position, the first camera module The group and the second camera module complete 360-degree viewing; image stitching is performed according to the first image, the second image, the first image sequence, and the second image sequence to generate a second panoramic image.
本发明实施例中,在第一摄像头模组和第二摄像头模组进行静态拍摄时,第一摄像头模组和第二摄像头模组均对应有盲区,在第一摄像头模组保持开启第二摄像头模组关闭,且由第一摄像头模组在第一夹角减小的过程中进行动态拍摄之后,可以扩大取景范围,但在获取第一摄像头模组静态拍摄的第一图像、第二摄像头模组静态拍摄的第二图像,以及第一摄像头模组动态拍摄的第一图像序列之后,仍没有实现360度的取景。此时可以接收用户控制移动终端沿预设方向移动的第二输入,这里的预设方向即为整个移动终端沿之前第一显示区域的移动轨迹继续移动的方向,第一显示区域的移动轨迹即为第一显示区域向第二显示区域移动的轨迹。在接收到第二输入之后,响应于第二输入,在移动终端移动至预设位置过程中,保持第一摄像头模组的开启状态、第二摄像头模组的关闭状态,通过第一摄像头模组在移动终端的移动过程中获取第二图像序列。这里的预设位置为可使得第一摄像头模组和第二摄像头模组自拍摄开始完成360度取景的位置。在获取第二图像序列之后,可以通过第一显示区域进行显示。In the embodiment of the present invention, when the first camera module and the second camera module perform static shooting, both the first camera module and the second camera module have blind spots, and the second camera is kept on when the first camera module is turned on. After the module is closed, and the first camera module performs dynamic shooting in the process of reducing the first included angle, the viewing range can be expanded. After the group of statically captured second images and the first image sequence dynamically captured by the first camera module, 360-degree framing is still not achieved. At this time, a second input from the user to control the mobile terminal to move in a preset direction can be received. The preset direction here is the direction in which the entire mobile terminal continues to move along the previous movement trajectory of the first display area. The movement trajectory of the first display area is It is the trajectory of the first display area moving to the second display area. After receiving the second input, in response to the second input, during the process of moving the mobile terminal to the preset position, the first camera module is kept on and the second camera module is off, and the first camera module is The second sequence of images is acquired during the movement of the mobile terminal. The preset position here is a position where the first camera module and the second camera module can complete a 360-degree view from the start of shooting. After acquiring the second sequence of images, it can be displayed through the first display area.
在获取第一图像、第二图像、第一图像序列以及第二图像序列之后,可以根据第一图像、第二图像、第一图像序列以及第二图像序列进行图像拼接,生成第二全景图像,这里的第二全景图像为对应的360度取景图像。After acquiring the first image, the second image, the first image sequence, and the second image sequence, image stitching may be performed according to the first image, the second image, the first image sequence, and the second image sequence to generate a second panoramic image, The second panoramic image here is a corresponding 360-degree viewfinder image.
在利用第一摄像头模组和第二摄像头模组完成静态拍摄,且利用第一摄像头模组获取第一图像序列之后,可以继续转动移动终端至预设位置,获取第二图像序列,完成360度取景,增加摄像头模组的拍摄范围。After using the first camera module and the second camera module to complete static shooting, and using the first camera module to obtain the first image sequence, you can continue to rotate the mobile terminal to the preset position, obtain the second image sequence, and complete the 360-degree Framing to increase the shooting range of the camera module.
本发明实施例中,如图1a、图1b、图1d以及图3所示,第一显示区域11背面的预设区域形成第二显示屏2,第二显示区域12的背面为移动终端的后壳3;第一夹角大于或者等于零度,小于或者等于180度;在第一夹角的角度值为零时,第二显示屏2、第一显示区域11、第二显示区域12以及移动终端的后壳3依次排列;在第一夹角的角度值为180度时,第一显示屏1位于第一端面,第二显示屏2与后壳3位于与第一端面相对的第二端面。In this embodiment of the present invention, as shown in FIGS. 1 a , 1 b , 1 d and 3 , a preset area on the back of the
第二显示屏2的尺寸小于第一显示屏1的尺寸,在移动终端处于伸展状态,即第一夹角为180度时,第二显示屏2与后壳3位于同一端面上,第一显示屏1位于相对的另一端面上,其中第一显示屏1的尺寸可以大于或者等于第二显示屏2和后壳3的尺寸之和。The size of the
且第二显示屏2与第一显示区域11对应,后壳3与第二显示区域12对应。在第一显示区域11与第二显示区域12接触时,两者之间的第一夹角为零度,此时第二显示屏2、第一显示区域11、第二显示区域12以及后壳3依次排列,移动终端处于完全折叠的状态,第一摄像头模组111和第二摄像头模组121相背离。第一摄像头模组111设置于第二显示屏2所在的端面上,为前置摄像头模组,第二摄像头模组121设置于后壳3上,为后置摄像头模组。And the
本发明实施例,可以在拆叠式显示屏的折叠角度满足预设条件时,利用第一摄像头模组和第二摄像头模组进行静态拍摄,然后根据背面设置第一摄像头模组的显示区域的转动利用第一摄像头模组进行连续拍摄,将两个摄像头模组拍摄所获取的图像进行合成处理生成第一全景图像,可以使得用户通过便捷可靠的操作获取全景图像,且在拍摄过程中不易发生抖动,增加了拍摄角度与图像清晰度,极大提升了全景拍摄的效果,保证了用户拍摄图像的乐趣与体验。In the embodiment of the present invention, when the folding angle of the detachable display screen satisfies a preset condition, the first camera module and the second camera module can be used to perform static shooting, and then the display area of the first camera module can be set according to the back. The rotation utilizes the first camera module for continuous shooting, and the images captured by the two camera modules are synthesized and processed to generate the first panoramic image, which enables the user to obtain the panoramic image through convenient and reliable operations, and does not easily occur during the shooting process. Shake, increase the shooting angle and image clarity, greatly improve the effect of panoramic shooting, and ensure the user's fun and experience of shooting images.
进一步的,在利用两个摄像头完成静态拍摄,且利用第一摄像头模组获取第一图像序列之后,可以继续转动移动终端至预设位置,完成360度取景,增加拍摄范围。Further, after the two cameras are used to complete static shooting and the first camera module is used to obtain the first image sequence, the mobile terminal can be rotated to a preset position to complete 360-degree viewing and increase the shooting range.
本发明实施例提供一种移动终端,如图1a至图1d所示,移动终端包括可折叠的第一显示屏1,第一显示屏1包括第一显示区域11和第二显示区域12,第一显示区域11的背面设置有第一摄像头模组111,第二显示区域12的背面设置有第二摄像头模组121;如图4所示,移动终端还包括:An embodiment of the present invention provides a mobile terminal. As shown in FIG. 1a to FIG. 1d, the mobile terminal includes a foldable
第一获取模块10,用于在第一显示区域和第二显示区域之间的第一夹角满足预设条件时,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像;The first acquisition module 10 is configured to acquire the first image through the first camera module and acquire the first image through the second camera module when the first angle between the first display area and the second display area satisfies the preset condition. two images;
第一接收模块20,用于接收用户控制第一显示区域向第二显示区域移动的第一输入;a
第二获取模块30,用于响应于第一输入,在第一夹角减小的过程中,通过第一摄像头模组获取第一图像序列;The
第一生成模块40,用于根据第一图像、第二图像以及第一图像序列进行图像拼接,生成第一全景图像。The
其中,第一获取模块包括:Wherein, the first acquisition module includes:
检测子模块,用于检测第一夹角的角度值;A detection sub-module for detecting the angle value of the first included angle;
获取子模块,用于在第一夹角的角度值位于预设角度范围内的情况下,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像;an acquisition sub-module for acquiring the first image through the first camera module and acquiring the second image through the second camera module when the angle value of the first included angle is within the preset angle range;
其中,预设角度范围中的最小角度为使得第一摄像头模组和第二摄像头模组以各自水平拍摄视角进行无重叠取景、获取拼接图像的角度。Wherein, the minimum angle in the preset angle range is the angle at which the first camera module and the second camera module perform non-overlapping framing at respective horizontal shooting angles of view and obtain a stitched image.
其中,在第一夹角的角度值不在预设角度范围内时,移动终端还包括:Wherein, when the angle value of the first included angle is not within the preset angle range, the mobile terminal further includes:
输出模块,用于输出用于提示用户调整第一夹角的角度值的提示信息。The output module is configured to output prompt information for prompting the user to adjust the angle value of the first included angle.
其中,移动终端还包括:Wherein, the mobile terminal also includes:
第一显示模块,用于在第一获取模块通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像之后,通过第一显示区域显示第一摄像头模组获取的第一图像,以及通过第二显示区域显示第二摄像头模组获取的第二图像。The first display module is configured to display the first image obtained by the first camera module through the first display area after the first obtaining module obtains the first image through the first camera module and obtains the second image through the second camera module. and displaying the second image obtained by the second camera module through the second display area.
其中,移动终端还包括:Wherein, the mobile terminal also includes:
第二显示模块,用于在第二获取模块通过第一摄像头模组获取第一图像序列之后,通过第一显示区域显示第一摄像头模组获取的第一图像序列。The second display module is configured to display the first image sequence obtained by the first camera module through the first display area after the second obtaining module obtains the first image sequence through the first camera module.
其中,移动终端还包括:Wherein, the mobile terminal also includes:
第二接收模块,用于在第二获取模块通过第一摄像头模组获取第一图像序列之后,接收用户控制移动终端沿预设方向移动的第二输入,预设方向为沿第一显示区域的移动轨迹继续移动的方向;The second receiving module is configured to receive, after the second obtaining module obtains the first image sequence through the first camera module, a second input that the user controls the mobile terminal to move along a preset direction, where the preset direction is along the first display area. The direction in which the movement trajectory continues to move;
第三获取模块,用于响应于第二输入,在移动终端移动至预设位置过程中,通过第一摄像头模组获取第二图像序列,其中当移动终端移动至预设位置时,第一摄像头模组和第二摄像头模组完成360度取景;The third acquisition module is configured to, in response to the second input, acquire a second image sequence through the first camera module during the process of moving the mobile terminal to the preset position, wherein when the mobile terminal moves to the preset position, the first camera The module and the second camera module complete 360-degree framing;
第二生成模块,用于根据第一图像、第二图像、第一图像序列以及第二图像序列进行图像拼接,生成第二全景图像。The second generating module is configured to perform image stitching according to the first image, the second image, the first image sequence and the second image sequence to generate a second panoramic image.
其中,第一显示区域背面的预设区域形成第二显示屏,第二显示区域的背面为移动终端的后壳;Wherein, the preset area on the back of the first display area forms a second display screen, and the back of the second display area is the back cover of the mobile terminal;
第一夹角大于或者等于零度,小于或者等于180度;The first included angle is greater than or equal to zero degrees and less than or equal to 180 degrees;
在第一夹角的角度值为零时,第二显示屏、第一显示区域、第二显示区域以及移动终端的后壳依次排列;When the angle value of the first included angle is zero, the second display screen, the first display area, the second display area and the rear case of the mobile terminal are arranged in sequence;
在第一夹角的角度值为180度时,第一显示屏位于第一端面,第二显示屏与后壳位于与第一端面相对的第二端面。When the angle value of the first included angle is 180 degrees, the first display screen is located on the first end surface, and the second display screen and the rear case are located on the second end surface opposite to the first end surface.
本发明实施例提供的移动终端,可以在拆叠式显示屏的折叠角度满足预设条件时,利用第一摄像头模组和第二摄像头模组进行静态拍摄,然后根据背面设置第一摄像头模组的显示区域的转动利用第一摄像头模组进行连续拍摄,将两个摄像头模组拍摄所获取的图像进行合成处理生成第一全景图像,可以使得用户通过便捷可靠的操作获取全景图像,且在拍摄过程中不易发生抖动,增加了拍摄角度与图像清晰度,极大提升了全景拍摄的效果,保证了用户拍摄图像的乐趣与体验。In the mobile terminal provided by the embodiment of the present invention, when the folding angle of the detachable display screen satisfies a preset condition, the first camera module and the second camera module can be used to perform static shooting, and then the first camera module can be set according to the back. The rotation of the display area of 2000 uses the first camera module to perform continuous shooting, and the images obtained by the two camera modules are combined to generate a first panoramic image, which enables the user to obtain a panoramic image through convenient and reliable operations, and when shooting It is not easy to shake during the process, the shooting angle and image clarity are increased, the effect of panoramic shooting is greatly improved, and the user's enjoyment and experience of shooting images is guaranteed.
进一步的,在利用两个摄像头完成静态拍摄,且利用第一摄像头模组获取第一图像序列之后,可以继续转动移动终端至预设位置,完成360度取景,增加拍摄范围。Further, after the two cameras are used to complete static shooting and the first camera module is used to obtain the first image sequence, the mobile terminal can be rotated to a preset position to complete 360-degree viewing and increase the shooting range.
图5为实现本发明各个实施例的一种移动终端的硬件结构示意图,该移动终端500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。5 is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention. The
移动终端500还包括可折叠的第一显示屏,第一显示屏包括第一显示区域和第二显示区域,第一显示区域的背面设置有第一摄像头模组,第二显示区域的背面设置有第二摄像头模组。The
本领域技术人员可以理解,图5中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 5 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
其中,处理器510用于:在第一显示区域和第二显示区域之间的第一夹角满足预设条件时,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像;用户输入单元507用于接收用户控制第一显示区域向第二显示区域移动的第一输入;处理器510用于:响应于第一输入,在第一夹角减小的过程中,通过第一摄像头模组获取第一图像序列;根据第一图像、第二图像以及第一图像序列进行图像拼接,生成第一全景图像。The
其中,在第一显示区域和第二显示区域之间的第一夹角满足预设条件,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像时,处理器510还用于执行以下步骤:检测第一夹角的角度值;在第一夹角的角度值位于预设角度范围内的情况下,通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像;其中,预设角度范围中的最小角度为使得第一摄像头模组和第二摄像头模组以各自水平拍摄视角进行无重叠取景、获取拼接图像的角度。Wherein, when the first included angle between the first display area and the second display area satisfies the preset condition, when the first image is acquired by the first camera module and the second image is acquired by the second camera module, the
其中,在第一夹角的角度值不在预设角度范围内时,处理器510还用于执行以下步骤:输出用于提示用户调整第一夹角的角度值的提示信息。Wherein, when the angle value of the first included angle is not within the preset angle range, the
其中,处理器510通过第一摄像头模组获取第一图像并通过第二摄像头模组获取第二图像之后,显示单元506还用于执行以下步骤:通过第一显示区域显示第一摄像头模组获取的第一图像,以及通过第二显示区域显示第二摄像头模组获取的第二图像。After the
其中,处理器510通过第一摄像头模组获取第一图像序列之后,显示单元506还用于执行以下步骤:通过第一显示区域显示第一摄像头模组获取的第一图像序列。Wherein, after the
其中,在处理器510通过第一摄像头模组获取第一图像序列之后,用户输入单元507还用于:接收用户控制移动终端沿预设方向移动的第二输入,预设方向为沿第一显示区域的移动轨迹继续移动的方向;处理器510还用于执行以下步骤:响应于第二输入,在移动终端移动至预设位置过程中,通过第一摄像头模组获取第二图像序列,其中当移动终端移动至预设位置时,第一摄像头模组和第二摄像头模组完成360度取景;根据第一图像、第二图像、第一图像序列以及第二图像序列进行图像拼接,生成第二全景图像。Wherein, after the
其中,第一显示区域背面的预设区域形成第二显示屏,第二显示区域的背面为移动终端的后壳;第一夹角大于或者等于零度,小于或者等于180度;Wherein, the preset area on the back of the first display area forms a second display screen, and the back of the second display area is the back shell of the mobile terminal; the first included angle is greater than or equal to zero degrees and less than or equal to 180 degrees;
在第一夹角的角度值为零时,第二显示屏、第一显示区域、第二显示区域以及移动终端的后壳依次排列;在第一夹角的角度值为180度时,第一显示屏位于第一端面,第二显示屏与后壳位于与第一端面相对的第二端面。When the angle value of the first included angle is zero, the second display screen, the first display area, the second display area and the back shell of the mobile terminal are arranged in sequence; when the angle value of the first included angle is 180 degrees, the first The display screen is located on the first end surface, and the second display screen and the rear case are located on the second end surface opposite to the first end surface.
这样,可以在拆叠式显示屏的折叠角度满足预设条件时,利用第一摄像头模组和第二摄像头模组进行静态拍摄,然后根据背面设置第一摄像头模组的显示区域的转动利用第一摄像头模组进行连续拍摄,将两个摄像头模组拍摄所获取的图像进行合成处理生成第一全景图像,可以使得用户通过便捷可靠的操作获取全景图像,且在拍摄过程中不易发生抖动,增加了拍摄角度与图像清晰度,极大提升了全景拍摄的效果,保证了用户拍摄图像的乐趣与体验。In this way, when the folding angle of the detachable display screen satisfies the preset conditions, the first camera module and the second camera module can be used to perform static shooting, and then the first camera module can be used to rotate according to the rotation of the display area of the first camera module on the back. One camera module performs continuous shooting, and the images captured by the two camera modules are synthesized and processed to generate a first panoramic image, which enables users to obtain panoramic images through convenient and reliable operations, and is less prone to shaking during the shooting process, increasing the It improves the shooting angle and image clarity, greatly improves the effect of panoramic shooting, and ensures the fun and experience of shooting images for users.
进一步的,在利用两个摄像头完成静态拍摄,且利用第一摄像头模组获取第一图像序列之后,可以继续转动移动终端至预设位置,完成360度取景,增加拍摄范围。Further, after the two cameras are used to complete static shooting and the first camera module is used to obtain the first image sequence, the mobile terminal can be rotated to a preset position to complete 360-degree viewing and increase the shooting range.
应理解的是,本发明实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
移动终端通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides the user with wireless broadband Internet access through the
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与移动终端500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。The
移动终端500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在移动终端500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The
用户输入单元507可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图5中,触控面板5071与显示面板5061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the
接口单元508为外部装置与移动终端500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端500内的一个或多个元件或者可以用于在移动终端500和外部装置之间传输数据。The
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器510是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器510可包括一个或多个处理单元;优选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The
移动终端500还可以包括给各个部件供电的电源511(比如电池),优选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,移动终端500包括一些未示出的功能模块,在此不再赘述。In addition, the
优选的,本发明实施例还提供一种移动终端,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的计算机程序,该计算机程序被处理器510执行时实现上述全景拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a mobile terminal, including a
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述全景拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned embodiments of the panoramic shooting method can be achieved, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811001060.XA CN108881733B (en) | 2018-08-30 | 2018-08-30 | Panoramic shooting method and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811001060.XA CN108881733B (en) | 2018-08-30 | 2018-08-30 | Panoramic shooting method and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108881733A CN108881733A (en) | 2018-11-23 |
| CN108881733B true CN108881733B (en) | 2020-09-25 |
Family
ID=64322678
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811001060.XA Active CN108881733B (en) | 2018-08-30 | 2018-08-30 | Panoramic shooting method and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108881733B (en) |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109743486A (en) * | 2019-01-25 | 2019-05-10 | 维沃移动通信(杭州)有限公司 | A kind of mobile terminal and control method |
| CN109905603B (en) * | 2019-03-28 | 2022-10-18 | 南京维沃软件技术有限公司 | Shooting processing method and mobile terminal |
| CN110266936B (en) * | 2019-04-25 | 2021-01-22 | 维沃移动通信(杭州)有限公司 | Photographing method and terminal equipment |
| CN110392212A (en) * | 2019-07-25 | 2019-10-29 | 珠海格力电器股份有限公司 | Panoramic photographing method and device and electronic equipment |
| CN110365904B (en) * | 2019-07-25 | 2020-11-27 | 珠海格力电器股份有限公司 | Method, device and system for shooting panoramic picture with foldable screen and storage medium |
| CN110430362A (en) * | 2019-08-12 | 2019-11-08 | 珠海格力电器股份有限公司 | Video shooting method and device based on folding screen and storage medium |
| CN110784571B (en) * | 2019-10-31 | 2021-07-20 | 维沃移动通信有限公司 | An electronic device and image display method |
| CN113099113B (en) * | 2021-03-31 | 2022-12-27 | 北京小米移动软件有限公司 | Electronic terminal, photographing method and device and storage medium |
| CN113286064B (en) * | 2021-04-30 | 2023-06-16 | 深圳市沃特沃德信息有限公司 | Method and device for collecting looking-around image, mobile terminal and storage medium |
| CN117014725A (en) * | 2022-04-27 | 2023-11-07 | 荣耀终端有限公司 | Data processing methods and electronic equipment |
| CN117651966A (en) * | 2022-06-15 | 2024-03-05 | 北京小米移动软件有限公司 | Photographing method, photographing device and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013024446A2 (en) * | 2011-08-17 | 2013-02-21 | Nokia Corporation | Apparatus and method for generating image data |
| CN104486551A (en) * | 2014-12-24 | 2015-04-01 | 上海摩软通讯技术有限公司 | Mobile terminal and pan-shot method thereof |
| CN104937653A (en) * | 2013-03-21 | 2015-09-23 | Lg电子株式会社 | Display device and method for controlling the same |
| CN106534685A (en) * | 2016-11-18 | 2017-03-22 | 维沃移动通信有限公司 | Panoramic image generation method and mobile terminal |
| CN106713660A (en) * | 2017-01-20 | 2017-05-24 | 维沃移动通信有限公司 | Panoramic selfie taking method and mobile terminal |
| CN107623793A (en) * | 2017-10-19 | 2018-01-23 | 广东欧珀移动通信有限公司 | Method and device for image capture and processing |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102391497B1 (en) * | 2015-09-30 | 2022-04-28 | 삼성전자주식회사 | Apparatus and method for proecessing an image in electronic device |
-
2018
- 2018-08-30 CN CN201811001060.XA patent/CN108881733B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013024446A2 (en) * | 2011-08-17 | 2013-02-21 | Nokia Corporation | Apparatus and method for generating image data |
| CN104937653A (en) * | 2013-03-21 | 2015-09-23 | Lg电子株式会社 | Display device and method for controlling the same |
| CN104486551A (en) * | 2014-12-24 | 2015-04-01 | 上海摩软通讯技术有限公司 | Mobile terminal and pan-shot method thereof |
| CN106534685A (en) * | 2016-11-18 | 2017-03-22 | 维沃移动通信有限公司 | Panoramic image generation method and mobile terminal |
| CN106713660A (en) * | 2017-01-20 | 2017-05-24 | 维沃移动通信有限公司 | Panoramic selfie taking method and mobile terminal |
| CN107623793A (en) * | 2017-10-19 | 2018-01-23 | 广东欧珀移动通信有限公司 | Method and device for image capture and processing |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108881733A (en) | 2018-11-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108881733B (en) | Panoramic shooting method and mobile terminal | |
| CN107957839B (en) | A display control method and mobile terminal | |
| CN107707817B (en) | A video shooting method and mobile terminal | |
| CN107682634A (en) | A kind of facial image acquisition methods and mobile terminal | |
| CN107809594B (en) | A shooting method and mobile terminal | |
| CN111263071B (en) | Shooting method and electronic equipment | |
| CN110933302B (en) | A shooting method and electronic device | |
| CN110602389B (en) | A display method and electronic device | |
| CN108471498A (en) | A kind of shooting preview method and terminal | |
| CN107948523A (en) | A shooting method and mobile terminal | |
| CN109710349B (en) | Screen capturing method and mobile terminal | |
| CN110308885A (en) | A kind of throwing screen method and mobile terminal | |
| CN110505401A (en) | A kind of camera control method and electronic equipment | |
| WO2021104357A1 (en) | Electronic apparatus, and image capturing method | |
| CN108628515A (en) | A kind of operating method and mobile terminal of multimedia content | |
| CN111246102A (en) | Shooting method, device, electronic device and storage medium | |
| CN110138967A (en) | A kind of method of controlling operation thereof and terminal of terminal | |
| CN111405181B (en) | Focusing method and electronic equipment | |
| CN111510623A (en) | Shooting method and electronic equipment | |
| CN108924422B (en) | A panorama photographing method and mobile terminal | |
| CN108881721B (en) | Display method and terminal | |
| CN111416935A (en) | Shooting method and electronic equipment | |
| CN107959755B (en) | Photographing method, mobile terminal and computer readable storage medium | |
| CN110457885A (en) | An operating method and electronic device | |
| WO2021082770A1 (en) | Method and apparatus for interface display, and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |
